/* ═══════════════════════════════════════════
   КАСТОМНЫЕ СТИЛИ — «Лидеры здоровья»
   Тёплая молочно-розовая тема
   Только то, что нельзя сделать утилитами Tailwind
   ═══════════════════════════════════════════ */

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

/* ===== Мягкий фоновый градиент страницы ===== */
.page-bg {
  background:
    radial-gradient(1100px 700px at 12% -10%, #F8E3D8 0%, rgba(248,227,216,0) 60%),
    radial-gradient(900px 600px at 100% 110%, #EAD9EA 0%, rgba(234,217,234,0) 55%),
    linear-gradient(180deg, #FBF6EE 0%, #F8EFE9 100%);

}

/* ===== Карточка формы ===== */
.card-form {
  background: var(--color-surface);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 30px 60px -28px rgba(80, 36, 64, 0.18),
    0 8px 22px -10px rgba(80, 36, 64, 0.08);
  border: 1px solid rgba(236, 226, 221, 0.7);
  position: relative;
}
.card-form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent 30%);
  mix-blend-mode: overlay;
}

/* ===== Поля ввода ===== */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--color-surface-2);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 0 1rem;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.input-wrap.is-focused {
  background: #FFFFFF;
  border-color: var(--color-rose);
  box-shadow: 0 0 0 4px rgba(201, 126, 148, 0.14);
}
.input-wrap.is-success {
  background: #FFFFFF;
  border-color: rgba(111, 160, 138, 0.5);
}
.input-wrap.is-error {
  background: #FFFFFF;
  border-color: rgba(197, 102, 115, 0.55);
}

.input-field {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--color-ink);
  height: 3.5rem;
  letter-spacing: 0.01em;
  font-feature-settings: "tnum";
}
.input-field::placeholder {
  color: var(--color-ink-3);
}

/* ===== Кнопка «Мой номер» ===== */
.btn-my-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-rose-deep);
  background: var(--color-rose-soft);
  border: 0;
  border-radius: 9999px;
  padding: 0.2rem 0.625rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-my-number:hover {
  background: var(--color-rose);
  color: #FFFFFF;
}

/* ===== Кнопка проверки регномера ===== */
.btn-check-reg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--color-rose-soft);
  color: var(--color-rose-deep);
  cursor: pointer;
  margin-left: 0.375rem;
  transition: background 0.15s ease, transform 0.1s ease;
  flex-shrink: 0;
}
.btn-check-reg:hover {
  background: var(--color-rose);
  color: #FFFFFF;
  transform: scale(1.05);
}
.btn-check-reg:active {
  transform: scale(0.95);
}
.btn-check-reg.hidden {
  display: none;
}

/* ===== Иконки-адорнменты (внутри поля) ===== */
.input-adornment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 0.5rem;
  animation: pop 0.25s ease;
}
.input-adornment-left {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 0.25rem;
  color: var(--color-ink-3);
}

/* ===== Helper text (под полем) ===== */
.helper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  padding-left: 0.25rem;
  opacity: 0;
  transform: translateY(-2px);
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, max-height 0.22s ease;
}
.helper.is-visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 2rem;
  animation: rise 0.28s ease both;
}

/* ===== Нумерованный бейдж поля ===== */
.field-index {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: var(--color-rose-soft);
  color: var(--color-rose-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-feature-settings: "tnum";
}

/* ===== Коннектор между полями ===== */
.connector-line {
  flex: 0 0 12px;
  height: 16px;
  border-left: 1.5px dashed var(--color-line-2);
}
.connector-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: var(--color-surface-2);
  color: var(--color-ink-3);
  transform: rotate(90deg);
}

/* ===== Dropdown подсказок ===== */
.dropdown-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  padding: 0.375rem;
  z-index: 30;
  box-shadow:
    0 14px 40px -12px rgba(80, 36, 64, 0.18),
    0 4px 10px -4px rgba(80, 36, 64, 0.08);
  animation: rise 0.18s ease both;
}
.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: transparent;
  border: 0;
  border-radius: 0.625rem;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--color-ink);
  transition: background 0.12s ease;
}
.dropdown-item:hover,
.dropdown-item:first-of-type {
  background: var(--color-surface-2);
}
.dropdown-pin {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--color-rose-soft);
  color: var(--color-rose-deep);
  flex: 0 0 auto;
}
.dropdown-text mark {
  background: rgba(201, 126, 148, 0.18);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}

/* ===== Кнопка отправки (розовый градиент) ===== */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  height: 3.5rem;
  width: 100%;
  border: 0;
  border-radius: 9999px;
  background: linear-gradient(180deg, #C97E94 0%, #B0617B 100%);
  color: #FFFFFF;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 12px 24px -12px rgba(176, 97, 123, 0.55);
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 16px 28px -12px rgba(176, 97, 123, 0.6);
  filter: brightness(1.03);
}
.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}
.btn-submit:disabled {
  background: var(--color-surface-2);
  color: var(--color-ink-3);
  cursor: not-allowed;
  box-shadow: none;
}
.btn-submit:hover:not(:disabled) .submit-arrow {
  transform: translateX(3px);
}
.submit-arrow {
  display: inline-flex;
  transition: transform 0.18s ease;
}

/* ===== Карточки отчётов ===== */
.report-card {
  background: var(--color-surface-2);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.report-card:hover {
  background: #FFFFFF;
  box-shadow: 0 4px 16px -4px rgba(80, 36, 64, 0.08);
}
.report-num {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: var(--color-rose-soft);
  color: var(--color-rose-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.125rem;
  font-feature-settings: "tnum";
}
.report-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-feature-settings: "tnum";
}
.report-badge--reg {
  color: var(--color-ink);
}

/* ===== Brand row (лого + название) ===== */
.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.75rem 0.375rem 0.5rem;
  background: var(--color-surface-2);
  border-radius: 9999px;
}

/* ===== Header ===== */
#site-header {
  transition: background 0.3s, border-color 0.3s;
}
#site-header.header-scrolled {
  background: rgba(254, 251, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}

/* ===== Согласие на обработку ПД ===== */
.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: var(--color-ink-3);
}
.consent-wrap input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  accent-color: var(--color-rose);
  cursor: pointer;
}
.consent-wrap a {
  color: var(--color-rose-deep);
  text-decoration: underline;
}
.consent-wrap a:hover {
  opacity: 0.8;
}

/* ===== Скрыть скроллбар ===== */
.scrollbar-none { scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }

/* ===== Кнопка «Добавить участников» ===== */
#btn-add-participants:hover {
  background: var(--color-rose) !important;
  color: #FFFFFF !important;
}

/* ===== Dialog / Modal ===== */
dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}
dialog[open] {
  animation: fadeInUp 0.25s ease forwards;
}
dialog {
  background: var(--color-surface);
  margin: auto;
  inset: 0;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}
dialog[open] {
  display: flex;
  flex-direction: column;
}
