/* ============================================================
   White-label макет «Мой Дом» (демо). Зелёная тема партнёра.
   Рамка телефона — из ../device.css
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --g: #1f9d4d; --g-d: #178040; --ink: #1c1f24; --muted: #8a9099; --line: #eef1f4; --red: #e23b3b; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(1200px 700px at 50% -10%, #20242b, #0d0f12);
  min-height: 100vh; display: grid; place-items: center; padding: 26px 14px;
  color: var(--ink); -webkit-font-smoothing: antialiased;
}

/* экран приложения внутри рамки — размер по высоте окна, чтобы телефон всегда влезал */
.iphone { width: auto; height: min(880px, 94vh); }
.app { position: absolute; inset: 0; display: flex; flex-direction: column; height: 100%; background: #f2f4f6; z-index: 3; }

/* верхняя зелёная панель */
.appbar { background: var(--g); color: #fff; padding: 58px 16px 14px; display: flex; align-items: center; gap: 12px; flex: none; }
.appbar .ic-btn { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; flex: none; }
.appbar .ic-btn svg { width: 22px; height: 22px; }
.appbar .titles { flex: 1; min-width: 0; }
.appbar .titles .sub { font-size: 11.5px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .titles .ttl { font-size: 17px; font-weight: 700; }

.scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.scroll::-webkit-scrollbar { width: 0; }
.paybar { flex: none; }

.banner { background: #fff6da; color: #6b5600; border-radius: 12px; padding: 11px 13px; font-size: 12px; line-height: 1.4; margin-bottom: 14px; display: flex; gap: 9px; }
.banner.ok { background: #e8f8ee; color: #156c38; }
.banner svg { flex: none; margin-top: 1px; }

.sectitle { font-size: 16px; font-weight: 800; margin: 6px 2px 10px; display: flex; align-items: center; gap: 8px; }
.badge-new { font-size: 9.5px; font-weight: 800; color: #fff; background: var(--g); border-radius: 5px; padding: 2px 6px; letter-spacing: .03em; }

/* строка услуги */
.row { background: #fff; border-radius: 14px; padding: 13px; margin-bottom: 9px; display: flex; align-items: center; gap: 12px; box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.row .grow { flex: 1; min-width: 0; }
.row .nm { font-size: 13.5px; font-weight: 700; }
.row .ls { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.row .amt { font-size: 13.5px; font-weight: 800; color: var(--red); white-space: nowrap; }
.row .paid { font-size: 12.5px; font-weight: 700; color: var(--g); white-space: nowrap; }
.check { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #cfd6dd; flex: none; display: grid; place-items: center; cursor: pointer; transition: .15s; background: #fff; }
.check svg { opacity: 0; transition: .15s; }
.check.on { background: var(--g); border-color: var(--g); }
.check.on svg { opacity: 1; }

/* карточка страховки + ознакомление */
.ins-card { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: border-color .2s, box-shadow .2s; }
.ins-card.active { border-color: var(--g); box-shadow: 0 6px 18px rgba(31,157,77,.14); }
.ins-head { padding: 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.ins-head .grow { flex: 1; min-width: 0; }
.ins-head .nm { font-size: 14px; font-weight: 800; }
.ins-head .ds { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ins-head .pr { font-size: 14px; font-weight: 800; color: var(--ink); }
.ins-head .pr small { display: block; font-size: 10px; color: var(--muted); font-weight: 600; text-align: right; }
.chev { width: 18px; height: 18px; color: #b3bcc5; transition: transform .25s; flex: none; }
.ins-card.open .chev { transform: rotate(180deg); }

.ins-details { max-height: 0; overflow: hidden; transition: max-height .3s ease; background: #fafbfc; }
.ins-card.open .ins-details { max-height: 360px; }
.ins-details .inner { padding: 4px 14px 14px; }
.ins-details h5 { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 10px 0 9px; }
.cov-list { display: grid; gap: 8px; margin-bottom: 14px; }
.cov-list li { list-style: none; display: flex; gap: 9px; align-items: center; font-size: 12.5px; color: #2a2f36; }
.cov-list .ci { width: 18px; height: 18px; border-radius: 50%; background: #e7f8ee; color: var(--g); display: grid; place-items: center; flex: none; }
.sub-btn { width: 100%; border: none; background: var(--g); color: #fff; font-size: 14px; font-weight: 800; padding: 13px; border-radius: 12px; cursor: pointer; transition: .15s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sub-btn:active { transform: scale(.98); }
.ins-card.active .sub-btn { background: #e7f8ee; color: var(--g-d); }
.ins-note { font-size: 11px; color: var(--muted); text-align: center; margin: 10px 4px 2px; }

/* нижняя панель оплаты */
.paybar { padding: 12px 14px 16px; background: #f2f4f6; border-top: 1px solid var(--line); }
.paybtn { background: var(--g); color: #fff; border: none; width: 100%; padding: 15px; border-radius: 14px; font-size: 15.5px; font-weight: 800; cursor: pointer; transition: .15s; }
.paybtn:active { transform: scale(.99); }
.paynote { text-align: center; font-size: 11px; color: var(--muted); margin-top: 7px; }

/* ---------- профиль / документы ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 16px; }
.tile { background: #fff; border-radius: 15px; padding: 14px 6px; text-align: center; box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.tile .svc { margin: 0 auto 7px; }
.tile .tn { font-size: 11px; font-weight: 700; color: #374151; }
.tile.active { outline: 2px solid var(--g); outline-offset: -2px; }

.doc { background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 8px rgba(0,0,0,.05); display: flex; align-items: center; gap: 12px; }
.doc .grow { flex: 1; min-width: 0; }
.doc .dt { font-size: 13.5px; font-weight: 800; }
.doc .dm { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.doc .open-doc { font-size: 12px; font-weight: 700; color: var(--g); white-space: nowrap; display: flex; align-items: center; gap: 4px; }

.policy-card { background: linear-gradient(135deg, #1f9d4d, #137038); color: #fff; border-radius: 18px; padding: 16px; margin-bottom: 12px; position: relative; overflow: hidden; box-shadow: 0 10px 26px rgba(31,157,77,.28); }
.policy-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.08); }
.policy-card .pt { font-size: 11.5px; opacity: .88; }
.policy-card .pn { font-size: 17px; font-weight: 800; margin-top: 2px; }
.policy-card .meta { display: flex; gap: 16px; margin-top: 14px; }
.policy-card .meta .k { font-size: 10.5px; opacity: .82; } .policy-card .meta .v { font-size: 13px; font-weight: 700; margin-top: 2px; }
.policy-card .status { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.2); font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 980px; }
.note { font-size: 11.5px; color: var(--muted); text-align: center; padding: 6px 8px; }
.powered { text-align: center; font-size: 11px; color: var(--muted); margin-top: 12px; }
.powered b { color: var(--g-d); }
