/* Топливо Тут PWA */
:root{
  --yellow:#ffc107;
  --yellow2:#f5b400;
  --black:#050505;
  --black2:#111111;
  --white:#ffffff;
  --bg:#f7f7f5;
  --card:#ffffff;
  --text:#111111;
  --muted:#767676;
  --line:#ededed;
  --green:#16a34a;
  --red:#ef4444;
  --blue:#2563eb;
  --shadow:0 14px 40px rgba(0,0,0,.09);
  --shadow2:0 8px 22px rgba(0,0,0,.06);
  --radius:22px;
  --safe-bottom:env(safe-area-inset-bottom, 0px);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:linear-gradient(180deg,#fff 0%,var(--bg) 100%);
  color:var(--text);
  overscroll-behavior-y:none;
}
button,input,select,textarea{font:inherit}
button{border:0;cursor:pointer}
button:disabled{opacity:.55;cursor:not-allowed}
a{color:inherit;text-decoration:none}

.app{
  width:min(520px,100%);
  min-height:100vh;
  margin:0 auto;
  background:#fff;
  position:relative;
  box-shadow:0 0 0 1px rgba(0,0,0,.04),0 30px 90px rgba(0,0,0,.08);
  padding-bottom:calc(86px + var(--safe-bottom));
}

.top-brand{
  padding:18px 18px 10px;
  background:#fff;
  position:sticky;
  top:0;
  z-index:40;
  border-bottom:1px solid #f1f1f1;
}
.brand-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.logo{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:28px;
  font-weight:950;
  letter-spacing:-.055em;
}
.logo-dot{
  width:15px;height:15px;border-radius:50%;
  background:var(--yellow);
  box-shadow:0 4px 10px rgba(255,193,7,.28);
  transform:translateY(2px);
}
.slogan{
  margin-top:5px;
  color:#222;
  font-size:9px;
  letter-spacing:.54em;
  padding-left:.54em;
  font-weight:800;
  text-transform:lowercase;
}
.header-actions{display:flex;gap:8px;align-items:center}
.icon-btn{
  width:40px;height:40px;border-radius:14px;
  display:grid;place-items:center;
  background:#f6f6f6;color:#111;
  border:1px solid #eee;
}
.icon-btn svg{width:20px;height:20px;stroke:currentColor}

.role-switch{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  margin-top:14px;
  padding:5px;
  background:#f5f5f5;
  border-radius:16px;
}
.role-switch button{
  min-height:38px;
  border-radius:12px;
  color:#6c6c6c;
  background:transparent;
  font-size:12px;
  font-weight:900;
}
.role-switch button.active{
  background:#111;
  color:#fff;
}

.screen{display:none;padding:16px 16px 22px;animation:fade .22s ease both}
.screen.active{display:block}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}

.page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin:2px 0 16px;
}
.page-title{font-size:22px;font-weight:950;letter-spacing:-.04em;margin:0}
.page-sub{font-size:12px;color:var(--muted);font-weight:700;margin-top:3px}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow2);
  overflow:hidden;
}
.card.pad{padding:16px}
.card.dark{
  background:#111;
  color:#fff;
  border-color:#111;
}
.stack{display:grid;gap:12px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}

.field{display:grid;gap:7px}
.field label{
  font-size:12px;
  font-weight:900;
  color:#5d5d5d;
}
.input,.select,.textarea{
  width:100%;
  border:1px solid var(--line);
  background:#fafafa;
  border-radius:15px;
  min-height:48px;
  padding:12px 13px;
  outline:none;
  color:#111;
  font-weight:750;
}
.textarea{min-height:86px;resize:vertical}
.input:focus,.select:focus,.textarea:focus{
  border-color:var(--yellow);
  box-shadow:0 0 0 4px rgba(255,193,7,.16);
  background:#fff;
}

