body {
  font-family: 'Inter', sans-serif;
}


.doctor-gate-confirm-btn {
  background-color: #059669;
}
.doctor-gate-confirm-btn:hover {
  background-color: #047857;
}
.doctor-gate-decline-link:hover {
  color: #b91c1c;
}


@media (min-width: 1024px) {
  div.icon-row-lg-center {
    align-items: center;
  }
}


.icon-row-text-offset {
  margin-left: 4rem;
}


html, body {
  overflow-anchor: none;
}


html {
  scrollbar-gutter: stable;
}


button, a {
  -webkit-tap-highlight-color: transparent;
}


.hero-grid {
  grid-template-areas:
    "title"
    "subtitle"
    "widget"
    "cta";
}


.firstaid-item-text {
  flex: 1 1 0%;
  min-width: 0;
}
.hero-title    { grid-area: title; }
.hero-subtitle { grid-area: subtitle; }
.hero-widget   { grid-area: widget; }
.hero-cta      { grid-area: cta; }


.hero-title {
  margin-top: 24px;
  margin-bottom: -12px;
}
.hero-subtitle {
  margin-top: -12px;
}
.hero-cta {
  margin-bottom: 24px;
}


@media (max-width: 639px) {
  .hero-title {
    container-type: inline-size;
  }
  .hero-title .hero-location-title {
    
    font-size: clamp(1.75rem, calc((100vw - 3rem) * 0.12), 3.05rem);
    font-size: clamp(1.75rem, 12.5cqi, 3.05rem);
  }
  .hero-subtitle .hero-location-subtitle {
    font-size: 1rem;
  }
}


@media (min-width: 640px) and (max-width: 1023px),
       (min-width: 1024px) and (hover: none) and (pointer: coarse) {
  .hero-title .hero-location-title,
  .hero-subtitle .hero-location-subtitle {
    width: min(100%, 24rem);
  }
  .hero-title .hero-location-title {
    font-size: clamp(2.75rem, 6vw, 3.25rem);
  }
  .hero-subtitle .hero-location-subtitle {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-areas:
      "title    widget"
      "cta      widget"
      "subtitle widget";
  }
  .hero-title {
    margin-top: 0;
    margin-bottom: 0;
  }
  .hero-subtitle {
    margin-top: 0;
  }
  .hero-cta {
    margin-bottom: 0;
  }
}


@media (min-width: 640px) {
  .hero-photo {
    object-position: center 70%;
  }
}


:root { --header-h: 65px; }
@media (min-width: 640px) { :root { --header-h: 89px; } }
@media (min-width: 768px) { :root { --header-h: 93px; } }

main[data-page-top] {
  padding-top: calc(var(--header-h) + var(--page-top-gap));
}


main[data-page-top="hero"]     { --page-top-gap: 0px; }
main[data-page-top="centered"] { --page-top-gap: 24px; }
main[data-page-top="section"]  { --page-top-gap: 40px; }
main[data-page-top="back"]     { --page-top-gap: 110px; }
main[data-page-top="kb"]       { --page-top-gap: 75px; }


html[data-kb] { --header-h: 94px; }


@media (min-width: 640px) {
  main[data-page-top="hero"],
  main[data-page-top="centered"],
  main[data-page-top="section"] { --page-top-gap: 68px; }
  main[data-page-top="back"]    { --page-top-gap: 114px; }
}
@media (min-width: 768px) {
  main[data-page-top="hero"],
  main[data-page-top="centered"],
  main[data-page-top="section"] { --page-top-gap: 64px; }
}

@media (min-width: 1280px) {
  main[data-page-top="back"]    { --page-top-gap: 64px; }
}


.text-justify {
  -webkit-hyphens: auto;
  hyphens: auto;
}


@media (min-width: 640px) {
  .pc-section[data-section-type="meta-fields"] {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@keyframes fadeIn {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}


::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.4);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(148, 163, 184, 0.7);
}


html {
  transition: opacity 0.15s ease-out;
}
html.anchor-scroll-pending {
  opacity: 0;
  pointer-events: none;
}


.doctor-gate-blur {
  filter: blur(6px);
  transition: filter 0.3s ease;
  pointer-events: none;
  user-select: none;
}


html.doctor-confirmed #doctor-gate {
  display: none;
}

html.doctor-confirmed .doctor-gate-blur {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}


@keyframes chartBarPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.1; }
}

.animate-chart-bar-pulse {
  animation: chartBarPulse 1.6s ease-in-out infinite;
}


@keyframes birthdayGlow {
  0%, 100% {
    border-color: rgba(217, 119, 6, 0.3);
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
  }
  50% {
    border-color: rgba(217, 119, 6, 0.9);
    box-shadow: 0 0 16px 2px rgba(217, 119, 6, 0.45);
  }
}

