/* ═══════════════════════════════════════════
   КАСТОМНЫЕ СТИЛИ ПРОЕКТА
   Используют CSS-переменные из @theme (tailwind.src.css)
   ═══════════════════════════════════════════ */

/* Скрыть полосу прокрутки, сохранив скролл */
.scrollbar-none { scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }

/* Задисейбленные поля формы */
form input:disabled,
form select:disabled,
form textarea:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* <dialog> backdrop и анимация */
dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

dialog.open:not([open]),
dialog[open] {
  animation: fadeInUp 0.25s ease forwards;
}

/* Плавный скролл */
html {
  scroll-behavior: smooth;
}

/* HTML-контент из CKEditor в модалке таймлайна */
.tl-modal-content p          { margin-bottom: 0.6em; }
.tl-modal-content p:last-child { margin-bottom: 0; }
.tl-modal-content ul,
.tl-modal-content ol          { padding-left: 1.4em; margin-bottom: 0.6em; }
.tl-modal-content ul          { list-style: disc; }
.tl-modal-content ol          { list-style: decimal; }
.tl-modal-content li          { margin-bottom: 0.2em; }
.tl-modal-content strong,
.tl-modal-content b           { font-weight: 600; }
.tl-modal-content em,
.tl-modal-content i           { font-style: italic; }

/* ── Prose — форматированный HTML-контент в исследованиях ── */
.prose { color: #262932; line-height: 1.75; font-size: 1rem; }
.prose h2 { font-size: 1.375rem; font-weight: 800; margin: 2em 0 0.75em; line-height: 1.25; color: #262932; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 1.75em 0 0.5em; line-height: 1.3; color: #262932; }
.prose h4 { font-size: 1rem; font-weight: 700; margin: 1.5em 0 0.4em; }
.prose p  { margin-bottom: 1.25em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { list-style: disc; padding-left: 1.5em; margin-bottom: 1.25em; }
.prose ol { list-style: decimal; padding-left: 1.5em; margin-bottom: 1.25em; }
.prose li { margin-bottom: 0.4em; }
.prose strong, .prose b { font-weight: 700; }
.prose em, .prose i { font-style: italic; }
.prose a { color: var(--color-brand-500); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--color-brand-600); }
.prose blockquote {
  border-left: 3px solid var(--color-brand-500);
  padding: 0.75em 1.25em;
  margin: 1.5em 0;
  background: var(--color-brand-50);
  border-radius: 0 0.5rem 0.5rem 0;
  color: #4b5563;
  font-style: italic;
}
.prose hr { border: none; border-top: 1px solid #e5e7eb; margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.9em; }
.prose th { background: #f4f4f4; font-weight: 700; padding: 0.6em 0.75em; border: 1px solid #e5e7eb; text-align: left; }
.prose td { padding: 0.55em 0.75em; border: 1px solid #e5e7eb; vertical-align: top; }
.prose tr:nth-child(even) td { background: #fafafa; }


#hero {
  background-color: #0f2027;
  background-position: right top;
  background-size: cover;
  position: relative;
}

@keyframes fly_heart {
  0%,100% {
    bottom: -4em;
    margin-left: 0;
    transform: rotate(-15deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  50% {
    bottom: calc(100% - 15em);
    margin-left: 5em;
    transform: rotate(15deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}

.fly_heart {
  position: absolute;
  left: 1em;
  bottom: -4em;
  animation: fly_heart 30s linear infinite;
}

.fly_heart img {
  width: 20em;
  height: auto;
  display: block;
  padding: 0;
  margin: 0;
}

.canvas_box {
  position: relative;
  padding-bottom: 100%;
}

.canvas_box canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}