.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 11px;
  border-radius:14px;
  background:#f6f6f6;
  border:1px solid #ededed;
  color:#333;
  font-size:12px;
  font-weight:900;
  user-select:none;
}
.chip input{display:none}
.chip:has(input:checked),.chip.active{
  background:var(--yellow);
  border-color:var(--yellow);
  color:#111;
}
.chip small{color:#777;margin-left:2px}

.segmented{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:5px;
  background:#f5f5f5;
  padding:5px;
  border-radius:16px;
}
.segmented button{
  min-height:39px;
  border-radius:12px;
  color:#777;
  background:transparent;
  font-size:12px;
  font-weight:900;
}
.segmented button.active{
  color:#111;
  background:var(--yellow);
}

.btn{
  min-height:48px;
  border-radius:14px;
  padding:12px 15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:950;
  font-size:13px;
}
.btn.full{width:100%}
.btn.yellow{background:linear-gradient(180deg,var(--yellow),var(--yellow2));color:#111;box-shadow:0 8px 22px rgba(255,193,7,.22)}
.btn.black{background:#111;color:#fff}
.btn.white{background:#fff;color:#111;border:1px solid var(--line)}
.btn.green{background:#dcfce7;color:#047842;border:1px solid #bbf7d0}
.btn.red{background:#fee2e2;color:#b91c1c;border:1px solid #fecaca}
.btn.ghost{background:#f7f7f7;color:#111;border:1px solid #eee}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 14px;
  border-bottom:1px solid #f0f0f0;
}
.row:last-child{border-bottom:0}
.row-title{font-weight:950;font-size:13px;line-height:1.2}
.row-sub{font-size:11px;color:#777;margin-top:3px;line-height:1.3;font-weight:650}
.row-val{font-size:12px;font-weight:900;text-align:right;white-space:nowrap}
.badge{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:5px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:950;
  background:#f2f2f2;
  color:#555;
}
.badge.yellow{background:var(--yellow);color:#111}
.badge.green{background:#dcfce7;color:#047842}
.badge.red{background:#fee2e2;color:#b91c1c}
.badge.black{background:#111;color:#fff}

.hero-card{
  background:#111;
  color:#fff;
  border-radius:26px;
  padding:18px;
  overflow:hidden;
  position:relative;
}
.hero-card:after{
  content:"";
  position:absolute;
  right:-60px;bottom:-60px;
  width:180px;height:180px;border-radius:50%;
  background:rgba(255,193,7,.14);
}
.hero-card h1{
  position:relative;z-index:2;
  margin:13px 0 7px;
  font-size:32px;line-height:.95;
  letter-spacing:-.06em;
}
.hero-card p{
  position:relative;z-index:2;
  color:rgba(255,255,255,.72);
  font-size:13px;line-height:1.45;
  margin:0 0 15px;
}
.hero-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--yellow);margin-right:6px}

.stats{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}
.stat{
  background:#fff;
  border:1px solid #eee;
  border-radius:18px;
  padding:14px;
  box-shadow:var(--shadow2);
}
.stat b{font-size:22px;letter-spacing:-.04em}
.stat span{display:block;margin-top:4px;color:#777;font-size:11px;font-weight:750}

.request-list{display:grid;gap:11px}
.request-card{
  background:#fff;
  border:1px solid #eee;
  border-radius:20px;
  box-shadow:var(--shadow2);
  padding:13px;
}
.req-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.req-title{font-size:20px;font-weight:500;letter-spacing:-.04em}
.req-place{text-align:right;font-size:12px;line-height:1.25;font-weight:900}
.req-place span{display:block;color:#777;font-size:11px;font-weight:650;margin-top:2px}
.req-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:9px 0}
.req-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.price{font-size:18px;font-weight:950;letter-spacing:-.04em}
.price small{display:block;font-size:10px;color:#777;font-weight:700;letter-spacing:0;margin-top:2px}

.offer-card{
  border:1px solid #eee;
  border-radius:18px;
  padding:13px;
  background:#fff;
  display:grid;
  gap:10px;
}
.offer-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.offer-seller{font-weight:950}
.offer-meta{color:#777;font-size:11px;font-weight:700;margin-top:3px}
.offer-price{text-align:right;font-weight:950;color:#111}
.offer-price span{display:block;font-size:11px;color:#777;font-weight:700}

.timeline{display:grid;gap:11px}
.step{
  display:grid;
  grid-template-columns:32px 1fr;
  gap:10px;
  position:relative;
}
.step:not(:last-child):before{
  content:"";position:absolute;left:15px;top:30px;bottom:-12px;width:2px;background:#e1e1e1;
}
.step.done:not(:last-child):before,.step.active:not(:last-child):before{background:var(--yellow)}
.step-dot{
  width:31px;height:31px;border-radius:50%;
  display:grid;place-items:center;
  background:#f0f0f0;color:#999;
  z-index:2;font-weight:950;font-size:12px;
}
.step.done .step-dot{background:var(--green);color:#fff}
.step.active .step-dot{background:var(--yellow);color:#111;box-shadow:0 0 0 5px rgba(255,193,7,.16)}
.step b{font-size:13px}
.step span{display:block;color:#777;font-size:11px;margin-top:3px;line-height:1.3;font-weight:650}

.chat{display:grid;gap:9px;max-height:320px;overflow:auto;padding-right:2px}
.msg{max-width:84%;background:#f1f1f1;border-radius:15px 15px 15px 4px;padding:10px 11px;font-size:12px;font-weight:700;line-height:1.35}
.msg.me{justify-self:end;background:#ffd34a;border-radius:15px 15px 4px 15px}
.msg small{display:block;margin-top:4px;color:#777;font-size:9px;text-align:right}
.chat-form{display:grid;grid-template-columns:1fr 44px;gap:8px;margin-top:10px}

.wallet-balance{
  background:#111;
  color:#fff;
  padding:18px;
  border-radius:22px;
}
.wallet-balance span{color:#aaa;font-size:12px;font-weight:800}
.wallet-balance b{display:block;font-size:31px;letter-spacing:-.055em;margin-top:7px}
.wallet-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}
.tx-list{display:grid;gap:10px}
.tx{
  display:grid;
  grid-template-columns:32px 1fr auto;
  align-items:center;
  gap:10px;
  border:1px solid #eee;
  border-radius:17px;
  padding:11px;
  background:#fff;
}
.tx-ico{
  width:29px;height:29px;border-radius:50%;
  display:grid;place-items:center;
  border:1.7px solid currentColor;
  font-weight:950;font-size:12px;
}
.tx-ico.green{color:var(--green)}
.tx-ico.red{color:var(--red)}
.tx-ico.gray{color:#777}
.tx b{font-size:12px}
.tx small{display:block;color:#777;font-size:10px;margin-top:3px}
.tx-sum{font-size:11px;font-weight:950;text-align:right;white-space:nowrap}
.tx-sum.green{color:var(--green)}
.tx-sum.red{color:var(--red)}

.empty{
  border:1px dashed #d8d8d8;
  background:#fafafa;
  border-radius:18px;
  padding:18px;
  color:#777;
  text-align:center;
  font-size:13px;
  font-weight:700;
}

.bottom-nav{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:0;
  z-index:60;
  width:min(520px,100%);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(20px);
  border-top:1px solid #eee;
  padding:7px 10px calc(7px + var(--safe-bottom));
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:5px;
}
.nav-btn{
  min-height:58px;
  border-radius:16px;
  background:transparent;
  color:#555;
  display:grid;
  place-items:center;
  gap:3px;
  font-size:10px;
  font-weight:850;
}
.nav-btn svg{width:22px;height:22px;stroke:currentColor}
.nav-btn.active{background:var(--yellow);color:#111}

.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.42);
  z-index:100;
  display:none;
  align-items:flex-end;
  justify-content:center;
}
.modal-backdrop.show{display:flex}
.modal{
  width:min(520px,100%);
  background:#fff;
  border-radius:28px 28px 0 0;
  padding:18px 16px calc(18px + var(--safe-bottom));
  box-shadow:0 -18px 60px rgba(0,0,0,.18);
}
.modal h3{margin:0 0 12px;font-size:20px;letter-spacing:-.035em}
.close-x{float:right;width:34px;height:34px;border-radius:50%;background:#f3f3f3}

.toast{
  position:fixed;
  z-index:140;
  left:50%;
  top:18px;
  transform:translate(-50%,-10px);
  opacity:0;
  pointer-events:none;
  max-width:calc(100% - 28px);
  background:#111;
  color:#fff;
  border-radius:15px;
  padding:12px 14px;
  box-shadow:0 16px 40px rgba(0,0,0,.22);
  font-size:13px;
  font-weight:850;
  transition:.22s ease;
}
.toast.show{opacity:1;transform:translate(-50%,0)}

.install-box{
  display:none;
  position:fixed;
  z-index:90;
  left:50%;
  bottom:calc(82px + var(--safe-bottom));
  transform:translateX(-50%);
  width:min(492px,calc(100% - 24px));
  background:#111;
  color:#fff;
  border-radius:20px;
  padding:13px;
  box-shadow:0 18px 50px rgba(0,0,0,.24);
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.install-box.show{display:flex}
.install-box b{display:block;font-size:13px}
.install-box span{display:block;color:#aaa;font-size:11px;margin-top:3px}
.install-box .btn{min-height:40px;white-space:nowrap}

.service-strip{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:0;
  border:1px solid #eee;
  border-radius:22px;
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow2);
}
.service{
  padding:13px 5px;
  display:grid;
  place-items:center;
  gap:6px;
  text-align:center;
  border-right:1px solid #eee;
}
.service:last-child{border-right:0}
.service svg{width:28px;height:28px;stroke:#111}
.service .accent{fill:var(--yellow);stroke:var(--yellow)}
.service b{font-size:9px;text-transform:uppercase}

@media(min-width:700px){
  body{background:#f0f0ee}
  .app{margin:18px auto;min-height:calc(100vh - 36px);border-radius:28px;overflow:hidden}
  .bottom-nav{bottom:18px;border-radius:0 0 28px 28px}
}