.animate-birthday-glow {
  animation: birthdayGlow 2.4s ease-in-out infinite;
}


.ios-toggle {
  position: relative;
  display: inline-block;
  width: 51px;
  height: 31px;
  flex-shrink: 0;
}
.ios-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.ios-toggle-track {
  position: absolute;
  inset: 0;
  background: #e5e7eb;
  border-radius: 999px;
  transition: background-color 0.2s ease;
  pointer-events: none;
}
.ios-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.ios-toggle input:checked ~ .ios-toggle-track {
  background: #34c759;
}
.ios-toggle input:checked ~ .ios-toggle-track .ios-toggle-thumb {
  transform: translateX(20px);
}
.ios-toggle input:disabled {
  cursor: not-allowed;
}
.ios-toggle input:disabled ~ .ios-toggle-track {
  opacity: 0.5;
}
.ios-toggle input:focus-visible ~ .ios-toggle-track {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}


.kb-app-native {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  scrollbar-width: none; 
}


.kb-no-select {
  -webkit-user-select: none;
  user-select: none;
}


.template-text-content {
  -webkit-user-select: text;
  user-select: text;
}
.kb-app-native::-webkit-scrollbar {
  display: none; 
}


#push-settings-overlay .overflow-y-auto {
  scrollbar-width: none;
}
#push-settings-overlay .overflow-y-auto::-webkit-scrollbar {
  display: none;
}


@media (prefers-color-scheme: dark) {
  body.kb-push-app,
  body.kb-push-app.bg-slate-50 {
    background-color: #0f172a;
    color: #e2e8f0;
  }
  body.kb-push-app header.bg-white,
  body.kb-push-app .bg-white {
    background-color: #1e293b;
  }
  
  body.kb-push-app header.bg-white\/70 {
    background-color: rgba(30, 41, 59, 0.7);
  }
  body.kb-push-app .border-white\/60 {
    border-color: rgba(51, 65, 85, 0.6);
  }
  body.kb-push-app .bg-slate-50 {
    background-color: #0f172a;
  }
  body.kb-push-app .bg-slate-100 {
    background-color: #334155;
  }
  body.kb-push-app .border-slate-100,
  body.kb-push-app .border-slate-200 {
    border-color: #334155;
  }
  body.kb-push-app .border-slate-300 {
    border-color: #475569;
  }
  body.kb-push-app .text-slate-900 {
    color: #f1f5f9;
  }
  body.kb-push-app .text-slate-700,
  body.kb-push-app .text-slate-600 {
    color: #cbd5e1;
  }
  body.kb-push-app .text-slate-500,
  body.kb-push-app .text-slate-400 {
    color: #94a3b8;
  }
  body.kb-push-app .hover\:text-slate-700:hover {
    color: #f1f5f9;
  }
  body.kb-push-app .hover\:bg-slate-50:hover,
  body.kb-push-app .hover\:bg-slate-100:hover {
    background-color: #334155;
  }
  
  body.kb-push-app .bg-blue-50 {
    background-color: rgba(37, 99, 235, 0.18);
  }
  body.kb-push-app .hover\:bg-blue-50:hover {
    background-color: rgba(37, 99, 235, 0.25);
  }
  body.kb-push-app .bg-amber-50 {
    background-color: rgba(217, 119, 6, 0.18);
  }
  
  body.kb-push-app .bg-violet-50 {
    background-color: rgba(124, 58, 237, 0.18);
  }
  body.kb-push-app .bg-red-50 {
    background-color: rgba(220, 38, 38, 0.18);
  }
  body.kb-push-app .hover\:bg-red-50:hover {
    background-color: rgba(220, 38, 38, 0.25);
  }
  body.kb-push-app .border-red-100 {
    border-color: rgba(220, 38, 38, 0.35);
  }
  
  body.kb-push-app .bg-emerald-50 {
    background-color: rgba(16, 185, 129, 0.18);
  }
  body.kb-push-app .border-emerald-200 {
    border-color: rgba(16, 185, 129, 0.35);
  }
  body.kb-push-app .text-emerald-800 {
    color: #6ee7b7;
  }
  body.kb-push-app .border-amber-300 {
    border-color: rgba(217, 119, 6, 0.4);
  }
  body.kb-push-app .text-amber-900 {
    color: #fcd34d;
  }
  
  body.kb-push-app .ios-toggle-track {
    background: #475569;
  }
  
  body.kb-push-app #landscape-block {
    background: #0f172a;
    color: #e2e8f0;
  }
  body.kb-push-app .kb-live-split-v {
    border-right-color: #475569;
  }
  body.kb-push-app .kb-live-split-h {
    border-bottom-color: #475569;
  }
}


