:root {
    color-scheme: light;

    --bg: #F4F5F2;
    --surface: #FFFFFF;
    --surface-2: #EEF0EB;
    --surface-glass: rgba(255, 255, 255, .88);

    --ink: #151A17;
    --ink-2: #5C665F;
    --ink-3: #8B948D;

    --line: #E3E6E0;
    --line-strong: #D3D9D1;

    --accent: #1F6F5C;
    --accent-ink: #FFFFFF;
    --accent-soft: #E1EFEA;

    --ok: #2C7A57;
    --ok-soft: #E6F2EC;
    --warn: #A96A00;
    --warn-soft: #FBF0DC;
    --danger: #B23A3A;
    --danger-soft: #F9E7E7;
    --danger-line: #EFC9C7;

    --radius: 18px;
    --shadow: 0 1px 2px rgba(20, 30, 25, .05), 0 6px 20px rgba(20, 30, 25, .05);

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;

        --bg: #0E1210;
        --surface: #161B18;
        --surface-2: #1D2521;
        --surface-glass: rgba(22, 27, 24, .88);

        --ink: #E9EDE9;
        --ink-2: #A7B1AB;
        --ink-3: #7C8881;

        --line: #29322C;
        --line-strong: #3A463E;

        --accent: #57C7A3;
        --accent-ink: #052018;
        --accent-soft: #17332B;

        --ok: #63C79A;
        --ok-soft: #152C22;
        --warn: #E0A24C;
        --warn-soft: #2E2417;
        --danger: #E5766F;
        --danger-soft: #2E1917;
        --danger-line: #4A2724;

        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 26px rgba(0, 0, 0, .32);
    }
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
}

body {
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
}

h1, h2, h3 {
    margin: 0;
}

a {
    color: var(--accent);
}

/* ---------- каркас ---------- */

.app {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 16px calc(92px + env(safe-area-inset-bottom));
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 18px;
}

.page-head h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.035em;
}

.head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.head-left > div:last-child {
    min-width: 0;
}

.head-left h1,
.page-head h1.h-sm {
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub {
    margin: 3px 0 0;
    font-size: 13.5px;
    color: var(--ink-2);
}

.section-title {
    margin: 24px 0 10px;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.boot {
    padding: 80px 0;
    text-align: center;
    color: var(--ink-3);
    font-size: 14px;
}

.boot-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--bg);
}

.boot-mark {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--accent);
    color: var(--accent-ink);
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 700;
    animation: pulse 1.6s ease-in-out infinite;
}

.boot-text {
    font-size: 13.5px;
    color: var(--ink-3);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(.94); opacity: .75; }
}

/* ---------- таббар ---------- */

.tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
}

.tabbar-inner {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px 6px;
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 5px 2px 4px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink-3);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: -.01em;
    transition: color .15s;
}

.tab .ic {
    width: 22px;
    height: 22px;
}

.tab.active {
    color: var(--accent);
}

.tab.active .ic {
    stroke-width: 2;
}

/* ---------- показатели ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 11px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.stat-k {
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.stat-v {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -.02em;
}

.neg { color: var(--danger); }
.pos { color: var(--ok); }

/* ---------- списки и плитки ---------- */

.list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left-width: 3px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform .12s ease;
}

.tile:active {
    transform: scale(.99);
}

.tile--planned { border-left-color: var(--line-strong); }
.tile--done { border-left-color: var(--ok); }
.tile--cancelled { border-left-color: var(--warn); opacity: .72; }

.tile-time {
    flex: none;
    width: 48px;
}

