/* Пульсар — налоговый календарь
   Палитра от документа: холодная бумага, чернила, синий печатной краски.
   Сигнальный янтарь только для срочного — иначе тревожность без пользы. */


/* --- Inter Tight: свои копии, как и Plex. Из гугла ничего не грузится --- */
@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/inter-tight-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/inter-tight-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/inter-tight-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/inter-tight-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/inter-tight-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/inter-tight-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- шрифты IBM Plex: свои копии, без обращений к Google --- */
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Переход между месяцами (/grid?m=...) — обычная серверная навигация,
   не SPA (см. комментарий у .daypanel про "работает без JavaScript").
   Эта строка включает встроенный в браузер кроссфейд между страницами
   без единой строки JS — где не поддерживается, просто обычный мгновенный
   переход, деградация безопасна. */
@view-transition {
  navigation: auto;
}

:root {
  --paper:      #F6F7F9;
  --paper-card: #FFFFFF;
  --ink:        #14181F;
  --ink-soft:   #5A6472;
  --ink-quiet:  #6B7481; /* вторичный текст, который несёт смысл — 4.7:1, проходит AA */
  --ink-faint:  #8E97A5; /* только декоративное затемнение: прошедшие дни и т.п. — 2.75:1, читать не обязательно */
  --stamp:      #097956;   /* тон темнее логотипа: 5.4:1 на белом, проходит AA */
  --stamp-wash: #EAF7F1;   /* мягкая подложка, 1.07:1 к белому */
  --signal:     #B5700A;
  --signal-wash:#FDF4E5;
  --done:       #2D6A4F;
  --rule:       #E2E6EC;
  --rule-firm:  #C9D0D9;

  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;

  --radius:    16px;
  --stamp-deep: #06553A;  /* нажатая кнопка и тёмный край градиента */
  --stamp-light:#1E9E6A;  /* светлее основного, но белый текст ещё читается: 3.4:1 */
  --radius-sm: 10px;
  --shadow: 0 2px 4px rgba(20,24,31,.05), 0 6px 16px rgba(20,24,31,.06);
  --shadow-sm: 0 2px 4px rgba(20,24,31,.05);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Страховка на случай, если мобильный браузер всё же сделает из числа
   телефонную ссылку: выглядеть она будет обычным текстом. */
a[href^="tel:"] { color: inherit; text-decoration: none; pointer-events: none; }

/* Три мягких зелёных ореола поверх серого листа: не заливка, а свет,
   падающий на бумагу. Слой прибит к окну (fixed), поэтому не тянется
   вслед за длинной страницей и не повторяется на прокрутке.
   z-index: -1 уводит его под весь контент, pointer-events: none снимает
   перехват кликов. Прозрачность держим низкой намеренно: фон должен
   читаться боковым зрением, а даты — прямым. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 55% at 12% 8%,   rgba(30,158,106,.13), transparent 70%),
    radial-gradient(60% 50% at 88% 22%,  rgba(9,121,86,.10),   transparent 70%),
    radial-gradient(80% 60% at 50% 100%, rgba(30,158,106,.08), transparent 70%);
  background-size: 200% 200%;
  background-repeat: no-repeat;
  animation: bgglow 32s ease-in-out infinite;
}
@keyframes bgglow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
/* Системная настройка «меньше движения» важнее красоты фона. */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

.shell { max-width: 900px; margin: 0 auto; padding: 0 20px 96px; }

/* ---------- шапка ---------- */

.masthead {
  position: relative; left: 50%; width: 100vw; margin-left: -50vw;
  box-sizing: border-box;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}
.masthead-inner {
  /* center, а не baseline: с картинкой в ссылке базовая линия берётся от
     логотипа, и название компании справа съезжает вниз. На узком экране
     это особенно заметно. */
  display: flex; align-items: center; gap: 12px;
  max-width: 900px; margin: 0 auto;
  padding: 28px 20px 24px; box-sizing: border-box;
}
.wordmark {
  font-family: var(--mono);
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--stamp);
  text-decoration: none;
  /* inline-flex вместо строчной ссылки: иначе картинка садится на базовую
     линию текста и визуально проваливается ниже заглавных букв. */
  display: inline-flex; align-items: center; gap: 12px;
}
/* 26px, а не высота заглавных: у четырёхлучевой звезды тонкие лучи, её
   видимая масса заметно меньше габаритного квадрата, и на 18px знак
   читался мелким. Размеры продублированы в атрибутах <img>, чтобы место
   под знак резервировалось до загрузки SVG и шапка не дёргалась. */
