/* Оформлення як у нативному застосунку iPhone (головна, шапка, нижнє меню). Підключається після app.css. */
:root{--ios-yellow:#f5c600;--ios-ink:#202321;--ios-bg:#f5f5f1;--ios-brown:#a5651f;--ios-gray:#8a8b86}
body{background:var(--ios-bg);padding-bottom:104px}
/* шапка */
header{background:#fff;border-bottom:0;box-shadow:none}
header>div{max-width:680px;padding:10px 18px;gap:10px}
header img{width:150px}
header .header-icon,header #role,header #account-link{min-height:44px;border-radius:999px}
header #language{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #e6e7e1;box-shadow:0 4px 14px #0000000d;padding:6px 14px;font-weight:700;color:var(--ios-ink)}
header #language svg{width:20px;height:20px}
header #role,header #account-link{background:#fff;border:1px solid #e6e7e1;box-shadow:0 4px 14px #0000000d;padding:6px 14px;font-weight:650;font-size:13px;display:inline-flex;align-items:center}
#app-back{background:transparent}
/* головна */
main{padding-top:18px}
.ios-title{font-size:clamp(30px,9.4vw,40px);line-height:1.12;letter-spacing:-1.2px;font-weight:800;margin:0 0 22px;white-space:pre-line}
.ios-hero{position:relative;background:var(--ios-yellow);border-radius:30px;padding:24px 24px 24px;margin-bottom:22px;overflow:hidden}
.ios-hero-copy{padding-right:96px;min-height:104px}
.ios-tag{display:flex;align-items:center;gap:8px;margin:0 0 14px;font-size:12px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;color:var(--ios-ink)}
.ios-hero h2{font-size:clamp(24px,7.4vw,30px);line-height:1.18;letter-spacing:-.6px;font-weight:800;white-space:pre-line;margin:0}
.ios-car{position:absolute;right:20px;top:52px;width:92px;height:auto;color:#4a4119}
.ios-sub{margin:14px 0 20px;font-size:16px;line-height:1.45;color:#6b5a14}
.ios-cta{display:flex;align-items:center;justify-content:center;width:100%;min-height:60px;border:0;border-radius:22px;background:var(--ios-ink);color:#fff;font-size:18px;font-weight:700}
.ios-cta:hover{background:#000}
.metrics{gap:12px;margin:0 0 20px}
.metric{display:flex;flex-direction:column;padding:16px 16px 14px;border:1px solid #efefea;border-radius:24px;background:#fff;text-decoration:none;min-height:132px;box-shadow:0 1px 0 #0000000a}
.metric .ios-ico{display:block;color:#8a8b86;margin-bottom:auto}
.metric strong{font-size:38px;line-height:1;margin:14px 0 6px;font-weight:800;letter-spacing:-1px}
.metric span{font-size:14px;color:var(--ios-gray)}
.draft-link{border-radius:22px;padding:18px 20px;border:1px solid #efefea;box-shadow:0 1px 0 #0000000a}
.draft-link strong{font-size:17px}
.card{border-radius:24px;border-color:#efefea}
/* нижнє меню — плаваюча капсула */
#navigation{left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));max-width:640px;margin:0 auto;border:1px solid #e9eae4;border-radius:999px;background:#fff;box-shadow:0 8px 26px #00000014;backdrop-filter:none;padding:7px;gap:2px;justify-content:space-between;overflow:visible}
#navigation a{position:relative;flex:1;max-width:none;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:999px;padding:6px 2px;color:#6f716b;font-size:11.5px;font-weight:600;white-space:nowrap}
#navigation a svg{width:24px;height:24px}
#navigation a.active{background:var(--ios-yellow);color:var(--ios-ink);font-weight:800}
.nav-order-count{position:absolute;top:2px;right:calc(50% - 26px);min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#ff3b30;color:#fff;font-size:12px;font-weight:800;display:grid;place-items:center}
@media(max-width:380px){header img{width:118px}.ios-hero-copy{padding-right:78px}.ios-car{width:74px;right:14px}.metric{padding:12px;min-height:116px}.metric strong{font-size:32px}#navigation a{font-size:10.5px}}
/* адаптація до вузьких екранів */
header>div{flex-wrap:wrap;row-gap:4px}
header>div>a[href="#home"]{flex:1 1 112px;min-width:112px;margin-right:0}
header img{width:136px;max-width:100%}
header #language{padding:6px 12px}
header #role,header #account-link{padding:4px 12px;min-height:40px}
#navigation a{min-width:0;padding:6px 0;overflow:hidden;font-size:11px}
#navigation a span:not(.nav-order-count){max-width:100%;overflow:hidden;text-overflow:ellipsis}
@media(max-width:420px){header img{width:112px}#navigation{left:8px;right:8px;padding:6px}#navigation a{font-size:10.5px}}
#navigation{transform:none!important;width:auto}
#app-back:disabled{display:none}
@media(max-width:420px){
 header>div{padding:8px 10px;gap:6px;flex-wrap:nowrap}
 header>div>a[href="#home"]{flex:1 1 auto;min-width:0}
 header img{width:96px}
 header #language span{display:none}
 header #language{padding:6px 10px;min-width:44px;justify-content:center}
 header #account-link,header #role{padding:2px 10px;font-size:12px;min-height:40px;white-space:nowrap}
 #navigation a{font-size:9.5px;letter-spacing:-.1px}
 #navigation a svg{width:22px;height:22px}
}
/* капсула «мова + налаштування», як у застосунку iPhone */
.ios-pill{display:inline-flex;align-items:center;background:#fff;border:1px solid #e6e7e1;border-radius:999px;box-shadow:0 4px 14px #0000000d;flex:none}
.ios-pill .header-icon{min-width:48px;min-height:48px;border-radius:999px;background:transparent;border:0;box-shadow:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 12px;color:var(--ios-ink)}
.ios-pill #language{border:0;box-shadow:none;padding:6px 8px 6px 14px}
.ios-pill #settings{padding:6px 14px 6px 8px}
header #account-link,header #role{display:none!important}

/* Inspector work status: native checkbox semantics, animated track and artwork. */
.work-status{--status-ink:#22603e;--status-tint:#edf8f0;margin:0 0 22px;padding:22px;border:1px solid #badbc6;border-radius:26px;background:var(--status-tint);color:var(--status-ink);transition:background .28s,border-color .28s,color .28s}
.work-status:has(input:not(:checked)){--status-ink:#55576e;--status-tint:#f1f1f8;border-color:#d4d4e3}
.work-status-control{display:flex;align-items:center;gap:16px;cursor:pointer;margin:0}
.work-status-art{position:relative;width:54px;height:54px;flex:0 0 54px;border-radius:18px;background:#fff;overflow:hidden;font-size:36px;line-height:54px;text-align:center}
.work-status-art span{position:absolute;inset:0;transition:transform .35s,opacity .25s}
.work-sun{color:#af7900}.work-moon{color:#62658e;opacity:0;transform:translateY(32px) rotate(-35deg)}
.work-status:has(input:not(:checked)) .work-sun{opacity:0;transform:translateY(-32px) rotate(45deg)}
.work-status:has(input:not(:checked)) .work-moon{opacity:1;transform:translateY(0) rotate(0)}
.work-status-copy{flex:1;min-width:0}.work-status-copy strong{display:block;font-size:24px;line-height:1.2}.work-status-description{display:block;font-size:14px;line-height:1.4;margin-top:5px}
.work-status .work-off{display:none}.work-status:has(input:not(:checked)) .work-on{display:none}.work-status:has(input:not(:checked)) .work-off{display:inline}
.work-status input.work-status-switch{appearance:none;-webkit-appearance:none;position:relative;flex:0 0 68px;width:68px;height:40px;min-height:40px;margin:0;padding:0;border:0;border-radius:24px;background:#9698ac;cursor:pointer;transition:background .28s;box-shadow:none}
.work-status input.work-status-switch:checked{background:#2b8050}
.work-status input.work-status-switch::before{content:"";display:block;position:absolute;top:4px;left:4px;width:32px;height:32px;border-radius:50%;background:#fff;box-shadow:0 2px 5px #0002;transition:transform .28s cubic-bezier(.2,.8,.2,1)}
.work-status input.work-status-switch:checked::before{transform:translateX(28px)}
.work-status input.work-status-switch:focus-visible{outline:3px solid #b77c00;outline-offset:4px}
.work-status input.work-status-switch:disabled{cursor:wait;opacity:.6}
.work-status-note{font-size:13px;line-height:1.45;margin:16px 0 0;padding-top:14px;border-top:1px solid #00000012;color:var(--status-ink)}
@media(max-width:420px){.work-status{padding:18px}.work-status-control{gap:12px}.work-status-art{width:44px;height:44px;flex-basis:44px;font-size:30px;line-height:44px}.work-status-copy strong{font-size:22px}}
@media(prefers-reduced-motion:reduce){.work-status,.work-status-art span,.work-status input.work-status-switch,.work-status input.work-status-switch::before{transition:none}}
