/* ============================================================
   Astral Horo – Mobile-first, «мягкое голубое небо»
   Заголовки: Cormorant Garamond · Текст: Nunito Sans
   ============================================================ */

:root {
  /* палитра */
  --sky-50: #F6FAFF;
  --sky-100: #EDF5FE;
  --sky-200: #DEEDFB;
  --sky-300: #C9E0F7;
  --sky-400: #A9CFF0;
  --sky-500: #86B8E6;
  --sky-600: #5F93C7;
  --lav-100: #EFEBFB;
  --lav-300: #CFC4F2;
  --lav-500: #A492DE;
  --blush: #F5CBD8;
  --gold-soft: #E8C87A;
  --ink: #2C3B4E;
  --ink-soft: #6A7C90;
  --ink-faint: #97A7B8;
  --white: #FFFFFF;

  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  --shadow-soft: 0 12px 30px -14px rgba(88, 130, 176, .35);
  --shadow-card: 0 18px 40px -22px rgba(74, 117, 165, .38), 0 2px 6px -2px rgba(74, 117, 165, .10);
  --shadow-float: 0 26px 50px -26px rgba(88, 130, 176, .48);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, .68, .32, 1);
  --ease-soft: cubic-bezier(.4, .01, .2, 1);
  --app-max: 560px;
  --bar-h: 68px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #EDF5FE; }

/* без overflow-x: он ломает sticky и даёт «расслоение» при скролле в Safari */
body { overflow-x: hidden; position: relative; }

body {
  margin: 0;
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--sky-100) 0%, var(--sky-50) 42%, #FBFDFF 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.62;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;  /* отступ под таббар задаёт .screen, иначе двойной зазор */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
code { font-size: .85em; color: var(--sky-600); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { stroke: currentColor; fill: none; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--ink-soft); }
.small { font-size: .8rem; }
.center { text-align: center; }

/* ---------------- атмосфера: медленные блики ---------------- */
.atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(42px); opacity: .55;
  will-change: transform;
}
.blob--1 {
  width: 320px; height: 320px; top: -110px; left: -90px;
  background: radial-gradient(circle at 40% 40%, #CFE6FF, #B9D9F7 60%, transparent 72%);
  animation: drift1 26s var(--ease-soft) infinite alternate;
}
.blob--2 {
  width: 280px; height: 280px; top: 24%; right: -120px;
  background: radial-gradient(circle at 50% 50%, #E3DAFB, #CFC4F2 62%, transparent 74%);
  animation: drift2 32s var(--ease-soft) infinite alternate;
}
.blob--3 {
  width: 300px; height: 300px; bottom: 6%; left: -140px;
  background: radial-gradient(circle at 50% 50%, #FBE0E8, #F5CBD8 64%, transparent 76%);
  opacity: .42;
  animation: drift3 38s var(--ease-soft) infinite alternate;
}
.grain {
  position: absolute; inset: 0; opacity: .35;
  background-image: radial-gradient(rgba(120, 160, 200, .10) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 20%, transparent 78%);
}
@keyframes drift1 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(24px, 30px, 0) scale(1.08); } }
@keyframes drift2 { from { transform: translate3d(0, 0, 0) scale(1.04); } to { transform: translate3d(-26px, -22px, 0) scale(1); } }
@keyframes drift3 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(30px, -26px, 0) scale(1.06); } }

/* ---------------- шапка ---------------- */
.appbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + .55rem) 1.1rem .55rem;
  /* плотный фон без градиента: на iOS полупрозрачность давала «расслоение» и полосы */
  background: #F5FAFF;
  border-bottom: 1px solid rgba(206, 227, 246, .9);
  box-shadow: 0 6px 18px -16px rgba(88, 130, 176, .8);
  transform: translateZ(0);   /* отключаем «дрожание» при скролле на iOS */
  will-change: transform;
  transition: box-shadow .3s var(--ease);
}
.appbar.is-stuck { box-shadow: 0 8px 22px -16px rgba(88, 130, 176, .95); }
.appbar__inner {
  width: 100%; max-width: var(--app-max);
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
}
.appbar__brand { display: flex; align-items: center; gap: .5rem; }
.appbar__name {
  font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; letter-spacing: .04em;
  color: var(--ink);
}
.logo { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; }
.logo img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(140, 180, 220, .38));
  animation: logoFloat 7.5s var(--ease-soft) infinite alternate;
}
@keyframes logoFloat {
  from { transform: translateY(-.8px) rotate(-2.5deg); }
  to { transform: translateY(1.2px) rotate(2.5deg); }
}
.appbar__actions { display: flex; align-items: center; gap: .4rem; }
.appbar__actions .pill { padding: .48rem .85rem; font-size: .82rem; }

.avatar {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--sky-600);
  background: linear-gradient(150deg, #FFFFFF, var(--sky-200));
  box-shadow: var(--shadow-soft); border: 1px solid rgba(255, 255, 255, .9);
}
.avatar--sm { width: 36px; height: 36px; font-size: .95rem; }

/* ---------------- оболочка экрана ---------------- */
.screen {
  position: relative; z-index: 1;
  max-width: var(--app-max); margin: 0 auto;
  padding: calc(57px + env(safe-area-inset-top, 0px) + .2rem) 1.1rem .4rem;
}
.block { margin-top: 1.7rem; }
.block:first-child { margin-top: .2rem; }
.block--sticky {
  position: sticky; top: calc(57px + env(safe-area-inset-top, 0px)); z-index: 20;
  margin: 1.1rem 0 0; padding: .5rem 0 .55rem;
  background: linear-gradient(180deg, rgba(240, 247, 255, .99) 0%, rgba(240, 247, 255, .97) 72%, rgba(240, 247, 255, 0) 100%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* ---------------- типографика ---------------- */
.display {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.15rem, 9.2vw, 2.8rem);
  line-height: 1.06; letter-spacing: .005em;
  margin: 0 0 .6rem; color: var(--ink);
}
.display em { font-style: italic; color: var(--sky-600); }
.h2 {
  font-family: var(--font-display); font-weight: 500; letter-spacing: .01em;
  font-size: clamp(1.5rem, 5.6vw, 1.85rem); line-height: 1.18; margin: 0;
}
.h3 { font-family: var(--font-display); font-size: 1.24rem; font-weight: 600; margin: 0 0 .3rem; line-height: 1.25; }
.kicker {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sky-600); font-weight: 700; margin: 0 0 .45rem;
}
.kicker::before {
  content: ""; width: 16px; height: 1px; border-radius: 1px;
  background: linear-gradient(90deg, var(--sky-400), var(--lav-300));
}
.lead { color: var(--ink-soft); font-size: .95rem; margin: 0 0 1.1rem; max-width: 42ch; }

/* ---------------- кнопки ---------------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .72rem 1.35rem; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  color: var(--sky-600); background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 22px -14px rgba(88, 130, 176, .5), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), background .32s var(--ease), color .32s var(--ease);
}
.pill { white-space: nowrap; }
.pill:active { transform: scale(.975); }
.pill:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 3px; }
.pill--primary {
  color: #FFFFFF;
  background: linear-gradient(135deg, #9CCBF2 0%, #86B8E6 46%, #B3A6E6 100%);
  box-shadow: 0 16px 28px -16px rgba(118, 160, 210, .9), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.pill--primary:active { box-shadow: 0 10px 20px -16px rgba(118, 160, 210, .9); }
.pill--ghost { background: rgba(255, 255, 255, .62); color: var(--sky-600); box-shadow: inset 0 0 0 1px rgba(168, 202, 235, .55); }
.pill--sm { padding: .55rem 1rem; font-size: .84rem; }
.pill--block { width: 100%; }
.pill .i { stroke-width: 1.7; }

.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .34rem .8rem; border-radius: var(--radius-pill);
  font-size: .74rem; font-weight: 600; color: var(--sky-600);
  background: rgba(255, 255, 255, .78); box-shadow: inset 0 0 0 1px rgba(168, 202, 235, .5);
}

/* ---------------- стеклянные карточки ---------------- */
.card {
  position: relative;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.card--soft { background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(237, 246, 255, .8)); }
