/* личный кабинет и общие блоки страниц-приложений */
.kab { padding-block: clamp(26px, 5vh, 56px) clamp(60px, 10vh, 120px); min-height: 70svh; }
.kab__load { display: grid; place-items: center; padding: 120px 0; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--sky-2); border-top-color: var(--accent); animation: sp 1s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.kab__hi { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kab__hi h1 { font: 400 clamp(36px, 5vw, 64px)/1.03 var(--serif); letter-spacing: -.025em; }
.kab__hi p { margin-top: 10px; color: var(--ink-2); }
.kab__grid { margin-top: clamp(24px, 4vh, 40px); display: grid; grid-template-columns: 1fr 380px; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .kab__grid { grid-template-columns: 1fr; } }
.panel { padding: clamp(18px, 2vw, 26px); border-radius: var(--r-xl); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.panel + .panel { margin-top: 14px; }
.panel h2 { font: 400 28px/1.1 var(--serif); letter-spacing: -.015em; }
.panel h2 + p { margin-top: 6px; color: var(--mute); font-size: 14px; }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

/* приглашение и карта «Баланс» */
.invite { position: relative; overflow: hidden; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-xl); background: var(--accent); color: #fff; }
.invite::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.28), transparent); }
.invite .chip { background: rgba(255,255,255,.16); color: #fff; }
.invite h2 { margin-top: 14px; font: 400 clamp(28px, 3vw, 38px)/1.08 var(--serif); }
.invite p { margin-top: 10px; color: rgba(255,255,255,.82); max-width: 520px; }
.invite .big { margin-top: 16px; font: 400 56px/1 var(--serif); }
.invite .big small { font: 500 16px/1 var(--sans); opacity: .8; margin-left: 6px; }
.invite .btn { margin-top: 20px; background: #fff; color: var(--accent-ink); position: relative; z-index: 1; }
.invite .btn:hover { background: var(--ink); color: #fff; }
.card-bal { position: relative; aspect-ratio: 1.6; border-radius: 22px; padding: 20px; background: linear-gradient(135deg, #0B6BE8, #003C8F 70%); color: #fff; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(0,40,110,.8); }
.card-bal::after { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 85% 125%, rgba(255,255,255,.08) 0 2px, transparent 2px 14px); }
.card-bal .t { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.card-bal img { height: 22px; }
.card-bal .nm { font: 600 13px/1 var(--sans); letter-spacing: .14em; }
.card-bal .sum { position: relative; z-index: 1; font: 400 44px/1 var(--serif); }
.card-bal .sum small { font: 500 14px/1 var(--sans); opacity: .75; margin-left: 6px; }
.card-bal .no { position: relative; z-index: 1; display: flex; justify-content: space-between; font: 500 13px/1 var(--sans); letter-spacing: .1em; opacity: .85; }
.bal-note { margin-top: 12px; font-size: 13px; color: var(--mute); line-height: 1.5; }
.card-bal.is-empty { background: linear-gradient(135deg, #C9D6EC, #A9BCDB); color: var(--ink); }

/* брони */
.bk { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.bk:first-of-type { border-top: 0; }
.bk img { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; }
.bk h4 { font: 500 16px/1.25 var(--sans); }
.bk p { margin-top: 4px; font-size: 13.5px; color: var(--mute); }
.st { display: inline-flex; height: 24px; align-items: center; padding: 0 10px; border-radius: var(--pill); font: 500 12px/1 var(--sans); background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.st.new { background: #FBEBD8; color: var(--warn); }
.st.confirmed { background: var(--sky); color: var(--accent-ink); }
.st.stay { background: var(--accent); color: #fff; }
.st.done { background: #DDF2E8; color: var(--ok); }
.st.cancelled { background: #F6DEDE; color: #B23A3A; }

/* «Ваш дом» */
.yh__tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.yh__tabs button { height: 34px; padding: 0 14px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line-2); font: 500 13px/1 var(--sans); color: var(--ink-2); }
.yh__tabs button.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.yh__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pi { display: flex; flex-direction: column; padding: 10px; border-radius: var(--r-l); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.pi .im { aspect-ratio: 4 / 3; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.pi .im img { width: 86%; height: 86%; object-fit: contain; }
.pi .sl { margin-top: 10px; font-size: 12px; color: var(--accent); font-weight: 500; }
.pi .nm { margin-top: 3px; font: 500 13.5px/1.3 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pi .row { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pi .pp { font: 600 15px/1 var(--sans); }
.pi .add { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 18px; transition: transform .3s var(--e), background .2s; }
.pi .add:hover { background: var(--accent-ink); transform: scale(1.08); }
.pi .lnk { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.sols { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.sol { padding: 16px; border-radius: var(--r-l); background: var(--ink); color: #fff; display: flex; flex-direction: column; }
.sol h4 { font: 400 22px/1.1 var(--serif); }
.sol p { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.45; flex: 1; }
.sol .btn { margin-top: 12px; }

/* заявки и лента */
.ld { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.ld:first-of-type { border-top: 0; }
.ld b { font: 500 14.5px/1.3 var(--sans); }
.ld small { display: block; color: var(--mute); font-size: 12.5px; margin-top: 3px; }
.feed li { position: relative; padding: 0 0 14px 22px; font-size: 13.5px; color: var(--ink-2); }
.feed li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.feed li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--line-2); }
.feed li:last-child::after { display: none; }
.feed small { display: block; color: var(--mute); font-size: 12px; margin-top: 2px; }

.gate { max-width: 560px; margin: 8vh auto 0; text-align: center; }
.gate h1 { font: 400 clamp(36px, 5vw, 56px)/1.05 var(--serif); }
.gate p { margin-top: 14px; color: var(--ink-2); }
.gate .btn { margin-top: 26px; }
