/* ═══════════════════════════════════════════
   КАСТОМНЫЕ СТИЛИ ПРОЕКТА
   Используют 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; }


/* Согласие на обработку ПД — чекбоксы */
.consent-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.55);
}

.consent-wrap input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.consent-wrap a {
  color: var(--color-accent);
  text-decoration: underline;
}

.consent-wrap a:hover {
  opacity: 0.8;
}

/* ===== Header: скролл-эффект ===== */
#site-header {
  transition: background 0.3s, border-color 0.3s;
}
#site-header.header-scrolled {
  background: rgba(11, 26, 31, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
#header-inner {
  transition: padding 0.3s;
}
#site-header.header-scrolled #header-inner {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

@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%;
}