.card__text { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.card__row { display: flex; align-items: center; gap: .8rem; }

/* ---------------- hero на главной ---------------- */
.hero {
  position: relative;
  padding: 1.45rem 1.1rem 1.35rem; margin-top: .3rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(255, 255, 255, .95), rgba(233, 244, 255, .65) 58%, rgba(255, 255, 255, .35) 100%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.hero__moon {
  position: relative; width: 104px; height: 104px;
  /* снизу запас больше, чем вылет кольца (12px), – иначе орбита уходит под плашку */
  margin: .9rem auto 2.9rem;
  animation: breathe 9s var(--ease-soft) infinite alternate;
}
.hero__moon svg { width: 100%; height: 100%; overflow: visible; }
.hero__orbit {
  position: absolute; inset: -11px; border-radius: 50%;
  border: 1px dashed rgba(150, 190, 230, .6);
  animation: orbit 24s linear infinite;
  will-change: transform;
}
/* две «планеты» на орбите: золотая и голубая – вращаются вместе с кольцом */
.hero__orbit::after,
.hero__orbit::before { content: ""; position: absolute; border-radius: 50%; }
.hero__orbit::after {
  top: -4px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px;
  background: var(--gold-soft); box-shadow: 0 0 12px rgba(232, 200, 122, .95);
  animation: twinkle 4.2s var(--ease-soft) infinite;
}
.hero__orbit::before {
  bottom: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px;
  background: var(--sky-400); box-shadow: 0 0 9px rgba(134, 184, 230, .9);
  animation: twinkle 6.5s var(--ease-soft) infinite reverse;
}
@keyframes twinkle {
  0%, 100% { transform: scale(1); opacity: .95; }
  50% { transform: scale(1.35); opacity: .55; }
}
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes breathe { from { transform: translateY(-2.5px) scale(1); } to { transform: translateY(3px) scale(1.012); } }

.hero__phase {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: center;
  padding: .42rem 1rem; border-radius: var(--radius-pill); font-size: .82rem; color: var(--ink-soft);
  background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(190, 216, 240, .6);
}
.hero__phase b { color: var(--sky-600); font-weight: 700; }
.hero__center { text-align: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.1rem; }
.hero__cta .pill { flex: 1 1 46%; min-width: 0; justify-content: center; }

/* ---------------- мини-показатели ---------------- */
.metrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .8rem;
}
.metric {
  padding: .8rem .9rem; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 10px 22px -18px rgba(88, 130, 176, .6);
}
.metric__label { display: block; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.metric__value { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.2; margin-top: .1rem; }
.metric__note { display: block; font-size: .74rem; color: var(--ink-soft); }

/* ---------------- «о сайте» ---------------- */
.features { display: grid; gap: .6rem; }
.feature {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1rem 1.05rem; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 26px -22px rgba(88, 130, 176, .7), inset 0 0 0 1px rgba(255, 255, 255, .9);
}
.feature__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 14px;
  color: var(--sky-600); background: linear-gradient(150deg, #EAF4FF, #DCEAFB);
}
.feature__icon .i { stroke-width: 1.6; }
.feature h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .1rem; line-height: 1.3; }
.feature p { margin: 0; font-size: .86rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------------- список разделов ---------------- */
.list { display: grid; gap: .55rem; }
.list__item {
  display: flex; align-items: center; gap: .85rem;
  padding: .95rem 1rem; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 10px 24px -20px rgba(88, 130, 176, .7), inset 0 0 0 1px rgba(255, 255, 255, .9);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.list__item:active { transform: scale(.985); }
.list__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0;
  color: var(--sky-600); background: linear-gradient(150deg, #EEF6FF, #DAE9FA);
}
.list__icon svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.list__body { flex: 1; min-width: 0; }
.list__title { display: block; font-weight: 700; font-size: .95rem; }
.list__note { display: block; font-size: .8rem; color: var(--ink-soft); }
.list__chev { color: var(--ink-faint); flex-shrink: 0; }

/* ---------------- лунный диск на страницах ---------------- */
.moon-panel {
  position: relative; padding: 1.5rem 1.1rem 1.3rem; border-radius: var(--radius-xl);
  background: radial-gradient(120% 100% at 70% 0%, rgba(255,255,255,.95), rgba(230, 242, 255, .8) 60%, rgba(255,255,255,.5));
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-float);
  text-align: center;
}
.moon-panel__disk { position: relative; width: 176px; height: 176px; margin: .4rem auto 1rem; animation: breathe 11s var(--ease-soft) infinite alternate; }
.moon-panel__disk::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  border: 1px dashed rgba(150, 190, 230, .5);
  animation: orbit 34s linear infinite;
  pointer-events: none;
}
.moon-panel__disk svg { width: 100%; height: 100%; overflow: visible; }
.moon-svg .halo { fill: rgba(168, 202, 235, .12); stroke: rgba(150, 190, 230, .5); stroke-width: 1; stroke-dasharray: 2 7; }
.moon-svg .craters circle { fill: rgba(120, 160, 200, .14); }
#moonLit { transition: d 1.1s var(--ease); }

/* ---------------- сетка значений ---------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.params { display: grid; gap: .5rem; }
.param {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .8rem .95rem; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9);
}
.param span { font-size: .82rem; color: var(--ink-soft); }
.param b { font-size: .92rem; font-weight: 700; text-align: right; }

/* ---------------- знаки ---------------- */
.filters { display: flex; gap: .4rem; overflow-x: auto; padding: .1rem .1rem .5rem; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: .45rem .95rem; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 0 0 1px rgba(186, 214, 240, .7);
  transition: all .3s var(--ease);
}
.chip.is-active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #9CCBF2, #86B8E6 60%, #B3A6E6);
  box-shadow: 0 12px 22px -14px rgba(118, 160, 210, .9);
}