.tile-h {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.tile-m {
    font-size: 10.5px;
    color: var(--ink-3);
    font-weight: 600;
}

.tile-body {
    flex: 1;
    min-width: 0;
}

.tile-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tile-meta {
    font-size: 12.5px;
    color: var(--ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tile-status {
    flex: none;
    font-size: 12px;
    font-weight: 650;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.tile--done .tile-status { color: var(--ok); }
.tile--planned .tile-status { color: var(--ink-2); }
.tile--cancelled .tile-status { color: var(--warn); }

.row-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    cursor: pointer;
}

.row-item--flat {
    box-shadow: none;
    cursor: default;
}

.avatar {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.row-main {
    flex: 1;
    min-width: 0;
}

.row-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-sub {
    font-size: 12.5px;
    color: var(--ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.balance {
    flex: none;
    font-size: 14px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

/* ---------- пустые состояния ---------- */

.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 42px 22px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: 20px;
}

.empty-ic {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 4px;
}

.empty-t {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -.01em;
}

.empty-s {
    max-width: 290px;
    font-size: 13.5px;
    color: var(--ink-2);
}

.empty .btn {
    margin-top: 10px;
}

.day-empty {
    padding: 8px 14px;
    margin-left: 4px;
    border-left: 2px dashed var(--line-strong);
    font-size: 13px;
    color: var(--ink-3);
}

/* ---------- неделя ---------- */

.weeknav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.weeknav-title {
    flex: 1;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}

.day {
    margin-bottom: 16px;
}

.day-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 2px 2px 8px;
}

.day-name {
    font-size: 13.5px;
    font-weight: 650;
    text-transform: capitalize;
}

.day--today .day-name {
    color: var(--accent);
}

.day-date {
    font-size: 12.5px;
    color: var(--ink-3);
}

.day-sum {
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 650;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}

/* ---------- кнопки ---------- */

.icon-btn {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.icon-btn--accent {
    border-color: transparent;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 24px;
    font-weight: 300;
    box-shadow: 0 6px 18px rgba(31, 111, 92, .26);
}

.btn {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 14px;
    background: var(--surface-2);
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .1s ease, opacity .15s ease;
}

.btn:active {
    transform: scale(.985);
}

.btn:disabled {
    opacity: .45;
    cursor: default;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 6px 18px rgba(31, 111, 92, .22);
}

.btn-soft {
    background: var(--accent-soft);
    color: var(--accent);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-2);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger-ghost {
    background: transparent;
    border: 1px solid var(--danger-line);
    color: var(--danger);
}

.btn-on-color {
    align-self: flex-start;
    width: auto;
    margin-top: 10px;
    padding: 10px 16px;
    font-size: 14px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
}

.balance-card .btn-on-color {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.danger-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--danger-line);
    border-radius: 14px;
    background: var(--danger-soft);
    font-size: 13.5px;
}

/* ---------- формы ---------- */

.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field label {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-2);
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color .15s, background .15s;
}

.input:focus {
    border-color: var(--accent);
    background: var(--surface);
}

.input--sm {
    padding: 9px 6px;
    text-align: center;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.input--xs {
    width: 68px;
    padding: 7px 8px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.input--title {
    padding: 6px 0;
    border-color: transparent;
    background: transparent;
    font-size: 16px;
    font-weight: 650;
}

textarea.input {
    resize: vertical;
    line-height: 1.4;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.chip.on {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.hint {
    font-size: 12.5px;
    color: var(--ink-3);
}

.error {
    font-size: 13px;
    font-weight: 500;
    color: var(--danger);
}

.preview {
    padding: 12px 13px;
    border-radius: 13px;
    background: var(--surface-2);
    font-size: 13.5px;
    color: var(--ink-2);
}

.notice {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
}

.inline-input {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ink-2);
    font-size: 13px;
}

/* ---------- карточки ---------- */

.card {
    margin-bottom: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-head {
    margin-bottom: 6px;
}

.card .field,
.card .field-row {
    margin-bottom: 12px;
}

.card .field:last-child,
.card .field-row:last-child {
    margin-bottom: 0;
}

.card > .btn,
.card > .stack {
    margin-top: 12px;
}

.day-free-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 2px;
    border-bottom: 1px solid var(--line);
}

.day-free-row .day-name {
    font-size: 13px;
}

.day-free-row.is-today .day-name {
    color: var(--accent);
}

.day-free {
    margin-left: auto;
    font-size: 12px;
    color: var(--ink-3);
}

.kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.kv:last-of-type {
    border-bottom: none;
}

.balance-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-2);
}

.balance-card.neg {
    background: var(--danger-soft);
    border-color: var(--danger-line);
}

.balance-card.pos {
    background: var(--ok-soft);
    border-color: transparent;
}

.bc-k {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.bc-v {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
}

.money-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.money-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.money-card--neg {
    background: var(--danger-soft);
    border-color: var(--danger-line);
}

.money-card--pos {
    background: var(--ok-soft);
    border-color: transparent;
}

.mc-k {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.mc-v {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

/* ---------- прайс ---------- */

.matrix-wrap {
    overflow-x: auto;
    margin: 0 -4px;
    padding: 0 4px;
}

.matrix {
    width: 100%;
    border-collapse: separate;
    border-spacing: 6px;
}

.matrix th {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-3);
    text-align: center;
    white-space: nowrap;
}

.matrix th:first-child {
    width: 36%;
    text-align: left;
}

.matrix td {
    padding: 0;
}

.matrix td .input {
    min-width: 72px;
}

/* ---------- нижняя панель ---------- */

.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(10, 16, 13, .42);
    animation: fade .18s ease;
}

.sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 41;
    width: min(720px, 100%);
    max-height: 88dvh;
    overflow-y: auto;
    padding: 6px 18px calc(22px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .2);
    transform: translateX(-50%);
    animation: sheet-up .24s cubic-bezier(.22, .9, .3, 1);
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes sheet-up {
    from { transform: translate(-50%, 42px); opacity: .5; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.grip {
    width: 38px;
    height: 4px;
    margin: 8px auto 12px;
    border-radius: 99px;
    background: var(--line-strong);
}

.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.sheet-head h2 {
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -.02em;
}

.sheet-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.pill {
    padding: 5px 11px;
    border-radius: 99px;
    background: var(--surface-2);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
}

.pill--muted {
    color: var(--ink-3);
    background: transparent;
    border: 1px dashed var(--line-strong);
}

.p-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p-row {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-2);
}

.p-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.p-name {
    font-size: 14.5px;
    font-weight: 600;
}

.p-price {
    font-size: 13px;
    font-weight: 650;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}

.seg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 9px;
}

.seg-btn {
    padding: 9px 4px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--ink-2);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.seg-btn.on {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.seg-btn.on--ok {
    background: var(--ok-soft);
    border-color: var(--ok);
    color: var(--ok);
}

.seg-btn.on--bad {
    background: var(--danger-soft);
    border-color: var(--danger);
    color: var(--danger);
}

.seg-btn.on--warn {
    background: var(--warn-soft);
    border-color: var(--warn);
    color: var(--warn);
}

.p-explain {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--ink-3);
}

.p-amount {
    font-weight: 650;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}

.charged-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--ok-soft);
    font-size: 13.5px;
    color: var(--ink-2);
}

.charged-total strong {
    font-size: 16px;
    color: var(--ok);
    font-variant-numeric: tabular-nums;
}

/* ---------- служебное ---------- */

.file-label {
    position: relative;
    display: block;
}

.file-label .btn {
    pointer-events: none;
}

.file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.footnote {
    margin: 18px 4px 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ink-3);
}

.btn:focus-visible,
.chip:focus-visible,
.seg-btn:focus-visible,
.icon-btn:focus-visible,
.tab:focus-visible,
.input:focus-visible,
.weeknav-title:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

#blazor-error-ui {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--danger);
    color: #fff;
    font-size: 14px;
}

#blazor-error-ui .reload {
    margin-left: 8px;
    color: #fff;
    font-weight: 650;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 10px;
    right: 14px;
    cursor: pointer;
}

@media (max-width: 360px) {
    .stat {
        padding: 9px 9px;
    }

    .stat-k {
        font-size: 9.5px;
    }

    .stat-v {
        font-size: 15px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }
}

.row .btn {
    flex: 1;
}

.move-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
}

