*{box-sizing:border-box}
:root{
  --blue:#1f5fbf;
  --blue2:#2f75dc;
  --bg:#eef1f5;
  --text:#1f2d3d;
  --muted:#657287;
  --shadow:0 12px 28px rgba(17,24,39,.10);
}
html,body{
  margin:0;padding:0;background:var(--bg);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
}
body{min-height:100vh}
.app-shell{
  max-width:430px; min-height:100vh; margin:0 auto;
  background:linear-gradient(180deg,#dde3eb 0%,#eef1f5 54%,#eef1f5 100%);
}
.topbar{
  display:flex;align-items:center;gap:12px;
  padding:18px 16px 20px;
  color:#fff;
  background:linear-gradient(180deg,var(--blue2),var(--blue));
  box-shadow:0 8px 22px rgba(31,95,191,.24);
}
.menu-btn{
  border:0;background:none;color:#fff;font-size:2rem;line-height:1;cursor:pointer;padding:0;
}
.brand-wrap{
  display:flex;align-items:center;gap:10px;
}
.brand-icon{
  width:28px;height:28px;display:block;opacity:.98;flex:0 0 auto;
}
.topbar h1{
  margin:0;
  font-size:1.95rem;
  font-weight:500;
  letter-spacing:-.02em;
  font-family:"Segoe UI Light","Helvetica Neue",Arial,sans-serif;
}
.content{padding:16px 14px 26px}
.search-box{
  display:flex;align-items:center;gap:12px;
  background:#fff;border-radius:24px;padding:14px 16px;
  box-shadow:var(--shadow);border:1px solid rgba(17,24,39,.06);
}
.search-icon{font-size:1.9rem;color:#7b8798;line-height:1}
.search-box input{
  width:100%;border:0;outline:0;background:transparent;
  font-size:1.2rem;color:#243447;
}
.search-box input::placeholder{color:#8b96a7}
.filters-section{margin-top:14px}
.filter-title{
  font-size:.92rem;font-weight:700;color:#58667a;margin:14px 2px 8px;
}
.chips{display:flex;gap:10px;flex-wrap:wrap}
.chips-3{display:grid;grid-template-columns:1fr 1fr 1fr}
.chip{
  border:0;background:#fff;color:#253447;cursor:pointer;
  min-height:52px;border-radius:16px;padding:10px 14px;
  box-shadow:0 8px 18px rgba(15,23,42,.08);
  font-size:1rem;font-weight:700;transition:transform .16s ease, box-shadow .16s ease, outline-color .16s ease;
}
.chip:active{transform:scale(.98)}
.chip.active,.chip.active-secondary{outline:3px solid rgba(47,117,220,.18)}
.chip-brand{padding:6px;background:transparent}
.brand-svg{width:100%;height:40px;display:block}
.secondary{min-height:42px;font-size:.95rem;font-weight:600}
.days .chip{min-height:40px;padding:8px 12px}
.results{display:flex;flex-direction:column;gap:16px;margin-top:16px}
.offer-card{
  background:#fff;border-radius:22px;padding:16px;
  display:grid;grid-template-columns:72px 1fr 112px;gap:14px;align-items:center;
  box-shadow:var(--shadow);border:1px solid rgba(17,24,39,.05);
  transition:transform .18s ease, box-shadow .18s ease; cursor:pointer;
}
.offer-card:hover{transform:translateY(-2px);box-shadow:0 18px 36px rgba(17,24,39,.12)}
.offer-icon{
  width:72px;height:72px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:1.9rem
}
.market{background:#3f8d2d}
.cinema{background:#c93a2c}
.food{background:#d79a17}
.fuel{background:#1976d2}
.travel{background:#7c3aed}
.pharmacy{background:#10b981}
.offer-main h2{margin:0;font-size:1.15rem;line-height:1.05;font-weight:800;letter-spacing:-.02em}
.offer-sub{margin-top:7px;color:#405065;font-size:.98rem}
.meta-line{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}
.mini-tag{
  display:inline-flex;align-items:center;justify-content:center;
  background:#eef3fb;color:#2856b4;border-radius:999px;padding:6px 10px;font-size:.8rem;font-weight:700
}
.offer-visual{
  height:106px;border-radius:16px;overflow:hidden;background:#e7edf5;border:1px solid #dbe2eb
}
.offer-visual img{width:100%;height:100%;object-fit:cover;display:block}
.empty{
  margin-top:16px;background:#fff;border-radius:18px;padding:16px;text-align:center;
  color:#64748b;box-shadow:var(--shadow)
}
.hidden{display:none !important}
.modal{
  position:fixed;inset:0;background:rgba(7,12,22,.45);display:flex;align-items:center;justify-content:center;padding:18px;z-index:50
}
.modal-card{
  width:min(100%,380px);background:#fff;border-radius:24px;padding:20px 18px 18px;
  box-shadow:0 24px 56px rgba(0,0,0,.25);animation:pop .18s ease;
  position:relative;
}
@keyframes pop{from{transform:translateY(10px) scale(.96);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}
.close-btn{
  right:12px;top:12px;border:0;background:#edf2f7;width:34px;height:34px;border-radius:50%;cursor:pointer;font-size:1rem;
  position:absolute;
}
.modal-head{display:flex;align-items:center;gap:12px;padding-right:40px}
.modal-logo{
  width:60px;height:60px;border-radius:16px;background:#eef2f8;display:grid;place-items:center;overflow:hidden;flex:0 0 auto
}
.modal-logo img{width:100%;height:100%;object-fit:contain;display:block}
.modal-bank{font-size:.82rem;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.06em}
.modal-card h2{margin:2px 0 0;font-size:1.5rem;line-height:1.05}
.modal-subtitle{color:#475569;margin:12px 0 8px}
.modal-days{color:#2955b1;font-weight:800;margin-bottom:12px}
.modal-box{
  background:#f4f7fb;border-radius:16px;padding:12px 14px;display:grid;gap:8px;font-size:.95rem
}
.modal-detail{margin:14px 0 0;color:#475569;line-height:1.45}
@media (max-width:390px){
  .topbar h1{font-size:1.75rem}
  .offer-card{
    grid-template-columns:68px 1fr;
    grid-template-areas:"icon main" "visual visual";
  }
  .offer-icon{grid-area:icon;width:68px;height:68px}
  .offer-main{grid-area:main}
  .offer-visual{grid-area:visual;height:140px}
}
