:root{--navy: #0a2a43;--navy-soft: #16405f;--orange: #ff7a00;--orange-dark: #c95e00;--bg: #f5f6fa;--card: #ffffff;--text: #1c2733;--muted: #5a6675;--border: #e1e5ec;--danger: #c8102e;--danger-soft: #fdecef;--info-soft: #eef4fb;--success: #12703f;--radius: 12px;--topbar-height: 64px;--tabbar-height: 62px}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;line-height:1.5}h1,h2,p{margin:0}a{color:var(--navy-soft)}button,input{font:inherit}:focus-visible{outline:3px solid var(--orange);outline-offset:2px}small{display:block;color:var(--muted);font-size:14px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.muted{color:var(--muted)}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius)}.button{min-height:44px;padding:10px 18px;border:1px solid var(--orange-dark);border-radius:10px;background:var(--orange-dark);color:#fff;font-weight:600;cursor:pointer}.button:hover:not(:disabled){background:#ad5100}.button:disabled{opacity:.6;cursor:default}.button-block{width:100%}.button-secondary{background:var(--navy);border-color:var(--navy)}.button-secondary:hover:not(:disabled){background:var(--navy-soft)}.button-ghost{background:transparent;border-color:var(--border);color:var(--text)}.button-ghost:hover:not(:disabled){background:var(--bg)}.button-danger{background:var(--danger);border-color:var(--danger)}.button-danger:hover:not(:disabled){background:#a30d25}.button-ghost-danger{background:transparent;border-color:var(--danger);color:var(--danger)}.button-ghost-danger:hover:not(:disabled){background:var(--danger-soft)}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:10px;background:transparent;color:var(--muted);cursor:pointer}.icon-button:hover{background:var(--bg)}.icon-button-danger{color:var(--danger)}.icon-button-danger:hover{background:var(--danger-soft)}.link-button{padding:0;border:0;background:none;color:var(--navy-soft);text-decoration:underline;cursor:pointer}.link-button:disabled{color:var(--muted);text-decoration:none;cursor:default}.field{display:block;margin-bottom:14px}.field>span:first-child{display:block;margin-bottom:4px;font-size:14px;font-weight:600}.field input{width:100%;min-height:44px;padding:9px 12px;border:1px solid #b8c1cd;border-radius:10px;background:#fff;color:var(--text);font-size:16px}.password{display:flex;gap:4px}.check{display:flex;align-items:center;gap:8px;min-height:44px;margin-bottom:10px;cursor:pointer}.check input{width:20px;height:20px;accent-color:var(--orange-dark)}.form-error{margin-bottom:14px;color:var(--danger);font-size:15px;white-space:pre-line}.auth{display:flex;justify-content:center;min-height:100dvh;padding:40px 16px;background:var(--navy)}.auth-inner{width:100%;max-width:400px;margin:auto 0}.auth-logo{display:block;width:200px;max-width:70%;height:auto;margin:0 auto 24px}.auth-card{padding:24px}.auth-title{font-size:24px;line-height:1.25}.auth-subtitle{margin:6px 0 18px;color:var(--muted);font-size:15px}.auth-links{display:flex;justify-content:space-between;gap:12px;margin-top:16px;font-size:15px}.auth-links-center{justify-content:center}.auth-footer{display:block;width:fit-content;margin:20px auto 0;color:#d6e0ea;font-size:14px}.topbar{position:sticky;top:0;z-index:5;background:var(--navy)}.topbar-inner{display:flex;align-items:center;justify-content:space-between;max-width:760px;height:var(--topbar-height);margin:0 auto;padding:0 16px}.topbar-logo{width:auto;height:40px}.topnav{display:flex;gap:6px}.topnav a{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border-radius:10px;color:#d6e0ea;font-weight:600;text-decoration:none}.topnav a:hover{background:var(--navy-soft)}.topnav a.active{background:var(--navy-soft);color:#fff}.tabbar{display:none}.page{max-width:760px;margin:0 auto;padding:24px 16px 40px}.page-header{display:flex;align-items:center;gap:8px;margin-bottom:16px}.page-header h1{font-size:22px;line-height:1.3}.back-link{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-left:-10px;border-radius:10px;color:var(--text)}.back-link:hover{background:#e9ecf2}.section-title{margin:26px 0 10px;font-size:18px;line-height:1.3}.section-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0 10px}.section-header .section-title{margin:0}.hero{padding:22px;border-top:4px solid var(--orange)}.hero-period{color:var(--muted);font-weight:600}.hero-amount{margin:2px 0 6px;font-size:36px;font-weight:700;line-height:1.2;overflow-wrap:anywhere}.hero-date{color:var(--muted)}.hero-link{display:inline-block;padding:12px 0 2px;color:var(--orange-dark);font-weight:600}.invoice-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;padding:14px 16px;color:inherit;text-decoration:none}a.invoice-row:hover{border-color:#b8c1cd}.invoice-amount{flex:none;font-weight:700}.empty{max-width:480px;margin:56px auto;color:var(--muted);text-align:center}.empty p{margin-bottom:16px}.dealer-logo{display:block;max-width:200px;max-height:90px;margin:0 auto 16px;object-fit:contain}.collapsible{margin-bottom:10px;overflow:hidden}.collapsible-header{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:54px;padding:12px 16px;border:0;background:none;color:var(--text);font-weight:600;text-align:left;cursor:pointer}.collapsible-header:hover{background:#fafbfc}.collapsible-header:focus-visible{outline-offset:-3px}.collapsible-header svg{flex:none;color:var(--muted)}.collapsible-content{padding:2px 16px 14px;border-top:1px solid var(--border)}.row{display:flex;justify-content:space-between;gap:20px;padding:9px 0;border-bottom:1px solid #eef0f4}.row:last-child{border-bottom:0}.row>span{color:var(--muted)}.row>strong{font-weight:600;text-align:right;overflow-wrap:anywhere}.meters{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px;padding-top:12px}.meter{padding:4px 12px;border:1px solid var(--border);border-radius:10px;background:#fbfcfd}.card-text{padding-top:12px;white-space:pre-line;overflow-wrap:anywhere}.card-text-warningDanger,.card-text-warningInfo{margin-top:12px;padding:12px;border-radius:10px}.card-text-warningDanger{background:var(--danger-soft);color:#8f0b21}.card-text-warningInfo{background:var(--info-soft)}.spinner{width:36px;height:36px;margin:60px auto;border:4px solid var(--border);border-top-color:var(--orange-dark);border-radius:50%;animation:spin .8s linear infinite}.profile{padding:8px 16px 16px}.profile-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;padding-top:12px}.apartment{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;padding:12px 8px 12px 16px}.dialog{width:calc(100% - 32px);max-width:420px;padding:22px;border:0;border-radius:14px;color:var(--text)}.dialog::backdrop{background:#0a2a4399}.dialog-title{margin-bottom:14px;font-size:20px;line-height:1.3}.dialog-text{margin-bottom:18px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.toasts{position:fixed;right:0;bottom:20px;left:0;z-index:20;display:flex;flex-direction:column;align-items:center;gap:8px;padding:0 16px;pointer-events:none}.toast{max-width:440px;padding:12px 16px;border-radius:10px;background:var(--success);color:#fff;box-shadow:0 6px 20px #0a2a4340}.toast-error{background:var(--danger)}.skeleton{border-radius:8px;background:linear-gradient(90deg,#e8ebf0 25%,#f3f5f8,#e8ebf0 75%);background-size:200% 100%;animation:shimmer 1.4s linear infinite}.skeleton-title{width:40%;height:18px}.skeleton-amount{width:55%;height:38px;margin:12px 0}.skeleton-line{width:70%;height:16px}@keyframes shimmer{to{background-position:-200% 0}}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.skeleton,.spinner{animation:none}}@media(max-width:640px){.topbar-inner{justify-content:center}.topnav{display:none}.page{padding:16px 16px calc(var(--tabbar-height) + 24px + env(safe-area-inset-bottom))}.tabbar{position:fixed;right:0;bottom:0;left:0;z-index:5;display:flex;padding-bottom:env(safe-area-inset-bottom);background:var(--navy)}.tabbar a{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;min-height:var(--tabbar-height);color:#b9c6d3;font-size:13px;font-weight:600;text-decoration:none}.tabbar a.active{color:#fff}.toasts{bottom:calc(var(--tabbar-height) + 12px + env(safe-area-inset-bottom))}.hero-amount{font-size:32px}.profile-actions .button{flex:1}}