.wordmark-logo { display: block; width: 26px; height: 26px; }
.masthead .company {
  font-size: 14px; color: var(--ink-soft);
  margin-left: auto; text-align: right;
}
.masthead .company b { color: var(--ink); font-weight: 600; }

/* ---------- типографика ---------- */

h1 {
  font-size: 30px; line-height: 1.22; font-weight: 600;
  letter-spacing: -0.02em; margin: 0 0 12px;
}
h2 {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-quiet);
  margin: 40px 0 16px;
}
.lede { font-size: 17px; color: var(--ink-soft); margin: 0 0 32px; max-width: 52ch; }
.note { font-size: 14px; color: var(--ink-soft); }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--stamp);
  text-decoration: none; margin-bottom: 20px;
}
.back-link:hover { text-decoration: underline; }
.fine { font-size: 13px; color: var(--ink-quiet); }

/* ---------- форма ---------- */

.field { margin-bottom: 24px; }
.field > label {
  display: block; font-size: 14px; font-weight: 500;
  margin-bottom: 6px;
}
.field .hint { font-size: 13px; color: var(--ink-quiet); margin-bottom: 10px; }

input[type="text"], input[type="email"], input[type="date"], select {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--sans); font-size: 16px;
  color: var(--ink); background: var(--paper-card);
  border: 1px solid var(--rule-firm); border-radius: var(--radius-sm);
  transition: border-color .12s, box-shadow .12s;
}
input.inn {
  font-family: var(--mono);
  font-size: 26px; letter-spacing: 0.14em;
  padding: 18px 18px;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--stamp);
  box-shadow: 0 0 0 3px var(--stamp-wash);
}
input.err { border-color: #A8332B; }

.choice { display: grid; gap: 8px; }
.choice label {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px;
  background: var(--paper-card);
  border: 1px solid var(--rule-firm); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s;
}
.choice label:hover { border-color: var(--rule-firm); background: #FCFDFE; box-shadow: var(--shadow-sm); }
.choice input { margin: 3px 0 0; accent-color: var(--stamp); flex: none; }
.choice .title { font-weight: 500; }
.choice .sub { font-size: 13px; color: var(--ink-quiet); display: block; }
.choice label:has(input:checked) { border-color: var(--stamp); background: var(--stamp-wash); box-shadow: var(--shadow-sm); }

.btn {
  appearance: none; -webkit-appearance: none;
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  color: #fff; background: var(--stamp);
  border: none; border-radius: 999px; cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background .12s, box-shadow .12s, transform .12s;
}
.btn:hover { background: #17602F; box-shadow: var(--shadow); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn.ghost {
  background: transparent; color: var(--stamp);
  border: 1px solid var(--rule-firm);
}
.btn.ghost:hover { background: var(--stamp-wash); }

/* ---------- сообщения ---------- */

.msg { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 15px; margin-bottom: 24px; }
.msg.warn  { background: var(--signal-wash); color: #6B4400; border-left: 3px solid var(--signal); }
.msg.stop  { background: #FBEDEC; color: #7A2620; border-left: 3px solid #A8332B; }
.msg.info  { background: var(--stamp-wash); color: #1B4A28; border-left: 3px solid var(--stamp); }

/* ---------- найденная организация ---------- */

.found {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--stamp);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px; margin-bottom: 32px;
}
.found .name { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.found dl {
  margin: 0; display: grid; grid-template-columns: auto 1fr;
  gap: 4px 18px; font-size: 14px;
}
.found dt { color: var(--ink-quiet); }
.found dd { margin: 0; font-family: var(--mono); font-size: 13px; }

/* ---------- ХРЕБЕТ ДАТ — подпись страницы ---------- */

.spine { max-width: 680px; margin-left: auto; margin-right: auto; border-top: 1px solid var(--rule); }

.month {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-quiet);
  padding: 26px 0 10px;
}

.entry {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.entry:first-of-type { border-top: none; }

.when { text-align: right; padding-top: 1px; }
.when .day {
  font-family: var(--mono); font-size: 27px; font-weight: 500;
  line-height: 1; letter-spacing: -0.02em;
  display: block;
}
.when .mon {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-quiet);
}
.entry.soon .when .day { color: var(--signal); }
.entry.today .when .day { color: #A8332B; }

.what .task { font-size: 16px; font-weight: 500; margin-bottom: 3px; }
.what .meta { font-size: 13px; color: var(--ink-quiet); }
.what .meta span + span::before { content: "·"; margin: 0 7px; }

/* пара уведомление↔платёж: две даты, соединённые волоском */
.pair { position: relative; padding-left: 15px; }
.pair::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 1px; background: var(--rule-firm);
}
.pair .step { display: flex; gap: 12px; align-items: baseline; padding: 3px 0; }
.pair .step .d {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--stamp); flex: none; min-width: 48px;
}
.pair .step .a { font-size: 14px; color: var(--ink-soft); }

.shifted {
  font-family: var(--mono); font-size: 11px; color: var(--ink-quiet);
  border-bottom: 1px dotted var(--rule-firm); cursor: help;
}

.tag {
  display: inline-block; font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; vertical-align: 1px;
}
.tag.cond { background: var(--stamp-wash); color: var(--stamp); }
.tag.sfr  { background: #EDF3EF; color: var(--done); }

/* ---------- подвал экрана ---------- */

.tail {
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.tail .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.stat {
  display: flex; gap: 28px; margin: 0 0 8px;
  font-family: var(--mono); font-size: 13px; color: var(--ink-soft);
}
.stat b { color: var(--ink); font-weight: 600; }

@media (max-width: 560px) {
  h1 { font-size: 25px; }
  .entry { grid-template-columns: 52px 1fr; gap: 14px; }
  .when .day { font-size: 23px; }
  input.inn { font-size: 21px; }
  .stat { gap: 18px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation: none !important;
  }
}

/* Редкие условные обязательства — сноска месяца, не строка ленты.
   «Если был постоянный перевод» у большинства не случается никогда;
   полноценной строкой это создаёт ложное ощущение занятости. */
.maybe {
  margin: 4px 0 8px 82px;
  padding: 12px 14px;
  background: #FBFCFD;
  border: 1px dashed var(--rule-firm);
  border-radius: var(--radius-sm);
}
.maybe-head {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-quiet); margin-bottom: 7px;
}
.maybe-row {
  display: flex; gap: 11px; align-items: baseline;
  font-size: 13px; color: var(--ink-soft); padding: 2px 0;
}
.maybe-row .d {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-quiet); flex: none; min-width: 42px;
}
@media (max-width: 560px) { .maybe { margin-left: 0; } }

/* Блок сохранения — появляется под календарём, когда ценность уже показана */
.keep {
  margin-top: 40px;
  padding: 24px 26px;
  background: var(--stamp-wash);
  border: 1px solid #CDE8C6;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.keep-head {
  font-size: 17px; font-weight: 600; margin-bottom: 8px;
}
.keep-form { display: flex; gap: 10px; flex-wrap: wrap; }
.keep-form input { flex: 1 1 240px; background: #fff; }
.keep-form .btn { flex: none; }
.masthead .company a { color: var(--stamp); text-decoration: none; }
.masthead .company a:hover { text-decoration: underline; }
.what .task a { color: var(--ink); text-decoration: none; }
.what .task a:hover { color: var(--stamp); }
.fine a { color: var(--stamp); }

/* Ссылка "куда идти" рядом с обязательством — не инструкция с суммами
   (их движок не считает), а прямой переход в кабинет получателя или на
   свою мини-инструкцию /howto/<тема>. */
.meta.howto, .dp-meta.howto { margin-top: 6px; }
.meta.howto a, .dp-meta.howto a {
  color: var(--stamp); font-weight: 500; text-decoration: none;
}
.meta.howto a:hover, .dp-meta.howto a:hover { text-decoration: underline; }

/* Мини-инструкция /howto/<тема>: пронумерованные шаги, номер — как штамп. */
.howto-steps { margin: 0 0 24px; padding-left: 0; list-style: none; counter-reset: step; }
.howto-steps li {
  position: relative; padding: 12px 0 12px 44px;
  border-top: 1px solid var(--rule); font-size: 15px;
}
.howto-steps li:first-child { border-top: none; }
.howto-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 10px;
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--stamp);
  width: 26px; height: 26px; border-radius: 50%; background: var(--stamp-wash);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- КАЛЕНДАРНАЯ СЕТКА ----------
   Видна форма месяца: до 25-го пусто, потом всё разом. Это настоящий
   ритм после реформы ЕНС, и списком он не читается.
   Нерабочие дни закрашены по производственному календарю — тогда перенос
   срока не требует объяснений, видно глазами. */

/* Полоса месяца с градиентом. Градиент живёт здесь, а не под сеткой:
   за данными он читался бы как подложка и мешал видеть, какая ячейка
   выделена. Второй раз появляется только в логотипе — иначе
   перестаёт быть акцентом. */
.monthbar {
  display: flex; align-items: center; gap: 16px;
  max-width: 680px; margin: 0 auto 22px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: linear-gradient(118deg, var(--stamp-deep), var(--stamp) 52%, var(--stamp-light));
  color: #fff;
}
.mtitle {
  font-size: 27px; margin: 0; text-transform: capitalize;
  flex: 1; font-weight: 600; letter-spacing: -.02em; line-height: 1.2;
  color: #fff;
}
.nav {
  font-family: var(--mono); font-size: 18px;
  width: 38px; height: 38px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none;
  border: none; border-radius: 10px;
  background: rgba(255,255,255,.16);
  transition: background .12s;
}
.nav:hover { background: rgba(255,255,255,.3); }
.nav.off { background: rgba(255,255,255,.07); color: rgba(255,255,255,.4); cursor: default; }

.grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 680px; margin-left: auto; margin-right: auto;
}
.gh {
  background: var(--paper);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-quiet);
  text-align: center; padding: 9px 0 8px;
}
.cell {
  background: var(--paper-card);
  min-height: 74px; padding: 7px 8px;
  display: flex; flex-direction: column; gap: 5px;
  transition: background .15s ease, box-shadow .15s ease;
}
.cell .n {
  font-family: var(--mono); font-size: 15px; font-weight: 500;
  color: var(--ink); line-height: 1;
}
.cell.out { background: #FAFBFC; }
.cell.out .n { color: #C5CBD4; }
.cell.nonwork { background: #F0F2F5; }
.cell.nonwork .n { color: var(--ink-quiet); }
.cell.past .n { color: var(--ink-faint); } /* уже прошло — блёклость осознанная, не нужно читать точно */
/* "Сегодня" — только маленький кружок у числа, фоновая подсказка, не
   рамка на всю ячейку: рамка на всю ячейку означает "вы сейчас смотрите
   этот день" (см. .cell.picked ниже), и эти два смысла нельзя путать —
   сегодня и выбранный день часто разные даты. */
.cell.today .n {
  align-self: flex-start;
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--stamp); color: #fff; font-weight: 600;
}

.dots { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; flex: none;
}
/* Раньше платёж/уведомление различались только заливкой одного и того же
   синего — на 8px это заливка-против-обводки просто не читается, тем более
   при нескольких точках в ячейке. Теперь три типа — три силуэта (круг,
   ромб, квадрат), а не оттенки одной точки; полая точка остаётся только
   у "может быть", так что обводка больше ни с чем не путается. */
.dot.payment      { background: var(--stamp); }
.dot.notification {
  width: 6px; height: 6px; margin: 0 1px;
  background: var(--stamp); border-radius: 1px;
  transform: rotate(45deg);
}
.dot.report       { background: var(--done); border-radius: 1px; }
.dot.maybe        { background: transparent; box-shadow: inset 0 0 0 1.5px var(--rule-firm); }
.cnt {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-quiet); margin-left: 1px;
}

.legend {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  max-width: 680px; margin: 14px auto 8px;
  font-size: 12px; color: var(--ink-soft);
}
.legend span { display: flex; align-items: center; gap: 6px; }
.legend .sep { color: var(--ink-quiet); }

.maybe-box {
  margin: 4px 0 8px 82px; padding: 12px 14px;
  background: #FBFCFD; border: 1px dashed var(--rule-firm); border-radius: var(--radius-sm);
}

@media (max-width: 560px) {
  .cell { min-height: 58px; padding: 5px 4px; }
  .cell .n { font-size: 13px; }
  .dot { width: 7px; height: 7px; }
  .mtitle { font-size: 21px; }
  .monthbar { padding: 16px 16px; gap: 10px; margin-bottom: 16px; }
  .nav { width: 34px; height: 34px; font-size: 16px; }
  .maybe-box { margin-left: 0; }
}

/* ---------- Панель дня ----------
   Ячейка с делами кликабельна. Ссылка настоящая — работает и без
   JavaScript; скрипт лишь перехватывает клик, чтобы не перезагружать. */

a.cell {
  text-decoration: none; color: inherit;
  cursor: pointer; transition: background .1s;
}
a.cell:hover { background: var(--stamp-wash); }
.cell.has .n { font-weight: 600; }
.cell.picked {
  background: var(--stamp-wash);
  box-shadow: inset 0 0 0 2px var(--stamp);
}

.daypanel {
  margin-top: -1px;
  max-width: 680px; margin-left: auto; margin-right: auto;
  background: var(--paper-card);
  border: 1px solid var(--stamp);
  border-top: 3px solid var(--stamp);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px 16px;
  /* своё имя — чтобы браузер анимировал переход только этого блока
     (View Transitions API), а не всю страницу целиком */
  view-transition-name: daypanel;
}
.daypanel.hidden { display: none; }

.dp-head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 11px; margin-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}
.dp-date { font-size: 17px; font-weight: 600; }
.dp-wd { font-size: 13px; color: var(--ink-quiet); }
.dp-close {
  margin-left: auto; color: var(--ink-quiet);
  text-decoration: none; font-size: 15px; line-height: 1;
  padding: 2px 6px;
}
.dp-close:hover { color: var(--ink); }

.dp-row {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 10px 0; border-top: 1px solid var(--rule);
}
.dp-row:first-of-type { border-top: none; }
.dp-row .dot { margin-top: 6px; }
.dp-title { font-size: 15px; font-weight: 500; margin-bottom: 2px; }
.dp-meta { font-size: 13px; color: var(--ink-quiet); }
.dp-row.rare .dp-title { font-weight: 400; color: var(--ink-soft); }

/* ---------- Карточка компании ----------
   Показывает, что продукт знает о бизнесе. Ничего не считает —
   расчёт сумм это другой продукт с другой ценой ошибки. */

.card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px 16px;
  margin-bottom: 18px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 1px 2px rgba(20,24,31,.05), 0 14px 30px -8px rgba(20,24,31,.14); transform: translateY(-1px); }
