/* Вариант А «Светлый и спокойный» (выбор Азрета 12.11): зелёный и жёлтый из презентаций,
   крупный шрифт, одна колонка, каждая цифра — своей строкой, большие кнопки. */
:root {
  --green: #2E6642; --green-dark: #235034; --green-soft: #EDF4EF; --on-green: #DCE9DF;
  --yellow: #FFD300; --yellow-soft: #FFF6C2;
  --ink: #1F3A2A; --muted: #4F6A5A; --line: #C9DCCF; --bg: #FFFFFF; --page: #F4F7F5;
  --bad: #B3261E; --good: #22663A;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink);
  font: 19px/1.45 "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--green); }
h1 { font-size: 26px; margin: 0; line-height: 1.25; }
h2 { font-size: 22px; margin: 0; }
p { margin: 0; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* шапка и меню */
.top { background: var(--green); color: #fff; padding: 14px 16px 0; }
.top .in { max-width: 760px; margin: 0 auto; }
.top .row1 { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.brand { color: #fff; font-weight: 700; font-size: 21px; text-decoration: none; }
.who { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; color: var(--on-green); }
.who button { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; padding: 6px 0; font-size: 16px; }
.menu { display: flex; gap: 6px; }
.menu a { flex: 1; text-align: center; padding: 12px 4px; font-size: 18px; font-weight: 600; text-decoration: none;
  color: var(--on-green); border-radius: 12px 12px 0 0; }
.menu a.on { background: var(--page); color: var(--green); }

main { max-width: 760px; margin: 0 auto; padding: 18px 16px 48px; display: grid; gap: 16px; }

/* блоки */
.box { background: var(--bg); border: 2px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 8px; min-width: 0; }
.label { font-size: 17px; color: var(--muted); }
.big { font-size: 36px; font-weight: 800; color: var(--green); letter-spacing: -.5px; line-height: 1.15; }
.split { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.split b { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 16px; }
.num { font-variant-numeric: tabular-nums; }

.btn, button.primary { display: block; width: 100%; text-align: center; background: var(--green); color: #fff; font-weight: 700;
  font-size: 20px; padding: 16px; border-radius: 14px; border: 0; text-decoration: none; cursor: pointer; }
.btn.alt { background: var(--bg); color: var(--green); border: 2px solid var(--green); }
button.primary:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }

.ok, .warn, .flash { border-radius: 14px; padding: 14px 16px; font-weight: 700; display: block; text-decoration: none; }
.ok, .flash { background: var(--green-soft); border: 2px solid var(--green); color: var(--green); }
.warn { background: var(--yellow-soft); border: 2px solid var(--yellow); color: var(--ink); }
.error { color: var(--bad); font-weight: 600; }

/* строки «название — сумма» */
.rows { display: grid; }
.r { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.r:last-child { border-bottom: 0; }
.r .n { font-weight: 700; font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.r small { display: block; font-size: 15px; color: var(--muted); }
.r.sub { background: var(--green-soft); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.r.sum { font-weight: 800; }
.r.sum small { font-weight: 400; }
.nw { white-space: nowrap; }
.r.head { font-size: 16px; color: var(--muted); padding: 14px 0 6px; font-weight: 600; }
a.r { color: inherit; text-decoration: none; }
a.r:hover .name { text-decoration: underline; }
.tag { display: inline-block; font-size: 15px; padding: 2px 10px; border-radius: 99px; background: var(--green-soft); color: var(--muted); white-space: nowrap; }
.tag.ok { padding: 2px 10px; border: 0; display: inline-block; font-weight: 600; }
.tag.warn { padding: 2px 10px; border: 0; display: inline-block; font-weight: 600; background: var(--yellow-soft); }

/* день */
.daynav { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.daynav h1 { text-align: center; font-size: 23px; }
.arrow { font-size: 30px; line-height: 1; color: var(--green); border: 2px solid var(--green); border-radius: 12px;
  width: 54px; height: 54px; display: grid; place-items: center; text-decoration: none; flex: none; background: var(--bg); }
.arrow:not([href]) { visibility: hidden; }
.status { text-align: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.review { background: var(--yellow-soft); border-left: 6px solid var(--yellow); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; }
.review code { font-family: Consolas, monospace; font-size: 17px; }

details.box > summary { cursor: pointer; font-size: 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.box > summary::after { content: "показать ▾"; font-size: 16px; font-weight: 400; color: var(--green); white-space: nowrap; }
details.box[open] > summary::after { content: "скрыть ▴"; }
details.box > summary::-webkit-details-marker { display: none; }

.pair { display: grid; gap: 4px; padding: 10px 8px; border-bottom: 1px solid var(--line); border-radius: 8px; }
.pair .word { font: 16px/1.45 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.pair.bare .word { font-weight: 700; }
.pair.bare { border-bottom: 0; padding-top: 14px; }
.pair.hl { background: var(--yellow-soft); }
.pair .op { display: grid; gap: 2px; font-size: 16px; color: var(--muted); }
.pair .op b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pair .q { color: var(--ink); font-weight: 700; }

/* формы */
form.box { gap: 14px; }
label { display: grid; gap: 6px; font-size: 18px; }
input, select { width: 100%; padding: 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font-size: 19px; }
.narrow { max-width: 440px; width: 100%; margin: 24px auto; }

/* выбор месяца и режимы */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 10px 16px; border-radius: 12px; border: 2px solid var(--green); color: var(--green); text-decoration: none; font-weight: 600; font-size: 17px; background: var(--bg); }
.chips a.on { background: var(--green); color: #fff; }

/* сравнение */
.c { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.c:last-child { border-bottom: 0; }
.c .name { font-weight: 600; }
.c small { display: block; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.c .d { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.c .d b { display: block; font-size: 20px; }
.c.bold .name { font-weight: 800; }
.up { color: var(--good); }
.down { color: var(--bad); }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick .full { grid-column: 1 / -1; }

@media (max-width: 480px) {
  body { font-size: 18px; }
  .big { font-size: 32px; }
  .pick { grid-template-columns: 1fr; }
  .menu a { font-size: 17px; }
}
