@font-face { font-family: 'Golos Text'; font-weight: 400 700; font-display: swap; src: url(../fonts/GolosText-cyr.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 400 700; font-display: swap; src: url(../fonts/GolosText-lat.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Unbounded'; font-weight: 400 800; font-display: swap; src: url(../fonts/Unbounded-cyr.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 400 800; font-display: swap; src: url(../fonts/Unbounded-lat.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }

:root { --bg: #f6f3fb; --card: #fff; --ink: #251d33; --sub: #6f6680; --line: #e6e0ef; --accent: #6b4fa0; --accent-soft: #efe9f8; --ok: #2f7a55; --err: #b8452f; }
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Golos Text', system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
h1, h2 { font-family: 'Unbounded', 'Golos Text', sans-serif; letter-spacing: -.02em; line-height: 1.2; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.sub { color: var(--sub); font-size: 14px; }

.demo-bar { background: var(--ink); color: #e4dcef; font-size: 12px; text-align: center; padding: 7px 16px; }
.demo-bar b { color: #fff; }
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-top: 22px; padding-bottom: 18px; }
.top h1 { font-size: clamp(20px, 3vw, 28px); }
.mode { display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; }
.mode button { border: 0; background: none; padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.mode button[aria-pressed="true"] { background: var(--accent); color: #fff; }

.layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.card { background: var(--card); border-radius: 22px; padding: 22px; }
.card h2 { font-size: 18px; margin-bottom: 14px; }
.steps { list-style: none; display: flex; gap: 6px; margin-bottom: 20px; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; font-size: 13px; color: var(--sub); padding: 6px 10px; border-radius: 99px; background: var(--bg); }
.steps li::before { content: counter(s) '. '; }
.steps li.now { background: var(--accent); color: #fff; font-weight: 600; }
.steps li.done { color: var(--ok); }
.steps li.done::before { content: '✓ '; }

.list { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: none; cursor: pointer; transition: border-color .15s, background-color .15s; }
.opt:hover, .opt:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.opt b { font-weight: 600; }
.opt span { grid-column: 1; color: var(--sub); font-size: 13px; }
.opt strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-variant-numeric: tabular-nums; }

.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: thin; }
.dchip { flex: none; width: 54px; padding: 8px 0; border: 1.5px solid var(--line); border-radius: 14px; background: none; display: grid; gap: 2px; cursor: pointer; }
.dchip small { color: var(--sub); font-size: 12px; }
.dchip b { font-size: 18px; font-variant-numeric: tabular-nums; }
.dchip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.dchip[aria-pressed="true"] small { color: #e4dcf5; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; margin-top: 12px; }
.tchip { padding: 10px 0; border: 1.5px solid var(--line); border-radius: 12px; background: none; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.tchip:hover, .tchip:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }

.form { display: grid; gap: 10px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--sub); }
.field input { height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font-size: 16px; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--accent); }
.consent { display: flex; gap: 10px; font-size: 13px; color: var(--sub); }
.consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.error { color: var(--err); font-size: 14px; min-height: 1.2em; }
.btn { min-height: 48px; padding: 0 20px; border-radius: 14px; border: 0; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.btn.ghost { background: none; border: 1.5px solid var(--line); color: var(--ink); }
.btn.wide { width: 100%; }
.nav { margin-top: 16px; }
.done-box { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 10px 0; }
.ok { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 26px; font-weight: 700; }
.row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.side h2 { font-size: 15px; margin-bottom: 10px; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; margin-bottom: 20px; }
.summary dt { color: var(--sub); }
.mine-h { padding-top: 16px; border-top: 1px solid var(--line); }
.mine { list-style: none; display: grid; gap: 8px; }
.mine li { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 14px; }
.mine span { display: grid; }
.mine small { color: var(--sub); font-size: 12px; }
.link { border: 0; background: none; color: var(--err); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.master-head { display: grid; gap: 10px; margin-bottom: 16px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: none; border-radius: 99px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.day { list-style: none; display: grid; gap: 6px; }
.day li { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 14px; }
.day li b { font-variant-numeric: tabular-nums; }
.day li em { grid-column: 2; font-style: normal; font-size: 12px; color: var(--ok); font-weight: 600; }
.day li.new { background: #e3f3ea; }
.day li.empty { display: block; color: var(--sub); }
.note { margin-top: 14px; }

dialog { border: 0; border-radius: 22px; padding: 22px; width: calc(100% - 24px); max-width: 420px; }
dialog::backdrop { background: rgba(37, 29, 51, .45); }
dialog h2 { font-size: 18px; margin-bottom: 8px; }
.tg { background: #eef3f6; border-radius: 14px; padding: 12px 14px; font-size: 14px; white-space: pre-wrap; margin: 12px 0 16px; }

.foot { padding-top: 26px; padding-bottom: 24px; }
.credit { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 13px; color: #d9d0e8; background: var(--ink); padding: 10px 14px; border-radius: 14px; }
.credit img { width: 150px; height: auto; display: block; }

@media (max-width: 800px) { .layout { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .card { padding: 18px; } .day li { grid-template-columns: 1fr; } .day li em { grid-column: 1; } }