.card-top {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.card-name {
  font-size: 18px; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.card-name:hover { color: var(--stamp); }
.badge {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--stamp-wash); color: var(--stamp);
  margin-left: auto; flex: none;
}
.card-facts {
  margin: 0 0 16px;
  display: grid; grid-template-columns: auto 1fr;
  gap: 9px 20px; font-size: 14px;
}
.card-facts dt {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-quiet); align-self: center;
}
.card-facts dd { margin: 0; }
.card-facts dd.flag {
  display: flex; align-items: center; gap: 7px;
}
.card-facts dd.flag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--rule-firm);
}
.card-facts dd.flag.on::before { background: var(--stamp); }
.card-foot { display: flex; gap: 10px; }

@media (max-width: 560px) {
  .card { padding: 16px 16px 14px; }
  .card-facts { grid-template-columns: 1fr; gap: 2px 0; }
  .card-facts dt { margin-top: 8px; font-size: 12px; }
  .card-foot { flex-direction: column; }
  .card-foot .btn { width: 100%; text-align: center; }
}

/* ---------- согласие, подвал, удаление аккаунта, юридические тексты ---------- */

.consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 16px; font-size: 13px; line-height: 1.45; color: var(--ink-soft);
  cursor: pointer;
}
.consent input { margin: 2px 0 0; accent-color: var(--stamp); flex: none; width: 16px; height: 16px; }
.consent a { color: var(--stamp); }
.keep-form .consent { flex: 1 1 100%; order: 3; margin: 4px 0 0; }

.foot {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--rule);
  font-size: 13px;
}
.foot a { color: var(--ink-quiet); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

details.danger { margin-top: 56px; font-size: 13px; }
details.danger summary {
  cursor: pointer; color: var(--ink-quiet); width: fit-content;
  list-style: none;
}
details.danger summary::-webkit-details-marker { display: none; }
details.danger summary:hover { text-decoration: underline; }
details.danger[open] summary { margin-bottom: 8px; }
details.danger .note { font-size: 13px; margin: 0 0 12px; }
.btn.danger {
  padding: 7px 14px; font-size: 13px; font-weight: 500;
  background: transparent; color: #A8332B;
  border: 1px solid var(--rule-firm); box-shadow: none;
}
.btn.danger:hover {
  background: #FBEDEC; border-color: #A8332B; box-shadow: none; transform: none;
}

.doc p, .doc li { font-size: 15px; color: var(--ink-soft); }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.doc h2 { margin-top: 32px; }
.doc .meta-line { font-family: var(--mono); font-size: 12px; color: var(--ink-quiet); }
