/* Кластер «Семья» (семейный совет, договорённости, правила, вопросы, традиции).
   Поверх /css/style.css и /css/article.css, те же токены. */

.article-hero__shot img,
.prose figure img,
.related-card img { height: auto; }

:root {
  --fam-night: #1d1733;
  --fam-night-2: #2b2250;
  --fam-coral: #ff7a6b;
  --fam-mint: #34d399;
}

/* ---------- Общая панель инструмента ---------- */

.fam-tool [hidden],
.fam-waitlist [hidden] { display: none !important; }

.fam-tool {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(139, 92, 246, 0.1), transparent 65%),
    radial-gradient(420px 220px at 0% 100%, rgba(229, 156, 21, 0.1), transparent 60%),
    var(--bg-elevated);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.fam-tool__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
}

.fam-tool__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--purple);
}

.fam-tool__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0.3rem 0 0;
}

.fam-tool__head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  max-width: 30rem;
}

.fam-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .fam-grid--2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .fam-grid--setup { grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
}

.fam-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }

.fam-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.fam-input,
.fam-select,
.fam-textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fam-textarea { min-height: 4.5rem; resize: vertical; }

.fam-input:focus,
.fam-select:focus,
.fam-textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--purple) 55%, transparent);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.fam-row { display: flex; gap: 0.5rem; }
.fam-row > .fam-input { flex: 1; }

/* Чипсы (имена, категории) */
.fam-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.fam-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.55rem 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.fam-chip__x {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 24, 48, 0.06);
  color: var(--ink-muted);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}

.fam-chip__x:hover { background: rgba(236, 72, 153, 0.14); color: var(--pink); }

.fam-chip__dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--c, var(--gold));
}

/* Переключатель-сегменты */
.fam-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 14px;
  background: rgba(31, 24, 48, 0.05);
}

.fam-seg button {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.fam-seg button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(31, 24, 48, 0.1);
}

.fam-hint {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.fam-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }

/* ---------- Таймер семейного совета ---------- */

.fam-plan {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: plan;
}

.fam-plan li {
  counter-increment: plan;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.fam-plan li::before {
  content: counter(plan);
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c, var(--gold)) 18%, #fff);
  color: color-mix(in srgb, var(--c, var(--gold)) 80%, #000);
  font-family: var(--font-display);
  font-size: 0.78rem;
}

.fam-plan strong { display: block; font-size: 0.95rem; }
.fam-plan span { display: block; font-size: 0.84rem; color: var(--ink-muted); }

.fam-stage {
  position: relative;
  display: none;
  flex-direction: column;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(700px 380px at 15% 0%, rgba(139, 92, 246, 0.45), transparent 60%),
    radial-gradient(600px 360px at 100% 100%, rgba(229, 156, 21, 0.3), transparent 60%),
    linear-gradient(160deg, var(--fam-night-2), var(--fam-night));
  box-shadow: 0 30px 90px rgba(29, 23, 51, 0.45);
}

.fam-stage.is-on { display: flex; }

body.fam-stage-on .mobile-cta { display: none !important; }

.fam-stage:fullscreen { border-radius: 0; min-height: 100vh; }

.fam-stage__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.fam-stage__topic {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
  color: #fff;
}

.fam-stage__icons { display: flex; gap: 0.4rem; }

.fam-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.fam-icon-btn:hover { background: rgba(255, 255, 255, 0.16); }

.fam-stage__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 0.5rem 1.25rem 1.25rem;
  text-align: center;
}

.fam-stage__label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.fam-stage__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.fam-stage__prompt {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
}

.fam-ring {
  position: relative;
  width: clamp(170px, 26vw, 250px);
  aspect-ratio: 1;
}

.fam-stage:fullscreen .fam-ring { width: clamp(220px, 32vh, 360px); }
.fam-stage:fullscreen .fam-stage__name { font-size: clamp(3rem, 9vh, 7rem); }

.fam-ring svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c, var(--gold)) 55%, transparent));
}

.fam-ring__track { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 10; }