.move-box .field-row {
    margin-bottom: 0;
}

.avatar--muted {
    background: var(--surface-2);
    color: var(--ink-3);
}

/* ---------- лендинг ---------- */

.app--landing {
    max-width: 680px;
    padding-bottom: 40px;
}

.hero {
    text-align: center;
    padding: 28px 8px 8px;
}

.hero-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 20px;
    background: var(--accent);
    color: var(--accent-ink);
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.hero-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -.04em;
}

.hero-sub {
    max-width: 430px;
    margin: 10px auto 0;
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--ink-2);
}

.hero-actions {
    display: flex;
    justify-content: center;
    margin: 22px 0 30px;
}

.hero-actions .btn {
    width: auto;
    min-width: 230px;
    padding: 15px 24px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 26px;
}

.feature {
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-title {
    font-size: 14.5px;
    font-weight: 650;
    margin-bottom: 6px;
}

.feature-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-2);
    margin: 0 0 10px;
}

.landing-note .feature-text {
    margin-bottom: 4px;
}

.landing-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-3);
}

.landing-footer p {
    margin: 3px 0;
}

/* ---------- вход ---------- */

.auth-wrap {
    max-width: 380px;
    margin: 8vh auto 0;
}

.auth-back {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--ink-3);
    text-decoration: none;
}

.auth-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: 4px;
}

.auth-form {
    margin-top: 20px;
}

.auth-form .hint {
    margin: 4px 0 0;
    line-height: 1.5;
}

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

    .hero-title {
        font-size: 30px;
    }
}
/* FocusOnNavigate ставит фокус на h1 для скринридеров — визуальную рамку убираем */
[tabindex="-1"]:focus {
    outline: none;
}