/* Бесплатные разделы: квадрат Пифагора, карта дня, лунный календарь, ангельские числа */
.tool .mx-form input[name="name"] { width: min(360px, 100%); }
.tool-result { margin-top: 18px; }
.tool-result.in > * { animation: tl-in .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes tl-in { from { opacity: 0; transform: translateY(14px); } }
.tool-cards { display: grid; gap: 16px; }
.tool-disclaimer { margin-top: 22px; }

/* квадрат Пифагора */
.py-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin: 12px 0 8px; }
.py-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; border-radius: var(--radius);
  background: radial-gradient(circle at 50% 40%, rgba(91,63,208,.3), rgba(10,16,48,.9) 70%); border: 1px solid var(--line); }
.py-cell { display: grid; gap: 4px; align-content: center; justify-items: center; aspect-ratio: 1; padding: 8px; cursor: pointer;
  border-radius: 14px; border: 1px solid #333c80; background: #0d1440; color: var(--text); font: inherit;
  transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.py-cell b { font-family: var(--serif); font-size: clamp(18px, 3.4vw, 26px); color: var(--gold2); letter-spacing: .04em; word-break: break-all; }
.py-cell small { font-size: 12px; color: var(--mute); text-align: center; line-height: 1.25; }
.py-cell:hover, .py-cell.on { border-color: var(--gold); background: #1d2470; transform: translateY(-2px); }
.py-lines { grid-template-columns: repeat(4, 1fr); }
.py-all { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.py-all h3 { font-size: 17px; }

/* карта дня */
.card-day { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(91,63,208,.3), rgba(13,20,60,.85)); border: 1px solid rgba(143,107,255,.45); }
.tarot-card { width: 180px; aspect-ratio: 2/3.3; border-radius: 16px; display: grid; grid-template-rows: auto 1fr auto; justify-items: center;
  padding: 16px 10px; color: var(--gold2); border: 2px solid var(--gold);
  background: radial-gradient(circle at 50% 42%, #5b3fd0 0%, #1b1d5c 55%, #0a1030 100%);
  box-shadow: 0 0 0 6px rgba(226,187,95,.12), 0 20px 50px rgba(0,0,0,.6), 0 0 40px rgba(143,107,255,.35);
  transform: perspective(800px) rotateY(180deg) scale(.9); opacity: .2; transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity .6s ease; }
.tarot-card.flip { transform: perspective(800px) rotateY(0) scale(1); opacity: 1; }
.tarot-card .roman { font-family: var(--serif); font-size: 22px; letter-spacing: .1em; }
.tarot-card .glyph { align-self: center; font-size: 64px; text-shadow: 0 0 24px rgba(246,221,149,.8); animation: tl-glow 4s ease-in-out infinite; }
.tarot-card .cname { font-family: var(--serif); font-size: 18px; text-align: center; }
@keyframes tl-glow { 50% { text-shadow: 0 0 40px rgba(246,221,149,1), 0 0 70px rgba(143,107,255,.6); } }
.card-text .kw { color: var(--accent); }
.card-text h2 { color: var(--gold2); }

/* лунный календарь */
.moon-today { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.moon-big { font-size: 96px; line-height: 1; filter: drop-shadow(0 0 24px rgba(246,221,149,.5)); animation: tl-float 6s ease-in-out infinite; }
@keyframes tl-float { 50% { transform: translateY(-6px); } }
.moon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.moon-day { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.moon-day.now { border-color: var(--gold); box-shadow: 0 0 24px rgba(226,187,95,.25); }
.moon-day small { color: var(--mute); }
.moon-day b { color: var(--gold2); font-weight: 600; }
.moon-ico { font-size: 28px; }
.angel-list { margin-top: 22px; }
.angel-list h3 { font-family: var(--serif); font-size: 26px; }

@media (max-width: 760px) {
  .py-layout, .card-day, .moon-today { grid-template-columns: 1fr; }
  .tarot-card { width: 160px; justify-self: center; }
  .py-all { grid-template-columns: 1fr; }
  .py-lines { grid-template-columns: repeat(2, 1fr); }
  .moon-big { font-size: 72px; }
}

/* ---------- Таро ---------- */
.tarot-ask { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.tarot-ask label { flex: 1 1 320px; display: grid; gap: 6px; color: var(--dim); font-size: 14px; }
.tarot-ask input { font: inherit; font-size: 18px; color: var(--text); background: #0b1236; border: 1px solid #333c80;
  border-radius: 12px; padding: 11px 14px; min-height: 48px; }
.tarot-ask .note { flex-basis: 100%; margin: 0; }
.tarot-spreads { margin: 18px 0 8px; }
.t-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 18px 0; }
.t-slot { display: grid; justify-items: center; gap: 6px; }
.t-flip { position: relative; width: 150px; aspect-ratio: 2/3.3; perspective: 900px; }
.t-flip .tarot-card { position: absolute; inset: 0; width: 100%; opacity: 1; backface-visibility: hidden;
  transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.t-flip .t-back { transform: rotateY(0); display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, #1b1d5c 0 10px, #232674 10px 20px); }
.t-flip .t-face { transform: rotateY(180deg); }
.t-flip.open .t-back { transform: rotateY(-180deg); }
.t-flip.open .t-face { transform: rotateY(0); }
.t-flip.open .t-face.rev { transform: rotateY(0) rotate(180deg); }
.tarot-card.minor .glyph { font-size: 54px; }
.tarot-card.minor.cups { background: radial-gradient(circle at 50% 42%, #2f5bd0 0%, #1b1d5c 55%, #0a1030 100%); }
.tarot-card.minor.swords { background: radial-gradient(circle at 50% 42%, #6b7aa8 0%, #1b1d5c 55%, #0a1030 100%); }
.tarot-card.minor.pentacles { background: radial-gradient(circle at 50% 42%, #2f9a6d 0%, #1b1d5c 55%, #0a1030 100%); }
.tarot-card.minor.wands { background: radial-gradient(circle at 50% 42%, #c0632f 0%, #1b1d5c 55%, #0a1030 100%); }
.t-reads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 16px; }
.t-read h3 { color: var(--gold2); }
.t-read .kw { color: var(--accent); margin: 0 0 6px; }
.t-answer b { color: var(--gold2); font-size: 18px; }

/* ---------- блог и сонник ---------- */
.article h1 { font-size: clamp(28px, 4vw, 40px); }
.article h2 { margin-top: 28px; color: var(--gold2); font-size: 24px; }
.article p { line-height: 1.7; }
.article a { color: var(--gold2); }
.article-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 24px 0; }
.article-nav a { color: var(--dim); }
.dream-tags { margin: 14px 0; }
.dream-list { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.dream-list li a { display: block; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; }
.dream-list li a:hover { border-color: var(--gold); color: var(--gold2); }
@media (max-width: 760px) { .t-flip { width: 120px; } .t-flip .tarot-card { width: 100%; } }