.fam-ring__bar {
  fill: none;
  stroke: var(--c, var(--gold));
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.25s linear, stroke 0.3s;
}

.fam-ring__time {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-variant-numeric: tabular-nums;
}

.fam-stage.is-over .fam-ring__bar { stroke: var(--fam-coral); }
.fam-stage.is-over .fam-ring__time { color: var(--fam-coral); animation: fam-blink 1s steps(2) infinite; }
.fam-stage.is-paused .fam-ring__time { opacity: 0.5; }

@keyframes fam-blink { 50% { opacity: 0.35; } }

.fam-queue {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fam-queue li {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.fam-queue li.is-done { opacity: 0.4; text-decoration: line-through; }
.fam-queue li.is-pass { opacity: 0.4; }
.fam-queue li.is-now { background: #fff; color: var(--fam-night); }

.fam-stage__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 1.25rem 1.4rem;
}

.fam-btn-dark {
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.fam-btn-dark:hover { background: rgba(255, 255, 255, 0.16); }
.fam-btn-dark:active { transform: translateY(1px); }

.fam-btn-dark--main {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold) 0%, #ff9f43 100%);
  box-shadow: 0 10px 30px rgba(229, 156, 21, 0.35);
}

.fam-btn-dark--main:hover { background: linear-gradient(135deg, var(--gold-deep) 0%, #ff8c2a 100%); }

.fam-stage__kbd {
  margin: 0;
  padding: 0 1.25rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.fam-big-emoji { font-size: clamp(3rem, 8vw, 4.5rem); line-height: 1; }

.fam-final-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  max-width: 30rem;
  text-align: left;
}

.fam-final-list li {
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.fam-stage a { color: #ffd38a; }

/* ---------- Колода карточек (вопросы, традиции) ---------- */

.fam-deck {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .fam-deck { grid-template-columns: 1fr 1.1fr; align-items: center; }
}

.fam-card-stack {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.fam-card-stack::before,
.fam-card-stack::after {
  content: "";
  position: absolute;
  width: min(420px, 88%);
  height: 260px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(31, 24, 48, 0.08);
}

.fam-card-stack::before { transform: rotate(-6deg) translate(-10px, 10px); }
.fam-card-stack::after { transform: rotate(4deg) translate(10px, 6px); }

.fam-qcard {
  position: relative;
  z-index: 1;
  width: min(420px, 88%);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(300px 180px at 100% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(150deg, color-mix(in srgb, var(--c, var(--purple)) 92%, #fff), color-mix(in srgb, var(--c, var(--purple)) 75%, #000));
  box-shadow: 0 24px 60px color-mix(in srgb, var(--c, var(--purple)) 35%, transparent);
  transform-origin: 50% 100%;
}

.fam-qcard.is-flip { animation: fam-flip 0.45s ease; }

@keyframes fam-flip {
  0% { transform: rotateX(0) translateY(0); opacity: 1; }
  45% { transform: rotateX(-70deg) translateY(-14px); opacity: 0.2; }
  100% { transform: rotateX(0) translateY(0); opacity: 1; }
}

.fam-qcard__cat {
  align-self: flex-start;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.fam-qcard__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.fam-qcard__sub {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0.88;
}

.fam-qcard__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  opacity: 0.8;
}

/* Список вопросов/идей в тексте статьи */
.fam-list {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 1.6rem;
  padding: 0;
  list-style: none;
  counter-reset: fl;
}

.prose .fam-list li {
  counter-increment: fl;
  position: relative;
  margin: 0;
  padding: 0.75rem 0.95rem 0.75rem 3rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: 0.98rem;
}

.prose .fam-list li::before {
  content: counter(fl);
  position: absolute;
  left: 0.85rem;
  top: 0.8rem;
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.68rem;
  color: color-mix(in srgb, var(--c, var(--gold)) 85%, #000);
  background: color-mix(in srgb, var(--c, var(--gold)) 16%, #fff);
}

.prose .fam-list li strong { display: block; margin-bottom: 0.15rem; }
.prose .fam-list li span { display: block; color: var(--ink-muted); font-size: 0.92rem; }

/* «Плохо → хорошо» */
.fam-compare {
  display: grid;
  gap: 0.6rem;
  margin: 1.1rem 0 1.6rem;
}

.fam-compare__row {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .fam-compare__row { grid-template-columns: 1fr 1fr; }
}

.fam-compare__bad,
.fam-compare__good {
  padding: 0.8rem 1rem;
  border-radius: 14px;
  font-size: 0.95rem;
  border: 1px solid var(--line);
}

.fam-compare__bad {
  background: rgba(255, 122, 107, 0.08);
  color: var(--ink-muted);
}

.fam-compare__good {
  background: rgba(52, 211, 153, 0.1);
}

.fam-compare__bad::before { content: "✕  "; color: var(--fam-coral); font-weight: 800; }
.fam-compare__good::before { content: "✓  "; color: #10b981; font-weight: 800; }

/* ---------- Конструкторы для печати (правила, договорённость) ---------- */

.fam-checks {
  display: grid;
  gap: 1rem;
  max-height: 560px;
  overflow: auto;
  padding-right: 0.25rem;
}

.fam-checks fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.fam-checks legend {
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.fam-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s;
}

.fam-check:hover { background: rgba(139, 92, 246, 0.06); }

.fam-check input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--purple);
  flex: none;
}

.fam-swatches { display: flex; gap: 0.5rem; }

.fam-swatch {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--c);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}

.fam-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }

/* Плакат / карточка — превью и печать */
.fam-sheet {
  --c: var(--purple);
  position: relative;
  aspect-ratio: 210 / 297;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  padding: 8% 8% 6%;
  border-radius: 10px;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--c) 18%, transparent) 0 18%, transparent 18.5%),
    radial-gradient(circle at 92% 96%, color-mix(in srgb, var(--c) 14%, transparent) 0 22%, transparent 22.5%),
    #fffdf9;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(31, 24, 48, 0.14);
  color: var(--ink);
  overflow: hidden;
}

.fam-sheet__kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c);
}

.fam-sheet__title {
  margin: 0.3rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.fam-sheet__list {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  font-size: clamp(0.7rem, 1.7vw, 0.92rem);
}

.fam-sheet__list li {
  display: grid;
  grid-template-columns: 1.8em 1fr;
  gap: 0.55em;
  align-items: start;
  padding: 0.45em 0.6em;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c) 7%, #fff);
  line-height: 1.3;
}

.fam-sheet__list li > span:first-child { font-size: 1.15em; line-height: 1.1; }

.fam-sheet__empty {
  margin: auto 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.fam-sheet__sign {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em 1.4em;
  margin-top: 1em;
  padding-top: 0.8em;
  border-top: 1px dashed color-mix(in srgb, var(--c) 40%, transparent);
  font-size: clamp(0.62rem, 1.4vw, 0.78rem);
  color: var(--ink-muted);
}

.fam-sheet__sign span {
  flex: 1 1 40%;
  min-width: 6em;
  padding-top: 1.6em;
  border-bottom: 1px solid rgba(31, 24, 48, 0.25);
}

.fam-sheet__foot {
  margin: 0.4em 0 0;
  font-size: clamp(0.58rem, 1.3vw, 0.72rem);
  color: var(--ink-muted);
  text-align: center;
}

/* Карточка договорённости — горизонтальная */
.fam-sheet--card {
  aspect-ratio: auto;
  min-height: 0;
  max-width: 560px;
  padding: 6% 7%;
}

.fam-deal {
  flex: 1;
  display: grid;
  gap: 0.5em;
  font-size: clamp(0.72rem, 1.6vw, 0.95rem);
}

.fam-deal__row {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 0.6em;
  align-items: baseline;
  padding-bottom: 0.35em;
  border-bottom: 1px solid color-mix(in srgb, var(--c) 18%, transparent);
}

.fam-deal__row b {
  font-size: 0.78em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c);
}

.fam-deal__row span:empty::before { content: "…"; color: var(--ink-muted); }

.fam-sheet__stamp {
  position: absolute;
  right: 6%;
  top: 7%;
  display: grid;
  place-items: center;
  width: 3.4em;
  height: 3.4em;
  border-radius: 50%;
  border: 2px dashed var(--c);
  font-size: clamp(0.9rem, 2.4vw, 1.3rem);
  transform: rotate(-12deg);
}

/* ---------- Иллюстрации-подложки (связанные карточки) ---------- */

.fam-art {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  font-size: 3.2rem;
  background:
    radial-gradient(240px 160px at 85% 10%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(140deg, color-mix(in srgb, var(--c, var(--purple)) 28%, #fff), color-mix(in srgb, var(--c, var(--purple)) 55%, #fff));
}

/* ---------- Лист ожидания ---------- */

.fam-waitlist {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(139, 92, 246, 0.5), transparent 60%),
    radial-gradient(500px 300px at 100% 100%, rgba(229, 156, 21, 0.35), transparent 60%),
    linear-gradient(160deg, var(--fam-night-2), var(--fam-night));
  box-shadow: 0 30px 90px rgba(29, 23, 51, 0.3);
}

@media (min-width: 900px) {
  .fam-waitlist { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 2.5rem; }
}

.fam-waitlist__eyebrow {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ffd38a;
}

.fam-waitlist h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0.7rem 0 0.7rem;
}

.fam-waitlist p { margin: 0 0 0.8rem; color: rgba(255, 255, 255, 0.78); }

.fam-waitlist ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.fam-waitlist form {
  padding: 1.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.fam-waitlist .fam-label { color: rgba(255, 255, 255, 0.7); }

.fam-waitlist .fam-input,
.fam-waitlist .fam-select {
  background: rgba(255, 255, 255, 0.95);
}

.fam-waitlist__status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.fam-waitlist__status.is-ok { color: #86efac; }
.fam-waitlist__status.is-error { color: #fecaca; }

.fam-waitlist__fine { margin: 0.6rem 0 0 !important; font-size: 0.78rem; color: rgba(255, 255, 255, 0.5) !important; }

.fam-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Заметка про безопасность ---------- */

.fam-note {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent);
  background: rgba(6, 182, 212, 0.06);
  font-size: 0.95rem;
}

.fam-note p { margin: 0; }

/* ---------- Печать ----------
   JS кладёт клон плаката/карточки в #fam-print-root, печатается только он. */

#fam-print-root { display: none; }

@media print {
  @page { size: A4 portrait; margin: 0; }
  body.fam-printing { background: #fff !important; }
  body.fam-printing::before,
  body.fam-printing::after { display: none !important; }
  body.fam-printing > *:not(#fam-print-root) { display: none !important; }
  body.fam-printing #fam-print-root {
    display: flex !important;
    flex-direction: column;
    width: 210mm;
    height: 296mm;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #fam-print-root .fam-sheet {
    flex: 1;
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 16mm 16mm 12mm;
  }
  #fam-print-root .fam-sheet__kicker { font-size: 11pt; }
  #fam-print-root .fam-sheet__title { font-size: 36pt; margin-bottom: 10mm; }
  #fam-print-root .fam-sheet__list { font-size: 19pt; gap: 4mm; }
  #fam-print-root .fam-sheet__list li { padding: 3.5mm 5mm; border-radius: 4mm; }
  #fam-print-root .fam-sheet__sign { font-size: 11pt; }
  #fam-print-root .fam-sheet--card { padding: 12mm 16mm; border-bottom: 1px dashed #bbb; }
  #fam-print-root .fam-sheet--card:last-child { border-bottom: 0; }
  #fam-print-root .fam-sheet--card .fam-sheet__title { font-size: 22pt; }
  #fam-print-root .fam-deal { font-size: 13pt; }
  #fam-print-root .fam-sheet__stamp { font-size: 22pt; }
}

@media (prefers-reduced-motion: reduce) {
  .fam-qcard.is-flip { animation: none; }
  .fam-stage.is-over .fam-ring__time { animation: none; }
}