.kb-live-split-v {
  border-right: 1px solid #cbd5e1;
}
.kb-live-split-h {
  border-bottom: 1px solid #cbd5e1;
}


[id].kb-live-empty {
  font-size: 1rem;
}


#landscape-block {
  display: none;
}
@media (orientation: landscape) {
  #landscape-block {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 2rem;
    text-align: center;
  }
}


.max-h-\[85vh\] {
  max-height: 85vh;
}


@media (max-width: 639px) {
  #range-switch {
    width: 100%;
  }
  #range-switch .range-btn {
    flex: 1 1 0%;
  }
}


@media (min-width: 1024px) {
  #load-index-track {
    height: 12px;
  }
  #load-index-thumb {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }
  
  #load-index-heading {
    font-size: 1rem;
  }
  
  #load-index-header-row {
    margin-bottom: 2.5rem;
  }
}


@media (max-width: 359px) {
  main :is(h1, h2, h3, h4) {
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: anywhere;
  }
}


.kb-drag-placeholder {
  border: 2px dashed #93c5fd !important;
  background: #eff6ff !important;
  box-shadow: none !important;
}
.kb-drag-placeholder > * { visibility: hidden; }


.announcement-content,
.announcement-editor .ql-snow .ql-editor {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #334155;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (min-width: 640px) {
  .announcement-content,
  .announcement-editor .ql-snow .ql-editor { font-size: 1rem; }
}
.announcement-content p,
.announcement-editor .ql-snow .ql-editor p { margin: 0 0 0.6em; padding: 0; }
.announcement-content h2,
.announcement-editor .ql-snow .ql-editor h2 { font-size: 1.25rem; line-height: 1.35; font-weight: 700; color: #0f172a; margin: 1.3em 0 0.5em; padding: 0; }
.announcement-content h3,
.announcement-editor .ql-snow .ql-editor h3 { font-size: 1.125rem; line-height: 1.4; font-weight: 700; color: #0f172a; margin: 1.1em 0 0.4em; padding: 0; }
.announcement-content > :first-child,
.announcement-editor .ql-snow .ql-editor > :first-child { margin-top: 0; }
.announcement-content > :last-child { margin-bottom: 0; }
.announcement-content strong,
.announcement-editor .ql-snow .ql-editor strong { font-weight: 700; color: #0f172a; }
.announcement-content a,
.announcement-editor .ql-snow .ql-editor a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #bfdbfe;
  text-underline-offset: 2px;
}
.announcement-content a:hover { color: #1e40af; text-decoration-color: currentColor; }
.announcement-content blockquote,
.announcement-editor .ql-snow .ql-editor blockquote {
  margin: 0 0 0.8em;
  padding: 0.6em 1em;
  border-left: 4px solid #93c5fd;
  border-radius: 0 0.75rem 0.75rem 0;
  background: #f8fafc;
  color: #475569;
}
.announcement-content blockquote p:last-child { margin-bottom: 0; }
.announcement-editor .ql-snow .ql-editor blockquote + blockquote { margin-top: -0.8em; }
.announcement-content ul,
.announcement-content ol { margin: 0 0 0.8em; padding-left: 1.5em; }
.announcement-content ul { list-style: disc; }
.announcement-content ol { list-style: decimal; }
.announcement-content li { margin: 0.2em 0; padding-left: 0.2em; }
.announcement-content li::marker { color: #64748b; }
.announcement-editor .ql-snow .ql-editor ol { margin: 0 0 0.8em; padding-left: 0.25em; }
.announcement-content img,
.announcement-editor .ql-snow .ql-editor img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  vertical-align: middle;
}
.announcement-content .ql-align-center,
.announcement-editor .ql-snow .ql-editor .ql-align-center { text-align: center; }
.announcement-content .ql-align-right,
.announcement-editor .ql-snow .ql-editor .ql-align-right { text-align: right; }
.announcement-content .ql-align-justify,
.announcement-editor .ql-snow .ql-editor .ql-align-justify { text-align: justify; }
.announcement-mark { color: inherit; padding: 0.05em 0.15em; border-radius: 0.25em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.announcement-mark-yellow { background: #fef08a; }
.announcement-mark-green { background: #bbf7d0; }
.announcement-mark-blue { background: #bfdbfe; }
.announcement-mark-violet { background: #ddd6fe; }
.announcement-mark-pink { background: #fbcfe8; }
.announcement-mark-red { background: #fecaca; }
.announcement-mark-orange { background: #fed7aa; }
.announcement-mark-gray { background: #e2e8f0; }


.announcement-editor .ql-toolbar.ql-snow {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem 1rem 0 0;
  font-family: inherit;
}
.announcement-editor .ql-toolbar.ql-snow .ql-formats { margin-right: 6px; display: inline-flex; align-items: center; }
.announcement-editor .ql-toolbar.ql-snow button { width: 32px; height: 32px; padding: 6px; border-radius: 0.5rem; }
.announcement-editor .ql-toolbar.ql-snow button:hover,
.announcement-editor .ql-toolbar.ql-snow button:focus-visible { background: #eff6ff; }
.announcement-editor .ql-toolbar.ql-snow button.ql-active { background: #dbeafe; }
.announcement-editor .ql-toolbar.ql-snow .ql-picker { height: 32px; }
.announcement-editor .ql-toolbar.ql-snow .ql-picker-label { border-radius: 0.5rem; }
.announcement-editor .ql-snow .ql-picker.ql-header { width: 132px; }
.announcement-editor .ql-snow .ql-picker.ql-header .ql-picker-label { white-space: nowrap; overflow: hidden; }

@media (max-width: 639px) {
  .announcement-editor .ql-toolbar.ql-snow { padding: 6px; gap: 2px; }
  .announcement-editor .ql-toolbar.ql-snow .ql-formats { margin-right: 0; }
}
.announcement-editor .ql-snow .ql-picker.ql-header .ql-picker-label::before,
.announcement-editor .ql-snow .ql-picker.ql-header .ql-picker-item::before { content: 'Обычный текст'; }
.announcement-editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
.announcement-editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: 'Заголовок'; }
.announcement-editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
.announcement-editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { content: 'Подзаголовок'; }
.announcement-editor .ql-snow .ql-picker.ql-header .ql-picker-options { border-radius: 0.75rem; }
.announcement-editor .ql-snow .ql-color-picker .ql-picker-options { width: 184px; padding: 6px; border-radius: 0.75rem; }
.announcement-editor .ql-snow .ql-color-picker .ql-picker-item { width: 32px; height: 32px; margin: 2px; border-radius: 0.5rem; border: 1px solid #cbd5e1; }
.announcement-editor .ql-snow .ql-color-picker .ql-picker-item:not([data-value]) {
  background: linear-gradient(135deg, #fff 45%, #ef4444 45%, #ef4444 55%, #fff 55%) !important;
}
.announcement-editor .ql-snow .ql-tooltip { z-index: 25; border-radius: 0.75rem; border-color: #e2e8f0; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12); color: #334155; }
.announcement-editor .ql-snow .ql-tooltip::before { content: 'Ссылка:'; }
.announcement-editor .ql-snow .ql-tooltip[data-mode="link"]::before { content: 'Адрес ссылки:'; }
.announcement-editor .ql-snow .ql-tooltip a.ql-action::after { content: 'Изменить'; }
.announcement-editor .ql-snow .ql-tooltip a.ql-remove::before { content: 'Убрать'; }
.announcement-editor .ql-snow .ql-tooltip.ql-editing a.ql-action::after { content: 'Сохранить'; }
.announcement-editor .ql-snow .ql-tooltip input[type="text"] { border-radius: 0.5rem; font-size: 16px; height: 32px; }
.announcement-editor .ql-container.ql-snow {
  border: 1px solid #e2e8f0;
  border-top: 0;
  border-radius: 0 0 1rem 1rem;
  font-family: inherit;
  background: #fff;
}
.announcement-editor:focus-within .ql-container.ql-snow,
.announcement-editor:focus-within .ql-toolbar.ql-snow { border-color: #93c5fd; }
.announcement-editor .ql-snow .ql-editor {
  min-height: 18rem;
  padding: 1rem 1.25rem;
  -webkit-user-select: text;
  user-select: text;
}
.announcement-editor .ql-snow .ql-editor.ql-blank::before { left: 1.25rem; right: 1.25rem; font-style: normal; color: #94a3b8; }


.announcement-status-option:has(input:checked) { border-color: #3b82f6; background: #eff6ff; }
.announcement-status-option:hover { border-color: #93c5fd; }


#main-header .public-header-row { padding-inline: 1.5rem; }
#main-header .public-header-brand { padding-right: .75rem; }
#main-header .public-header-brand > span:first-child { font-size: 13px; }
@media (min-width: 640px) {
  #main-header .public-header-brand { padding-right: 0; }
}
@media (max-width: 359px) {
  #main-header .public-header-row { padding-inline: 1rem; }
  #main-header .public-header-brand { padding-right: .5rem; }
  #main-header .public-header-brand > span:first-child { font-size: 12px; }
  #mobile-menu-btn .public-header-menu-label { display: none; }
}

#mobile-nav-container > div {
  min-height: 0;
  max-height: max(0px, calc(100dvh - var(--header-h, 80px)));
  overflow-y: auto;
  overscroll-behavior: contain;
}