.signs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; align-items: stretch; }
.sign {
  position: relative; display: flex; flex-direction: column; gap: .18rem;
  padding: 1rem .95rem 1.05rem; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.sign:active { transform: scale(.98); }
.sign::after {
  content: ""; position: absolute; right: -34px; top: -34px; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 166, 230, .28), transparent 70%);
}
.sign__icon { color: var(--sky-500); }
.sign__icon svg { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.sign__name { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; }
.sign__name, .sign__dates, .sign__meta { position: relative; z-index: 1; }
.sign__dates { font-size: .72rem; color: var(--ink-faint); line-height: 1.25; }
.sign__meta { font-size: .7rem; color: var(--sky-600); font-weight: 600; }
.sign[hidden] { display: none; }

/* ---------------- прогноз ---------------- */
.segmented {
  display: flex; gap: .25rem; padding: .25rem; border-radius: var(--radius-pill);
  background: rgba(233, 243, 253, .9);
  box-shadow: inset 0 0 0 1px rgba(190, 216, 240, .6);
  overflow-x: auto; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.seg {
  flex: 1 0 auto; padding: .5rem .85rem; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  font-size: .8rem; font-weight: 700; color: var(--ink-soft); background: transparent;
  transition: all .32s var(--ease); white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
}
.seg.is-active {
  color: var(--sky-600); background: #FFFFFF;
  box-shadow: 0 8px 18px -12px rgba(88, 130, 176, .8);
}
.seg--cat { font-weight: 600; font-size: .78rem; }
.seg .i { margin-left: .25rem; opacity: .8; vertical-align: -1px; }
.seg.is-locked { color: var(--lav-500); }

.forecast__label { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sky-600); font-weight: 700; margin-bottom: .5rem; }
.forecast__text { margin: 0; font-size: .95rem; line-height: 1.72; color: #35465C; }
.forecast__text + .forecast__text { margin-top: .7rem; }
.forecast__meta { margin: .9rem 0 0; font-size: .72rem; color: var(--ink-faint); }
.forecast__skeleton { margin: 0; color: var(--ink-faint); font-size: .9rem; }
.forecast.is-loading { opacity: .55; }
.locked {
  display: grid; gap: .7rem; justify-items: stretch;
  padding: 1rem; border-radius: var(--radius-md);
  background: linear-gradient(150deg, rgba(239, 235, 251, .9), rgba(255, 255, 255, .9));
  border: 1px dashed rgba(179, 166, 230, .8);
}
.locked p { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.locked b { color: var(--ink); }

/* ---------------- календарь ---------------- */
.strip {
  display: flex; gap: .45rem; overflow-x: auto; padding: .2rem .1rem .7rem;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 62px; scroll-snap-align: start;
  display: grid; place-items: center; gap: .1rem; padding: .6rem .25rem;
  border-radius: var(--radius-md); background: rgba(255, 255, 255, .86);
  box-shadow: inset 0 0 0 1px rgba(186, 214, 240, .55), 0 8px 18px -16px rgba(88, 130, 176, .7);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.day__wd { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.day__num { font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; line-height: 1; }
.day__glyph { font-size: .92rem; }
.day__pct { font-size: .64rem; color: var(--sky-600); font-weight: 600; }
.day.is-today {
  background: linear-gradient(160deg, #DCEBFB, #FFFFFF);
  box-shadow: 0 12px 22px -16px rgba(88, 130, 176, .85), inset 0 0 0 1.5px rgba(134, 184, 230, .9);
}
.day.is-full { box-shadow: inset 0 0 0 1.5px rgba(232, 200, 122, .85); }
.day.is-new { box-shadow: inset 0 0 0 1.5px rgba(179, 166, 230, .8); }
.legend { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .74rem; color: var(--ink-soft); margin-top: .2rem; }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--new { background: var(--lav-500); }
.dot--full { background: var(--gold-soft); }
.dot--today { background: var(--sky-500); }

/* справка лунных дней – аккордеон */
.acc { display: grid; gap: .5rem; }
.acc__item {
  border-radius: var(--radius-md); background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 10px 22px -20px rgba(88, 130, 176, .8);
  overflow: hidden;
}
.acc__head {
  display: flex; align-items: center; gap: .7rem; width: 100%; padding: .85rem .95rem;
  background: none; border: 0; cursor: pointer; text-align: left; color: inherit;
}
.acc__num { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--sky-500); width: 1.7rem; flex-shrink: 0; }
.acc__title { font-size: .9rem; font-weight: 700; }
.acc__energy { margin-left: auto; display: inline-flex; gap: 2.5px; }
.acc__energy i { width: 4px; height: 12px; border-radius: 2px; background: rgba(150, 180, 210, .28); }
.acc__energy i.on { background: linear-gradient(180deg, var(--sky-400), var(--lav-500)); }
.acc__body { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.acc__item.is-open .acc__body { max-height: 640px; }
.acc__inner { padding: 0 .95rem 1rem 3.35rem; }
.acc__inner p { margin: 0 0 .7rem; font-size: .87rem; color: var(--ink-soft); }
.acc__cols { display: grid; gap: .5rem; }
.acc__cols span { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.acc__cols p { margin: .15rem 0 0; font-size: .84rem; color: #35465C; }

/* ---------------- тарифы ---------------- */
.plans { display: grid; gap: .7rem; }
.plan {
  padding: 1.2rem 1.1rem; border-radius: var(--radius-lg);
  background: #FFFFFF; box-shadow: var(--shadow-card);
}
.plan--featured {
  /* плотный фон без просвечивания бликов – раньше давало «слои» */
  background: #EEF6FF;
  box-shadow: 0 8px 20px -18px rgba(74, 117, 165, .45), inset 0 0 0 1px rgba(134, 184, 230, .5);
}
.plan__badge {
  display: inline-block; margin-bottom: .5rem; padding: .22rem .7rem; border-radius: var(--radius-pill);
  font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #6E5DAF; background: rgba(207, 196, 242, .5);
}
.plan__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; line-height: 1.25; margin: 0 0 .45rem; display: block; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .35rem; margin: .2rem 0 1rem; }
.plan__price b { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; line-height: 1; }
.plan__price span { font-size: .8rem; color: var(--ink-soft); }
.plan__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .45rem; }
.plan__list li { display: flex; gap: .5rem; font-size: .86rem; color: var(--ink-soft); }
.plan__list .i { flex-shrink: 0; margin-top: .18rem; color: var(--sky-500); }

/* ---------------- формы ---------------- */
.form { display: grid; gap: .65rem; }
.form label { display: grid; gap: .3rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.form input, .form select, .form textarea {
  width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
  padding: .8rem .95rem; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .9); border: 1px solid rgba(186, 214, 240, .8);
  color: var(--ink); font-family: var(--font-body); font-size: 1rem;
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--sky-400); box-shadow: 0 0 0 4px rgba(134, 184, 230, .18);
}
.form textarea { resize: vertical; min-height: 92px; line-height: 1.55; }
.form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
}
.form__row > * { min-width: 0; }

/* iOS: у нативных input[type=date]/[time] своя минимальная ширина – снимаем её */
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"] {
  -webkit-appearance: none; appearance: none;
  min-width: 0; width: 100%;
  text-align: left;
  font-size: .95rem;
}
input[type="date"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit { font-size: 1rem; padding: 0; }
input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value { text-align: left; }
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator { margin-left: auto; opacity: .55; }
.form__hint { font-size: .76rem; color: var(--ink-faint); margin: 0; text-transform: none; letter-spacing: 0; }
.form__foot { margin: .2rem 0 0; text-align: center; font-size: .84rem; color: var(--ink-soft); }
.form__foot a { color: var(--sky-600); font-weight: 700; }

.switcher { display: flex; padding: .25rem; border-radius: var(--radius-pill); background: rgba(233, 243, 253, .9); margin-bottom: 1rem; }
.switcher a {
  flex: 1; text-align: center; padding: .55rem .8rem; border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 700; color: var(--ink-soft); transition: all .3s var(--ease);
}
.switcher a.is-active { color: var(--sky-600); background: #FFFFFF; box-shadow: 0 8px 18px -12px rgba(88, 130, 176, .8); }

.alert { padding: .75rem .95rem; border-radius: var(--radius-sm); font-size: .85rem; margin: 0 0 .8rem; }
.alert { background: rgba(245, 203, 216, .45); color: #8E4E63; }
/* короткая плашка внутри блока: не вылезает за карточку и не лезет под неё */
.alert--inline {
  margin: .55rem 0 0; padding: .6rem .8rem;
  font-size: .8rem; line-height: 1.35; font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: normal; overflow-wrap: anywhere;
}
.alert--ok { background: rgba(190, 226, 210, .5); color: #3C7259; }

/* ---------------- кабинет ---------------- */
.profile-head { display: flex; align-items: center; gap: .9rem; padding: 1.1rem; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .82); box-shadow: var(--shadow-card); }
.profile-head .avatar { width: 54px; height: 54px; font-size: 1.35rem; }
.profile-head h1 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin: 0; line-height: 1.15; }
.profile-head p { margin: .1rem 0 0; font-size: .8rem; color: var(--ink-soft); }

.chips-scroll { display: flex; gap: .4rem; overflow-x: auto; padding: .2rem 0 .6rem; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll a {
  flex: 0 0 auto; padding: .45rem .9rem; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 700; color: var(--ink-soft);
  background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(186, 214, 240, .7);
}
.chips-scroll a.is-active { color: #FFFFFF; background: linear-gradient(135deg, #9CCBF2, #86B8E6 60%, #B3A6E6); }

.chart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.chart-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 74px;
  gap: .45rem; align-items: center;
  padding: .5rem 0; border-bottom: 1px solid rgba(190, 216, 240, .45); font-size: .88rem;
}
.chart-list li:last-child { border-bottom: 0; }
.chart-list b { font-weight: 700; }
.chart-list em {
  font-style: normal; color: var(--ink-soft); font-weight: 600; font-size: .84rem;
  text-align: right; font-variant-numeric: tabular-nums;
}
.chart-list__sign { color: var(--sky-600); font-weight: 700; font-size: .86rem; text-align: left; }
.chart-list small { display: none; }

.elements { display: grid; gap: .45rem; margin-top: .8rem; }
.element { display: grid; grid-template-columns: 74px 1fr 26px; align-items: center; gap: .6rem; font-size: .8rem; color: var(--ink-soft); }
.element__bar { height: 6px; border-radius: 999px; background: rgba(190, 216, 240, .45); overflow: hidden; }
.element__bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sky-400), var(--lav-500)); }
.element b { color: var(--ink); font-size: .78rem; }

.journal__list { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .5rem; }
.journal__list li { padding: .85rem .95rem; border-radius: var(--radius-md); background: rgba(255, 255, 255, .82); box-shadow: var(--shadow-soft); }
.journal__meta { display: flex; justify-content: space-between; font-size: .76rem; color: var(--sky-600); font-weight: 700; margin-bottom: .3rem; }
.journal__list p { margin: 0; font-size: .86rem; color: var(--ink-soft); white-space: pre-wrap; }

.fav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.fav {
  display: grid; place-items: center; gap: .25rem; padding: .8rem .4rem;
  border-radius: var(--radius-md); background: rgba(255, 255, 255, .82); box-shadow: var(--shadow-soft);
  font-size: .74rem; font-weight: 700; color: var(--ink-soft);
}
.fav svg { fill: none; stroke: var(--sky-500); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- прочее ---------------- */
.accordion { border-radius: var(--radius-md); background: rgba(255, 255, 255, .8); box-shadow: var(--shadow-soft); overflow: hidden; }
.accordion + .accordion { margin-top: .45rem; }
.accordion summary { padding: .85rem 1rem; cursor: pointer; font-size: .88rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--sky-500); font-weight: 400; transition: transform .3s var(--ease); }
.accordion[open] summary::after { content: "–"; }
.accordion p { margin: 0; padding: 0 1rem 1rem; font-size: .85rem; color: var(--ink-soft); }

.table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.table th, .table td { padding: .6rem .5rem; text-align: left; border-bottom: 1px solid rgba(190, 216, 240, .45); }
.table th { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.table select { padding: .3rem .4rem; border-radius: 10px; border: 1px solid rgba(186, 214, 240, .8); background: #fff; font-size: .78rem; color: var(--ink); }
.tablewrap { overflow-x: auto; }

.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.stat-cards__item { padding: .8rem .9rem; border-radius: var(--radius-md); background: rgba(255, 255, 255, .82); box-shadow: var(--shadow-soft); }
.stat-cards__item span { display: block; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.stat-cards__item b { font-family: var(--font-display); font-size: 1.25rem; }

.cta-band {
  padding: 1.3rem 1.1rem; border-radius: var(--radius-xl);
  background: linear-gradient(150deg, #E9F3FF, #F7F2FD 70%, #FFF6F8);
  box-shadow: var(--shadow-float);
}
.cta-band h2 { margin-bottom: .4rem; }
.cta-band p { margin: 0 0 1rem; font-size: .88rem; color: var(--ink-soft); }

.empty { padding: 1.2rem; text-align: center; color: var(--ink-faint); font-size: .86rem; }

/* ---------------- нижняя навигация ---------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: var(--app-max); margin: 0 auto;
  padding: .45rem .4rem calc(.45rem + env(safe-area-inset-bottom, 0px));
  background: #FCFDFF;
  box-shadow: 0 -12px 30px -22px rgba(88, 130, 176, .7), 0 -1px 0 rgba(210, 230, 248, .9);
  border-top: 1px solid rgba(210, 230, 248, .9);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 30px -22px rgba(88, 130, 176, .7);
}
.tabbar__item {
  display: grid; place-items: center; gap: .16rem; padding: .35rem .1rem;
  font-size: .62rem; font-weight: 700; letter-spacing: .02em;
  color: var(--ink-faint);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.tabbar__item .i { stroke-width: 1.6; transition: transform .35s var(--ease); }
.tabbar__item.is-active { color: var(--sky-600); }
.tabbar__item.is-active .i { transform: translateY(-2px) scale(1.06); }
.tabbar__item:active { transform: scale(.94); }

/* ---------------- подвал ---------------- */
.sitefoot {
  position: relative; z-index: 1;
  max-width: var(--app-max); margin: .5rem auto 0;
  /* запас под фиксированный таббар: пустого места под футером не остаётся */
  padding: .6rem 1.1rem calc(var(--bar-h) + .35rem);
  border-top: 1px solid rgba(200, 224, 245, .8);
  text-align: center;
}
.sitefoot__brand { font-family: var(--font-display); font-size: .92rem; font-weight: 600; letter-spacing: .06em; margin: 0 0 .1rem; }
.sitefoot__text { margin: 0 0 .25rem; font-size: .72rem; line-height: 1.4; color: var(--ink-soft); }
.sitefoot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem; margin-bottom: .8rem; }
.sitefoot__nav a { font-size: .8rem; font-weight: 700; color: var(--sky-600); }
.sitefoot__legal { font-size: .64rem; line-height: 1.4; color: var(--ink-faint); margin: 0; }

/* ---------------- анимации появления ---------------- */
.rise { animation: rise .72s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rise:nth-child(2) { animation-delay: .06s; }
.rise:nth-child(3) { animation-delay: .12s; }
.rise:nth-child(4) { animation-delay: .18s; }
.rise:nth-child(5) { animation-delay: .24s; }
.rise:nth-child(6) { animation-delay: .3s; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-h) + 22px); transform: translate(-50%, 16px);
  z-index: 120; padding: .7rem 1.1rem; border-radius: var(--radius-pill);
  font-size: .82rem; color: var(--sky-600); background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 34px -18px rgba(88, 130, 176, .8);
  opacity: 0; pointer-events: none; max-width: calc(100% - 2rem); text-align: center;
  transition: opacity .34s var(--ease), transform .34s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- спрайт иконок: перо, а не заливка ---------------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i, .i { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- дополнения страниц ---------------- */
.strip {
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}
.empty { padding: 1.4rem 1rem; text-align: center; color: var(--ink-faint); font-size: .86rem; border-radius: var(--radius-md); background: rgba(255, 255, 255, .6); }
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.sign:active { transform: scale(.97); }
.sign, .list__item { will-change: transform; }
#paywallBlock a { color: #8E4E63; }

/* лёгкая волна на диске Луны при обновлении данных */
@keyframes moonGlow { 0%, 100% { opacity: .5; } 50% { opacity: .78; } }
.moon-svg .halo { animation: moonGlow 7.5s var(--ease-soft) infinite; }

/* ---------------- заголовки блоков и закрытые разделы ---------------- */
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
.block-head .h2 { margin-bottom: 0; }
.block-head__note {
  flex-shrink: 0; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--lav-500); padding: .2rem .55rem; border-radius: var(--radius-pill);
  background: rgba(207, 196, 242, .28);
}
.block-head__note--premium {
  color: #6C57A8; background: linear-gradient(135deg, rgba(207, 196, 242, .55), rgba(164, 146, 222, .35));
  box-shadow: inset 0 0 0 1px rgba(164, 146, 222, .45);
}
.list__lock { color: var(--ink-faint); opacity: .75; flex-shrink: 0; }
.list__item.is-static { cursor: default; }
.list__item.is-static:active { transform: none; }
.list__item.is-locked { cursor: default; opacity: .82; }
.list__item.is-locked:active { transform: none; }
.list__item.is-muted { cursor: default; opacity: .72; }
.list__tag {
  flex-shrink: 0; font-size: .6rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: var(--radius-pill);
  color: var(--ink-faint); background: rgba(233, 243, 253, .9);
  box-shadow: inset 0 0 0 1px rgba(186, 214, 240, .55);
}
.list__tag--premium { color: #6E5DAF; background: rgba(207, 196, 242, .34); box-shadow: inset 0 0 0 1px rgba(179, 166, 230, .45); }
.list__item:has(.list__lock) .list__title { color: var(--ink-soft); }
.locknote {
  display: flex; align-items: flex-start; gap: .55rem; margin-top: .6rem;
  padding: .8rem .95rem; border-radius: var(--radius-md);
  background: rgba(233, 243, 253, .7); box-shadow: inset 0 0 0 1px rgba(186, 214, 240, .55);
  color: var(--sky-600);
}
.locknote .i { flex-shrink: 0; margin-top: .12rem; }
.locknote p { margin: 0; font-size: .8rem; color: var(--ink-soft); line-height: 1.45; }

/* ---------------- планшет / десктоп: аккуратно расширяем ---------------- */
@media (max-width: 400px) {
  .appbar__name { font-size: 1.1rem; letter-spacing: .02em; }
  .appbar__actions .pill { padding: .44rem .7rem; font-size: .78rem; }
}
@media (max-width: 340px) {
  .appbar__actions .pill--primary { display: none; }
}

@media (max-width: 359px) {
  .hero__moon { width: 92px; height: 92px; margin-bottom: 2.2rem; }
}

@media (min-width: 620px) {
  :root { --app-max: 700px; }
  body { font-size: 16px; }
  .screen { padding-left: 1.4rem; padding-right: 1.4rem; }
  .signs { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .plans:has(> .plan:only-child) { grid-template-columns: minmax(0, 380px); }
  .metrics { grid-template-columns: repeat(4, 1fr); }
  .hero__moon { width: 124px; height: 124px; }
  .tabbar { border-radius: 24px 24px 0 0; }
}
@media (min-width: 900px) {
  :root { --app-max: 860px; }
  .toast { bottom: calc(var(--bar-h) + 22px); }
  .signs { grid-template-columns: repeat(4, 1fr); }
  .tabbar { max-width: 520px; left: 50%; right: auto; transform: translateX(-50%); border-radius: 24px 24px 0 0; }
  .moon-panel { display: grid; grid-template-columns: 200px 1fr; align-items: center; text-align: left; gap: 1.5rem; }
  .moon-panel__disk { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  /* исключение: лунная орбита и свечение остаются живыми даже при «уменьшении движения»,
     потому что это главный акцент главной страницы */
  .hero__orbit, .moon-panel__disk::after {
    animation: orbit 24s linear infinite !important;
  }
  .moon-panel__disk::after { animation-duration: 34s !important; }
  .moon-svg .halo { animation: moonGlow 7.5s var(--ease-soft) infinite !important; }
}

/* ---------------- профиль: плотная сетка метрик ---------------- */
.metric > * + * { margin-top: .15rem; }
.metric__note { display: block; font-size: .72rem; color: var(--ink-faint); line-height: 1.35; }
.metric__value { font-variant-numeric: tabular-nums; }
.params { gap: .55rem; }
.profile-head { gap: .75rem; flex-wrap: nowrap; }
.profile-head > div { flex: 1 1 auto; min-width: 0; }
.profile-head h1 { overflow-wrap: anywhere; }
.profile-head p { overflow-wrap: anywhere; font-size: .76rem; }
.profile-head .pill { flex-shrink: 0; }
.chips-scroll { gap: .35rem; }
/* планы: чуть больше воздуха между карточками */
.plans { gap: .9rem; }
.plan__list li + li { margin-top: .1rem; }

/* навигация профиля: переносится строками, ничего не обрезается */
.chips-wrap { display: flex; flex-wrap: wrap; gap: .35rem; margin: .75rem 0 .2rem; }
.chips-wrap a {
  flex: 0 0 auto; padding: .42rem .85rem; border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 700; color: var(--ink-soft);
  background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px rgba(214, 232, 248, .9);
}
.chips-wrap a.is-active { color: #fff; background: linear-gradient(135deg, #8FBEEA, #A9A0E4); box-shadow: none; }

@media (max-width: 359px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ---------------- карта рождения: ровные карточки и плотность ---------------- */
.chart-head { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-bottom: .75rem; }
.chart-head__item {
  display: grid; gap: .1rem; padding: .6rem .75rem; border-radius: var(--radius-sm);
  background: rgba(238, 246, 255, .85); box-shadow: inset 0 0 0 1px rgba(214, 232, 248, .9);
}
.chart-head__label { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.chart-head__value { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.2; }
.chart-list { gap: 0; }
.elements { gap: .3rem; margin-top: .7rem; }
.element { grid-template-columns: 66px 1fr 22px; gap: .5rem; }
/* меньше «воздуха» между блоками */
.block { margin-top: 1.35rem; }
.screen { padding-bottom: .4rem; }
.journal__list { margin-top: .55rem; }
.empty { margin: .5rem 0 0; }

/* ---------------- аватар ---------------- */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar--btn { position: relative; padding: 0; border: 0; cursor: pointer; }
.avatar--btn .avatar__edit {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: .5rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700;
  color: #fff; background: rgba(70, 118, 168, .78); text-align: center; padding: .12rem 0;
  opacity: 0; transition: opacity .25s var(--ease);
}
.avatar--btn:hover .avatar__edit, .avatar--btn:focus-visible .avatar__edit { opacity: 1; }
.avatar--btn::after { content: "+"; position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px;
  border-radius: 50%; background: linear-gradient(135deg, #8FBEEA, #A9A0E4); color: #fff;
  font-size: .72rem; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 3px 8px -3px rgba(88, 130, 176, .8); }

.avatar-picker { display: flex; gap: .9rem; align-items: center; }
.avatar-picker__preview { width: 76px; height: 76px; border-radius: 24px; flex-shrink: 0;
  object-fit: cover; background: #EAF2FC; padding: 6px; box-shadow: inset 0 0 0 1px rgba(214, 232, 248, .9); }
.avatar-picker__body { min-width: 0; }
.avatar-upload { display: flex; flex-wrap: nowrap; align-items: center; gap: .4rem; }
.avatar-upload label.pill { cursor: pointer; padding: .5rem .8rem; font-size: .8rem; flex-shrink: 0; }
.avatar-upload button.pill { padding: .5rem .8rem; font-size: .8rem; flex-shrink: 0; }
.avatar-picker { align-items: flex-start; }
.avatar-picker__body { flex: 1; min-width: 0; }
.avatar-upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------------- друзья ---------------- */
.friend-search { display: flex; gap: .45rem; }
.friend-search input {
  flex: 1; min-width: 0; padding: .72rem .9rem; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(186, 214, 240, .8);
  font-family: var(--font-body); font-size: .92rem; color: var(--ink);
}
.friend-search input:focus { outline: none; border-color: var(--sky-400); box-shadow: 0 0 0 4px rgba(134, 184, 230, .18); }

.friend-block { margin-top: .9rem; }
.friend-block__title {
  display: flex; align-items: center; gap: .4rem; margin: 0 0 .45rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint);
}
.friend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.friend {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .7rem; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .86); box-shadow: var(--shadow-soft);
}
.friend__avatar { width: 40px; height: 40px; border-radius: 14px; flex-shrink: 0; object-fit: cover;
  background: #EAF2FC; padding: 4px; }
.friend__body { min-width: 0; flex: 1; }
.friend__body b { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend__body span { display: block; font-size: .72rem; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend__actions { display: flex; gap: .3rem; flex-shrink: 0; }

/* ---------------- просмотр аватара на весь экран ---------------- */
.avatar-zoom { padding: 0; border: 0; background: none; cursor: zoom-in; flex-shrink: 0; }
.avatar-zoom .avatar-picker__preview { display: block; }
.avatar--btn { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: 1.2rem; background: rgba(28, 44, 62, .82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fadeIn .18s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 560px); max-height: 82vh; width: auto; height: auto;
  border-radius: 22px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6); background: #fff;
}
.lightbox__close {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + .8rem); right: .9rem;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: #fff; background: rgba(255, 255, 255, .18);
}
/* «+» больше не нужен: кнопка смены убрана */
.avatar--btn::after { content: none; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.friend__avatar--zoom { cursor: zoom-in; }
.friend-search { margin-top: .5rem; }


/* админка: строки-карточки на телефоне вместо сжатой таблицы */
@media (max-width: 640px) {
  .tablewrap { overflow-x: visible; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr {
    padding: .7rem .8rem; margin-bottom: .55rem; border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-soft);
  }
  .table td { padding: .1rem 0; border: 0; }
  .table td::before {
    content: attr(data-label); display: inline-block; min-width: 68px;
    font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink-faint); margin-right: .4rem;
  }
  .table td[data-label="E-mail"] { word-break: break-word; }
  .tag-cell { min-width: 0; }
  .tag-check { font-size: .7rem; }
}

/* ---------------- отметки в админке ---------------- */
.tag-cell { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag-chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .4rem .8rem;
  border: 0; cursor: pointer; border-radius: 999px;
  font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .01em;
  color: #5C7FA6;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(196, 219, 241, .95);
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.tag-chip:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(160, 198, 232, 1), 0 6px 14px -12px rgba(88, 130, 176, .9); }
.tag-chip:active { transform: translateY(0); }
/* включённая отметка – спокойный градиент, без галочки */
.tag-chip.is-on {
  color: #fff;
  background: linear-gradient(135deg, #9CCBF2 0%, #86B8E6 46%, #B3A6E6 100%);
  box-shadow: 0 8px 18px -14px rgba(88, 130, 176, 1), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.tag-chip.is-on:hover { box-shadow: 0 10px 22px -14px rgba(88, 130, 176, 1); }
.tag-chip__mark { display: none; }

/* шапка профиля: одна карточка – аватар + имя + «Выйти», ниже теги, ниже почта */
.profile-card {
  position: relative;
  display: grid; gap: .45rem;
  padding: 1.1rem; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .82); box-shadow: var(--shadow-card);
}
.profile-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start; column-gap: .75rem;
  padding: 0; background: none; box-shadow: none; border-radius: 0;
}
.profile-head .avatar, .profile-head .avatar--btn {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%;
}
.profile-head .avatar img { border-radius: 50%; }
.profile-head__main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .26rem; }
.profile-head__main h1 { margin: 0; font-size: 1.7rem; line-height: 1.1; padding-right: 4.4rem; }
.profile-head__logout { margin: 0; position: absolute; top: 1.1rem; right: 1.1rem; }
.profile-head__sign { margin: 0; font-size: .78rem; color: var(--muted); }

/* отметки: тот же градиент, что у кнопки «Принять»; ширина строго по тексту */
.profile-tags {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;
  gap: .3rem; margin: .1rem 0 0;
}
.profile-tag {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; width: max-content; max-width: 100%;
  padding: .16rem .48rem; border-radius: 999px;
  font-family: var(--font-body); font-size: .64rem; font-weight: 700;
  letter-spacing: .02em; line-height: 1.4;
  color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, #9CCBF2 0%, #86B8E6 46%, #B3A6E6 100%);
  box-shadow: 0 8px 16px -14px rgba(118, 160, 210, .9), inset 0 1px 0 rgba(255, 255, 255, .5);
}
@media (max-width: 359px) {
  .profile-head .avatar, .profile-head .avatar--btn { width: 48px; height: 48px; }
  .profile-head__main h1 { font-size: 1.5rem; }
  .profile-tag { font-size: .58rem; padding: .14rem .4rem; }
  .profile-head__main { gap: .2rem; }
}

/* ---------------- колокольчик в шапке ---------------- */
.bell {
  position: relative; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--sky-600); background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(206, 227, 246, .95);
  box-shadow: 0 6px 16px -14px rgba(88, 130, 176, .9);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.bell:active { transform: scale(.94); }
.bell .i { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bell.has-unread { color: #fff; background: linear-gradient(150deg, #9BB6E8, #7C8FE0); border-color: transparent; }
.bell__badge {
  position: absolute; top: -3px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 999px;
  font-size: .62rem; font-weight: 700; line-height: 1; color: #fff;
  background: linear-gradient(150deg, #F0819B, #E2678A);
  box-shadow: 0 0 0 2px #F5FAFF;
}
.bell__badge[hidden] { display: none; }

/* ---------------- уведомления ---------------- */
.notif-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.notif-head__clear { margin-top: .2rem; }

.notif-list { display: grid; gap: .5rem; }
.notif {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: .65rem;
  padding: .7rem .8rem; border-radius: 18px;
  background: rgba(255, 255, 255, .9); border: 1px solid rgba(206, 227, 246, .9);
  box-shadow: 0 10px 22px -22px rgba(88, 130, 176, .95);
  color: inherit; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.notif:active { transform: scale(.99); }
.notif.is-new { border-color: rgba(150, 178, 226, .95); background: linear-gradient(180deg, #FFFFFF, #F2F7FF); }
.notif__avatar {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  background: #EAF2FC; box-shadow: 0 6px 14px -14px rgba(88, 130, 176, .9);
}
.notif__icon {
  flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px;
  color: var(--sky-600); background: var(--sky-100, #EAF2FC);
}
.notif__icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notif__icon--friend { color: #5E7FCB; background: #E9F0FD; }
.notif__icon--admin { color: #8A6FC0; background: #F0EAFA; }
.notif__text { flex: 1 1 11rem; display: grid; gap: .12rem; min-width: 0; }
.notif__text b { font-size: .92rem; color: var(--ink); }
.notif__body { font-size: .84rem; color: var(--muted); word-break: break-word; }
.notif__time { font-size: .72rem; color: var(--muted); opacity: .8; }
.notif__dot {
  margin-left: auto; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(150deg, #F0819B, #E2678A); margin-top: .35rem;
}

/* ---------------- рассылка в админке ---------------- */
.admin-form { display: grid; gap: .6rem; padding: .9rem; }
.admin-form .field { display: grid; gap: .25rem; font-size: .8rem; color: var(--muted); }
.admin-form input, .admin-form textarea {
  font: inherit; font-size: .9rem; color: var(--ink); padding: .5rem .65rem;
  border-radius: 12px; border: 1px solid rgba(206, 227, 246, 1); background: #fff;
}
.admin-form textarea { resize: vertical; }
.admin-note { font-size: .84rem; color: var(--sky-600); margin: 0 0 .55rem; }
.admin-note--bad { color: #C4577A; }
.admin-sent { list-style: none; display: grid; gap: .35rem; margin: .4rem 0 0; padding: 0; }
.admin-sent li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem;
  font-size: .84rem; padding: .45rem .6rem; border-radius: 12px; background: rgba(255,255,255,.75); }
.empty-state { display: grid; gap: .2rem; padding: 1.1rem; text-align: center; }
.empty-state__title { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin: 0; }

/* действия в уведомлениях */
.notif__actions {
  flex-basis: 100%; display: flex; gap: .4rem; margin-top: .15rem; padding-left: 2.6rem;
}
.notif__actions .pill { flex: 1 1 0; min-width: 0; text-align: center; justify-content: center; }
.notif__actions .pill--sm { padding: .4rem .7rem; font-size: .78rem; }
.notif.is-gone { opacity: 0; transform: translateY(-4px); transition: opacity .18s var(--ease), transform .18s var(--ease); }
.notif__actions a { text-decoration: none; }

/* системные уведомления – не кликабельные, курсор обычный */
.notif__actions .pill { cursor: pointer; }

@media (max-width: 359px) {
  .notif__actions { padding-left: 0; }
}

/* «убрать» для служебных карточек */
.notif__actions .pill--tiny { flex: 0 0 auto; padding: .3rem .7rem; font-size: .74rem; }
.notif__actions--right { justify-content: flex-end; }

/* [hidden] должен побеждать display:grid у пустого состояния */
.empty-state[hidden], .notif-list[hidden] { display: none !important; }

/* строка друга: на узких экранах кнопки уходят под текст, ничего не вылезает */
.friend { flex-wrap: wrap; }
.friend__body { flex: 1 1 8rem; }
.friend__actions { flex: 0 0 auto; margin-left: auto; }
.friend__actions .pill { padding: .38rem .8rem; font-size: .78rem; white-space: nowrap; }
@media (max-width: 380px) {
  .friend__actions { flex: 1 1 100%; margin-left: 0; }
  .friend__actions .pill, .friend__actions form { flex: 1 1 0; }
  .friend__actions form { display: flex; }
  .friend__actions .pill { width: 100%; text-align: center; justify-content: center; }
}

/* подвал компактнее: меньше воздуха, таббар не перекрывает текст */
.sitefoot { margin-top: .35rem; padding-top: .55rem; }
.sitefoot__brand { font-size: .86rem; }
.sitefoot__legal { font-size: .62rem; }

/* последний блок страницы не оставляет «хвост» пустоты перед футером */
.screen > .rise:last-child, .screen > section:last-child { margin-bottom: 0; }
.sitefoot { margin-top: .35rem; }

/* ---------------- галерея пресетов аватара ---------------- */
.avatar-gallery { margin-top: .9rem; }
.avatar-gallery__toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .7rem;
  padding: .6rem .8rem; border-radius: 16px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(196, 219, 241, .95);
  box-shadow: 0 10px 22px -22px rgba(88, 130, 176, .95);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.avatar-gallery__toggle:hover { border-color: rgba(160, 198, 232, 1); }
.avatar-gallery__toggle:active { transform: scale(.995); }
.avatar-gallery__toggle.is-open { border-color: rgba(150, 185, 230, 1); box-shadow: 0 12px 26px -22px rgba(88, 130, 176, 1); }
.avatar-gallery__left { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.avatar-gallery__left b { display: block; font-size: .88rem; color: var(--ink); }
.avatar-gallery__note { display: block; font-size: .72rem; color: var(--muted); }
.avatar-gallery__preview { display: flex; }
.avatar-gallery__preview img {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 4px 10px -8px rgba(88, 130, 176, 1);
  margin-left: -10px;
}
.avatar-gallery__preview img:first-child { margin-left: 0; }
.avatar-gallery__chev {
  flex-shrink: 0; fill: none; stroke: var(--sky-600); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s var(--ease);
}
.avatar-gallery__toggle.is-open .avatar-gallery__chev { transform: rotate(180deg); }

.avatar-presets { margin-top: .7rem; }
.avatar-presets[hidden] { display: none !important; }
.avatar-presets__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem;
}
.avatar-preset {
  display: grid; justify-items: center; gap: .32rem; min-width: 0;
  padding: .4rem .3rem .45rem; border-radius: 18px; cursor: pointer;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(206, 227, 246, .95);
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.avatar-preset img {
  width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover;
  border-radius: 14px; display: block;
}
.avatar-preset span {
  font-size: .68rem; font-weight: 700; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.avatar-preset:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -18px rgba(88, 130, 176, 1); }
.avatar-preset.is-active {
  border-color: transparent; padding: .4rem .3rem .45rem;
  background: linear-gradient(135deg, #9CCBF2 0%, #86B8E6 46%, #B3A6E6 100%);
  box-shadow: 0 14px 26px -18px rgba(118, 160, 210, 1);
}
.avatar-preset.is-active span { color: #fff; }

@media (min-width: 420px) {
  .avatar-presets__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------------- лента ---------------- */
.feed-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.feed { display: grid; gap: .8rem; margin-top: 1rem; }

.post {
  position: relative; display: grid; gap: .55rem;
  padding: .95rem 1rem 1rem; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-card);
  border: 1px solid rgba(206, 227, 246, .8);
}
.post--night {
  background: linear-gradient(160deg, #2E3A63, #4A4A80 60%, #66548F);
  border-color: rgba(255, 255, 255, .16);
}
.post--warm { background: linear-gradient(160deg, #FFF3EC, #FDE8F0); }
.post--dream { background: linear-gradient(160deg, #F3EEFF, #EDF4FF); }
.post--cosmos { background: linear-gradient(160deg, #EAF2FF, #E4E9FB 55%, #F0E8FF); }

.post__head { display: flex; align-items: flex-start; gap: .55rem; flex-wrap: nowrap; }
.post__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.post__meta { display: grid; gap: .1rem; min-width: 0; flex: 1 1 auto; }
/* имя и теги – одна строка, теги сразу после имени, дата ниже */
.post__who {
  display: flex; align-items: center; flex-wrap: wrap; gap: .3rem;
  min-width: 0; font-size: .84rem;
}
.post__who b { font-size: .84rem; color: var(--ink); line-height: 1.3; }
.post__when { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.post__tags { display: flex; gap: .25rem; flex-wrap: wrap; flex: 1 1 auto; }

.post__title {
  font-family: var(--font-display); font-size: 1.28rem; line-height: 1.2;
  color: var(--ink); margin: .1rem 0 0;
}
.post__body {
  font-size: .92rem; line-height: 1.55; color: var(--ink-soft);
  word-break: break-word;
}
.post__line { display: block; }
.post__line + .post__line { margin-top: .45rem; }
.post__body strong { color: var(--ink); font-weight: 700; }
.post__body em { font-style: italic; }

/* абзацы и списки внутри поста: одинаковая левая граница, ровные отступы */
.post__p { margin: 0; }
.post__p + .post__p { margin-top: .62rem; }
.post__p + .post__sub, .post__list + .post__sub { margin-top: .85rem; }
.post__sub + .post__p, .post__sub + .post__list { margin-top: .3rem; }
.post__p + .post__list, .post__list + .post__p { margin-top: .5rem; }
.post__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .32rem;
}
.post__list li {
  position: relative; padding-left: 1rem; line-height: 1.5;
}
.post__list li::before {
  content: ""; position: absolute; left: .18rem; top: .66em;
  width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .55;
}
.post__quote { margin: .55rem 0 0; padding: .55rem .8rem; }
.post__quote + .post__p, .post__p + .post__quote { margin-top: .55rem; }

.post__images { display: grid; gap: .35rem; margin-top: .15rem; }
.post__images--1 { grid-template-columns: 1fr; }
.post__images--2 { grid-template-columns: 1fr 1fr; }
.post__images--3, .post__images--4 { grid-template-columns: 1fr 1fr; }
.post__image {
  padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 22px -20px rgba(88, 130, 176, 1);
}
.post__image img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* тёмная карточка: светлый текст */
.post--night .post__meta b, .post--night .post__title, .post--night .post__body strong { color: #FFFFFF; }
.post--night .post__meta span, .post--night .post__body { color: rgba(255, 255, 255, .82); }

/* ---------------- редактор постов ---------------- */
.post-editor { display: grid; gap: .7rem; padding: 1rem; }
.post-editor .field { display: grid; gap: .3rem; font-size: .8rem; color: var(--muted); }
.post-editor input[type=text], .post-editor textarea {
  font: inherit; font-size: .9rem; color: var(--ink); padding: .55rem .7rem;
  border-radius: 14px; border: 1px solid rgba(206, 227, 246, 1); background: #fff; width: 100%;
}
.post-editor textarea { resize: vertical; line-height: 1.5; }
.post-editor__toolbar { display: flex; flex-wrap: wrap; gap: .3rem; }
.post-editor__toolbar button {
  font: inherit; font-size: .76rem; font-weight: 700; color: var(--sky-600);
  padding: .32rem .62rem; border-radius: 10px; cursor: pointer;
  background: rgba(238, 246, 255, .95); border: 1px solid rgba(206, 227, 246, 1);
}
.post-editor__toolbar button.is-italic { font-style: italic; }
.post-editor__toolbar button.is-quote { font-family: var(--font-display); }

.mood-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.mood-option {
  display: flex; align-items: center; gap: .45rem; padding: .45rem .6rem;
  border-radius: 14px; cursor: pointer; font-size: .78rem;
  border: 1px solid rgba(206, 227, 246, 1); background: rgba(255, 255, 255, .9);
  color: var(--ink-soft);
}
.mood-option input { accent-color: #86B8E6; }
.mood-option b { display: block; font-size: .8rem; color: var(--ink); }
.mood-option small { font-size: .68rem; color: var(--muted); }
.mood-option:has(input:checked) { border-color: transparent;
  background: linear-gradient(135deg, #9CCBF2 0%, #86B8E6 46%, #B3A6E6 100%); }
.mood-option:has(input:checked) b, .mood-option:has(input:checked) small { color: #fff; }

.switch { display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--ink-soft); }
.switch input { width: 18px; height: 18px; accent-color: #86B8E6; }

.post-editor__thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.post-editor__thumb { display: grid; gap: .3rem; justify-items: center; }
.post-editor__thumb img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; }

.admin-post { align-items: center; flex-wrap: wrap; }
.admin-post__actions { display: flex; gap: .3rem; margin-left: auto; }
.pill--tiny { padding: .3rem .7rem; font-size: .74rem; }

/* разметка внутри поста */
.post__body { display: block; }
.post__sub {
  display: block; font-family: var(--font-display); font-size: 1.02rem; line-height: 1.25;
  color: var(--ink); margin: .7rem 0 .1rem;
}
.post__quote {
  display: block; margin: .55rem 0 .2rem; padding: .45rem .7rem;
  border-left: 3px solid rgba(140, 178, 224, .9); border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, .55); font-style: italic; color: var(--ink);
}
.post__li { display: block; padding-left: 1rem; position: relative; margin-top: .3rem; }
.post__li::before {
  content: ""; position: absolute; left: .2rem; top: .62em;
  width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .55;
}
.post--night .post__sub { color: #FFFFFF; }
.post--night .post__quote { background: rgba(255, 255, 255, .12); color: #fff; border-left-color: rgba(255, 255, 255, .55); }

/* ---------------- тарифы: карточки сменяют друг друга циклом, не кликаются ---------------- */
.plans-loop {
  position: relative; overflow: hidden; margin-top: .3rem;
  /* высоту задаёт самая высокая карточка – пустого места внутри нет */
  height: auto;
  /* зазор между слайдами: во время смены карточки не липнут друг к другу */
  --plans-gap: 14px;
}
.plans-loop__track {
  display: flex; gap: var(--plans-gap); height: 100%;
  animation: plans-step 16.5s var(--ease-soft) infinite;
  will-change: transform;
}
.plans-loop__track > .plan {
  flex: 0 0 100%; width: 100%;
  margin: 0; padding: .95rem 1.1rem 1rem;
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  /* ровная тень без серых «пятен» по краям */
  box-shadow: 0 8px 20px -18px rgba(74, 117, 165, .45);
  pointer-events: none; user-select: none;   /* ничего не кликается */
}
.plans-loop__track > .plan .plan__badge {
  align-self: flex-start; margin-bottom: .45rem;
}
.plans-loop__track > .plan .plan__title { font-size: 1.28rem; line-height: 1.2; margin: 0 0 .3rem; }
.plans-loop__track > .plan .plan__price { margin: 0 0 .6rem; }
.plans-loop__track > .plan .plan__price b { font-size: 1.85rem; }
.plans-loop__track > .plan .plan__list {
  margin: 0; padding: 0; display: grid; gap: .26rem; align-content: start;
}
.plans-loop__track > .plan .plan__list li { font-size: .84rem; line-height: 1.4; }
.plans-loop__track > .plan .plan__list li + li { margin-top: 0; }

/* 3 карточки → пауза → плавный сдвиг; четвёртая в разметке дублирует первую */
@keyframes plans-step {
  0%, 26%    { transform: translate3d(0, 0, 0); }
  33%, 59%   { transform: translate3d(calc(-100% - var(--plans-gap)), 0, 0); }
  66%, 92%   { transform: translate3d(calc(-200% - var(--plans-gap) * 2), 0, 0); }
  100%       { transform: translate3d(calc(-300% - var(--plans-gap) * 3), 0, 0); }
}

@media (max-width: 380px) {
  .plans-loop__track > .plan { padding: .85rem .95rem .95rem; }
  .plans-loop__track > .plan .plan__list li { font-size: .81rem; }
}

@media (prefers-reduced-motion: reduce) {
  .plans-loop__track { animation: none; }
}

/* у гостя нет нижней панели: убираем запас под неё и любую подложку внизу */
body.is-guest .sitefoot { padding-bottom: .55rem; background: none; border-bottom: 0; }
body.is-guest .screen { padding-bottom: .4rem; }
body.is-guest .sitefoot__legal { margin-bottom: 0; }

/* ---------------- базовый тариф: белый + акцентная рамка ---------------- */
.plan--base {
  background: #FFFFFF;
  box-shadow: 0 8px 20px -18px rgba(74, 117, 165, .45), inset 0 0 0 1.5px rgba(134, 184, 230, .9);
  position: relative;
}
.plan__badge--base {
  color: #3F72A8;
  background: #DBECFC;
  box-shadow: inset 0 0 0 1px rgba(134, 184, 230, .55);
}

/* ---------------- документы: оферта и юридические данные ---------------- */
.doc-meta {
  display: grid; gap: .1rem; margin-top: 1rem; padding: .85rem 1rem;
  border-radius: var(--radius-md); background: #FFFFFF;
  box-shadow: 0 8px 20px -20px rgba(74, 117, 165, .5), inset 0 0 0 1px rgba(200, 224, 245, .8);
}
.doc-meta__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: .8rem;
  padding: .3rem 0; font-size: .82rem; color: var(--ink-soft);
  border-bottom: 1px dashed rgba(200, 224, 245, .85);
}
.doc-meta__row:last-child { border-bottom: 0; }
.doc-meta__row b { color: var(--ink); font-weight: 700; text-align: right; }

.doc-toc {
  display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 .2rem;
}
.doc-toc a {
  padding: .34rem .7rem; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 700; color: var(--sky-600);
  background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(200, 224, 245, .9);
}
.doc-toc a:active { transform: scale(.96); }

.doc {
  margin-top: 1rem; padding: 1.15rem 1.05rem 1.3rem;
  border-radius: var(--radius-lg); background: #FFFFFF;
  box-shadow: 0 10px 26px -24px rgba(74, 117, 165, .55), inset 0 0 0 1px rgba(200, 224, 245, .75);
}
.doc__part + .doc__part { margin-top: 1.15rem; padding-top: 1.05rem; border-top: 1px solid rgba(200, 224, 245, .7); }
.doc__h {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; line-height: 1.25;
  margin: 0 0 .55rem; color: var(--ink);
}
.doc__num {
  flex: 0 0 auto; display: grid; place-items: center;
  min-width: 1.7rem; height: 1.7rem; padding: 0 .35rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: .72rem; font-weight: 800; letter-spacing: .02em;
  color: #3F72A8; background: #E4F0FC;
}
.doc p { margin: 0 0 .55rem; font-size: .87rem; line-height: 1.62; color: #3B4B5E; }
.doc p:last-child { margin-bottom: 0; }
.doc b { color: var(--ink); }
.doc a { color: var(--sky-600); text-decoration: underline; text-decoration-color: rgba(134, 184, 230, .55); text-underline-offset: 2px; }
.doc__list { margin: .1rem 0 .6rem; padding: 0; list-style: none; display: grid; gap: .35rem; }
.doc__list li {
  position: relative; padding-left: 1.05rem;
  font-size: .86rem; line-height: 1.55; color: #3B4B5E;
}
.doc__list li::before {
  content: ""; position: absolute; left: .25rem; top: .55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--sky-400);
}
.doc__note {
  margin: .6rem 0 0; padding: .6rem .8rem;
  border-left: 2px solid var(--sky-300); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #F5FAFF; font-size: .8rem !important; color: var(--ink-soft) !important;
}

.req { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 .3rem; }
.req > dt {
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 800; color: var(--ink-faint); margin-top: .55rem;
}
.req > dd { margin: .1rem 0 0; font-size: .88rem; line-height: 1.5; color: #3B4B5E; }
.req > dd a { color: var(--sky-600); }

.pay-note {
  display: flex; align-items: flex-start; gap: .55rem; margin-top: .7rem; padding: .65rem .8rem;
  border-radius: var(--radius-md); background: #EFF8F3;
  font-size: .8rem; line-height: 1.5; color: #33604C;
}
.pay-note .i { flex: 0 0 auto; margin-top: .1rem; color: #4E9A78; }

.doc-sign {
  margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid rgba(200, 224, 245, .8);
}
.doc-sign__lead {
  font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 800; color: var(--ink-faint); margin: 0 0 .5rem !important;
}
.doc-sign__grid { display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; margin: 0; }
.doc-sign__grid dt { font-size: .78rem; color: var(--ink-faint); }
.doc-sign__grid dd { margin: 0; font-size: .82rem; font-weight: 700; color: var(--ink); }
.doc-sign__note { margin-top: .7rem !important; font-size: .74rem !important; color: var(--ink-faint) !important; }

.doc-cross { margin-top: .9rem; }
.doc-cross__link {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .85rem 1rem; border-radius: var(--radius-md); background: #FFFFFF;
  font-size: .84rem; font-weight: 700; color: var(--ink);
  box-shadow: 0 8px 20px -22px rgba(74, 117, 165, .6), inset 0 0 0 1px rgba(200, 224, 245, .85);
}
.doc-cross__link .i { color: var(--sky-600); }

/* подвал: слоган «мягкий астрологический сервис» на каждой странице */
.sitefoot__tagline {
  margin: 0 0 .55rem; font-size: .72rem; line-height: 1.4; color: var(--ink-soft);
}
.sitefoot__nav { margin-bottom: .55rem; }

/* ---------------- оплата: подпись под кнопкой и памятка ---------------- */
.plan__pay {
  margin: .45rem 0 0; font-size: .72rem; line-height: 1.35;
  color: var(--ink-faint); text-align: center;
}
.pay-info {
  padding: 1rem 1.05rem; border-radius: var(--radius-lg); background: #FFFFFF;
  box-shadow: 0 10px 26px -24px rgba(74, 117, 165, .55), inset 0 0 0 1px rgba(200, 224, 245, .75);
}
.pay-info__title {
  margin: 0 0 .5rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink);
}
.pay-info__list { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.pay-info__list li {
  position: relative; padding-left: 1rem;
  font-size: .82rem; line-height: 1.5; color: #3B4B5E;
}
.pay-info__list li::before {
  content: ""; position: absolute; left: .2rem; top: .55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--sky-400);
}
.pay-info__list a { color: var(--sky-600); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- админка: платежи ---------------- */
.flash { padding: .7rem .9rem; border-radius: var(--radius-md); font-size: .82rem; margin: .6rem 0; }
.flash--ok { background: #EFF8F3; color: #33604C; box-shadow: inset 0 0 0 1px rgba(78, 154, 120, .35); }
.flash--warn { background: #FFF5E9; color: #8A5A1E; box-shadow: inset 0 0 0 1px rgba(214, 158, 84, .35); }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: var(--radius-pill); font-size: .68rem; font-weight: 800; }
.badge--ok { background: #DFF3E8; color: #2F6B4F; }
.badge--warn { background: #FDF0DC; color: #8A5A1E; }
.badge--bad { background: #FCE4E4; color: #99403F; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .74rem; word-break: break-all; }
.pay-check { margin-top: .8rem; }
.pay-split { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.pay-split__item {
  padding: .35rem .65rem; border-radius: var(--radius-pill); background: #FFFFFF;
  font-size: .74rem; color: var(--ink-soft); box-shadow: inset 0 0 0 1px rgba(200, 224, 245, .85);
}
.pay-table {
  border-radius: var(--radius-md); background: #FFFFFF; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(200, 224, 245, .8);
}
.pay-table__head, .pay-table__row {
  display: grid; grid-template-columns: 4.2rem 1fr 4.6rem 3.4rem 4.6rem;
  gap: .35rem; padding: .55rem .7rem; align-items: start;
}
.pay-table__head {
  font-size: .62rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 800; background: #F7FBFF;
}
.pay-table__row { font-size: .76rem; color: #3B4B5E; border-top: 1px solid rgba(200, 224, 245, .6); }
.pay-table__when { color: var(--ink-soft); font-size: .72rem; }
.pay-table__dim { color: var(--ink-faint); font-size: .68rem; }
@media (max-width: 380px) {
  .pay-table__head, .pay-table__row { grid-template-columns: 3.6rem 1fr 3.8rem 3rem 4rem; font-size: .7rem; }
}

/* ---------------- история платежей: карточками ---------------- */
.pay-list { display: grid; gap: .5rem; }
.pay-item {
  padding: .7rem .8rem; border-radius: var(--radius-md); background: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(200, 224, 245, .85);
}
.pay-item--succeeded { box-shadow: inset 0 0 0 1px rgba(78, 154, 120, .45); }
.pay-item--canceled { opacity: .75; }
.pay-item__top { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.pay-item__plan { font-size: .9rem; color: var(--ink); }
.pay-item__amount { margin-left: auto; font-size: .9rem; font-weight: 800; color: var(--ink); }
.pay-item__who { margin: .3rem 0 0; font-size: .78rem; color: #3B4B5E; }
.pay-item__dim { color: var(--ink-faint); }
.pay-item__when { margin: .15rem 0 0; font-size: .7rem; color: var(--ink-faint); }
.pay-item__id {
  margin: .25rem 0 0; font-family: ui-monospace, Menlo, monospace;
  font-size: .64rem; color: var(--ink-faint); word-break: break-all;
}

/* ---------------- кабинет: карточки подписки и блоков ---------------- */
.sub-card { display: grid; gap: .1rem; }
.sub-card__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: .8rem;
  padding: .42rem 0; border-bottom: 1px dashed rgba(200, 224, 245, .85);
}
.sub-card__row:last-of-type { border-bottom: 0; }
.sub-card__label { font-size: .78rem; color: var(--ink-faint); }
.sub-card__value { font-size: .84rem; color: var(--ink); text-align: right; }
.sub-card__actions { margin-top: .7rem; }

/* ---------------- админка: почта ---------------- */
.mail-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.mail-tab {
  padding: .38rem .7rem; border-radius: var(--radius-pill); background: #FFFFFF;
  font-size: .78rem; font-weight: 700; color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px rgba(200, 224, 245, .9);
}
.mail-tab.is-active { background: var(--sky-500, #7FB6E8); color: #FFFFFF; box-shadow: none; }
.mail-tab__dot {
  display: inline-block; width: 6px; height: 6px; margin-left: .3rem;
  border-radius: 50%; background: #D69E54; vertical-align: middle;
}
.mail-layout { display: grid; gap: .7rem; margin-top: .7rem; }
@media (min-width: 700px) { .mail-layout { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.mail-list {
  border-radius: var(--radius-md); background: #FFFFFF; padding: .6rem;
  box-shadow: inset 0 0 0 1px rgba(200, 224, 245, .85);
}
.mail-list__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; font-size: .78rem; }
.mail-row {
  display: grid; gap: .1rem; padding: .5rem .45rem; border-radius: var(--radius-sm, 10px);
  border-bottom: 1px solid rgba(200, 224, 245, .5);
}
.mail-row.is-active { background: #F2F8FF; }
.mail-row__from { font-size: .74rem; color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row__subject { font-size: .78rem; color: #3B4B5E; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row.is-unread .mail-row__subject { font-weight: 800; color: var(--ink); }
.mail-row__date { font-size: .66rem; color: var(--ink-faint); }
.mail-read {
  border-radius: var(--radius-md); background: #FFFFFF; padding: .8rem;
  box-shadow: inset 0 0 0 1px rgba(200, 224, 245, .85);
}
.mail-read__meta { margin: 0 0 .3rem; font-size: .72rem; color: var(--ink-faint); word-break: break-word; }
.mail-read__body {
  margin: .5rem 0 0; padding: .6rem; border-radius: var(--radius-sm, 10px); background: #F7FBFF;
  font-family: inherit; font-size: .78rem; line-height: 1.5; color: #3B4B5E;
  white-space: pre-wrap; word-break: break-word; max-height: 46vh; overflow: auto;
}
.mail-empty { padding: .6rem .2rem; }

/* ---------------- почта: папки и верхняя панель ---------------- */
.mail-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem; margin-top: .7rem;
}
.mail-folders { display: flex; gap: .35rem; }
.mail-folder {
  padding: .32rem .7rem; border-radius: var(--radius-pill); font-size: .76rem; font-weight: 700;
  color: var(--ink-soft); background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(200, 224, 245, .9);
}
.mail-folder.is-active { background: #EEF6FF; color: var(--sky-600, #4A87C0); box-shadow: inset 0 0 0 1px rgba(127, 182, 232, .8); }
.mail-bar__right { display: flex; gap: .35rem; }
.mail-list__dim { font-size: .68rem; color: var(--ink-faint); font-weight: 600; }

/* ---------------- подтверждение почты ---------------- */
.verify { display: grid; place-items: center; padding: 1.2rem 0 2rem; }
.verify__card {
  width: 100%; max-width: 430px; background: #FFFFFF; border-radius: var(--radius-lg, 20px);
  padding: 1.4rem 1.2rem 1.2rem; box-shadow: 0 18px 48px rgba(27, 51, 80, .10),
    inset 0 0 0 1px rgba(200, 224, 245, .8);
}
.verify__head { text-align: center; }
.verify__star { font-size: 1.6rem; color: var(--sky-500, #7FB6E8); line-height: 1; }
.verify__title { font-size: 1.5rem; margin: .3rem 0 .35rem; }
.verify__lead { font-size: .82rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 .7rem; }
.verify__label {
  display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 800; color: var(--ink-faint); margin-bottom: .3rem;
}
.verify__input {
  width: 100%; padding: .75rem .6rem; border-radius: var(--radius-md, 14px);
  border: 1px solid rgba(200, 224, 245, .95); background: #F9FCFF;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.7rem; font-weight: 700;
  letter-spacing: .42em; text-align: center; color: var(--sky-900, #1B3350);
}
.verify__input:focus { outline: none; border-color: var(--sky-500, #7FB6E8); background: #FFFFFF; }
.verify__submit { margin-top: .7rem; }
.verify__resend { margin-top: .6rem; text-align: center; }
.verify__link {
  background: none; border: 0; padding: 0; font: inherit; font-size: .78rem; font-weight: 700;
  color: var(--sky-600, #4A87C0); cursor: pointer; text-decoration: underline;
}
.verify__note { margin: .9rem 0 0; font-size: .72rem; line-height: 1.6; color: var(--ink-faint); text-align: center; }
.verify__note a { color: var(--sky-600, #4A87C0); font-weight: 700; }
.verify__hint {
  margin: .6rem 0; padding: .6rem .7rem; border-radius: var(--radius-md, 14px);
  background: #FFF9E9; border-left: 3px solid #C9A227; font-size: .76rem; line-height: 1.55; color: #6B5518;
}
.verify__code {
  margin-top: .35rem; font-family: ui-monospace, Menlo, monospace; font-size: 1.3rem;
  font-weight: 800; letter-spacing: .3em; color: var(--sky-900, #1B3350);
}

/* ---------------- восстановление пароля ---------------- */
.verify__field {
  width: 100%; padding: .7rem .8rem; border-radius: var(--radius-md, 14px);
  border: 1px solid rgba(200, 224, 245, .95); background: #F9FCFF;
  font-size: .9rem; color: var(--ink);
}
.verify__field:focus { outline: none; border-color: var(--sky-500, #7FB6E8); background: #FFFFFF; }

/* ---------------- дневник: удаление записи ---------------- */
.journal__del { margin-left: auto; }
.journal__del button {
  width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer;
  background: #F1F6FC; color: var(--ink-faint); font-size: .95rem; line-height: 1;
  display: grid; place-items: center; transition: background .18s var(--ease), color .18s var(--ease);
}
.journal__del button:hover { background: #FCE4E4; color: #99403F; }
.journal__meta { display: flex; align-items: center; gap: .5rem; }

/* ---------------- памятка по подписке ---------------- */
.sub-note {
  margin-top: .75rem; padding: .7rem .8rem; border-radius: var(--radius-md, 18px);
  background: var(--sky-50, #F6FAFF); box-shadow: inset 0 0 0 1px var(--sky-200, #DEEDFB);
}
.sub-note__title {
  margin: 0 0 .35rem; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 800; color: var(--sky-600, #5F93C7);
}
.sub-note__list { margin: 0; padding-left: 1.05rem; }
.sub-note__list li { font-size: .76rem; line-height: 1.55; color: var(--ink-soft); margin-bottom: .2rem; }
.sub-note__list li b { color: var(--ink); }

/* ---------------- чекбокс «запомнить меня» ---------------- */
/* «запомнить меня»: текст слева, аккуратная галочка справа.
   селектор с .form – иначе общее правило «.form label { display: grid }»
   перебивает и ставит галочку под текстом */
.form label.check {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  width: 100%; font-size: .74rem !important; font-weight: 600;
  letter-spacing: 0; text-transform: none;
  color: var(--ink-soft); cursor: pointer; margin: .1rem 0 .25rem;
  user-select: none;
}
.check__text { line-height: 1.2; text-transform: none; letter-spacing: 0; }
.form .check input[type="checkbox"],
.check input[type="checkbox"] {
  -webkit-appearance: none; appearance: none;
  flex: 0 0 auto;
  /* сбрасываем «взрослый» размер текстовых полей: иначе галочка огромная */
  width: 16px; height: 16px; min-width: 16px; min-height: 16px;
  margin: 0; padding: 0; box-sizing: border-box;
  border-radius: 4px; border: 1.5px solid rgba(150, 190, 230, .95);
  background: rgba(255, 255, 255, .95);
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.form .check input[type="checkbox"]:checked,
.check input[type="checkbox"]:checked {
  background: var(--sky-500, #86B8E6); border-color: var(--sky-500, #86B8E6);
}
/* галочка «птичкой» внутри квадратика */
.form .check input[type="checkbox"]:checked::after,
.check input[type="checkbox"]:checked::after {
  content: ""; width: 4px; height: 7px;
  border: solid #fff; border-width: 0 1.6px 1.6px 0;
  transform: rotate(42deg) translate(-.5px, -.5px);
}
.form .check input[type="checkbox"]:focus-visible,
.check input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(134, 184, 230, .55); outline-offset: 2px;
}

/* ---------------- совместимость: карточки ---------------- */
.compat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
}
/* с процентами в строке теснее – даём чуть больше ширины тексту */
@media (max-width: 420px) {
  .compat-grid--score { grid-template-columns: 1fr; }
}
.compat-card {
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem .75rem; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .86); box-shadow: var(--shadow-card);
  color: var(--ink); text-decoration: none; min-width: 0;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.compat-card:active { transform: scale(.98); }
.compat-card--static { cursor: default; }
.compat-card--static:active { transform: none; }
.compat-card__icon {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 12px;
  background: linear-gradient(150deg, #EAF4FF, #DCEAFB); color: var(--sky-600);
}
.compat-card__icon svg {
  fill: none; stroke: currentColor; stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
}
.compat-card__body { display: grid; gap: .1rem; min-width: 0; flex: 1 1 auto; }
/* даты знака видны целиком: переносим на вторую строку, а не обрезаем «…» */
.compat-card__name {
  font-family: var(--font-display); font-size: .96rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.compat-card__note {
  font-size: .64rem; line-height: 1.25; color: var(--muted);
  white-space: normal; overflow-wrap: anywhere;
}
.compat-card__score {
  flex: 0 0 auto; font-size: .72rem; font-weight: 700; color: var(--sky-600);
}
@media (max-width: 359px) {
  .compat-grid { grid-template-columns: 1fr; }
}
