.tab-bar {
  grid-template-columns: repeat(4, 1fr);
}
.tab-bar button:not(.active) img { filter: grayscale(1); opacity: .72; }

.home-page {
  padding-left: 16px;
  padding-right: 16px;
  background: radial-gradient(circle at 85% 5%, #eaf3ff 0, transparent 28%), #f7faff;
}

.brand-head { gap: 11px; margin-bottom: 13px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden;
  border-radius: 50%; background: linear-gradient(145deg, #42b7ff, #1671f5);
  box-shadow: 0 8px 18px #1783f23d;
}
.brand-mark img { width: 30px; filter: brightness(0) invert(1); }
.brand-copy { flex: 1; }
.brand-copy h1 { font-size: 21px; color: #111827; }
.brand-copy p { font-size: 11px; }
.brand-head .mini { position: static; font-size: 11px; }

.home-search {
  height: 46px; display: flex; align-items: center; gap: 9px; margin-bottom: 15px;
  padding: 4px 5px 4px 13px; border: 1px solid #dfe7f2; border-radius: 15px;
  background: #fff; box-shadow: 0 6px 20px #1d47720a;
}
.home-search img { width: 18px; }
.home-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: #314158; background: none; font-size: 12px; }
.home-search button { height: 36px; padding: 0 18px; border: 0; border-radius: 12px; color: #fff; background: #1673f9; font-weight: 700; }

.home-hero { min-height: 218px; padding: 24px 20px; border-radius: 17px; background: linear-gradient(130deg, #0b62ef 0%, #287ff8 55%, #6bb8ff 100%); }
.hero-copy { position: relative; z-index: 3; }
.home-hero small { display: inline-block; padding: 7px 10px; border-radius: 7px; background: #ffffff18; }
.home-hero h2 { margin: 13px 0 9px; font-size: 27px; line-height: 1.25; }
.home-hero p { max-width: 255px; font-size: 11px; }
.home-hero button { margin-top: 18px; padding: 9px 15px; border: 0; border-radius: 9px; color: #1268f4; background: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 7px 18px #0755ba4d; }
.home-hero button b { display: inline-grid; width: 17px; height: 17px; margin-left: 7px; place-items: center; border-radius: 50%; color: #fff; background: #1673f9; }
.home-hero .hero-plane { right: 12px; bottom: 33px; width: 116px; opacity: .88; transform: rotate(-6deg); filter: drop-shadow(0 18px 14px #0852b866); }
.hero-orb { position: absolute; z-index: 1; border-radius: 50%; background: linear-gradient(145deg, #d5f4ff, #66aafa 60%, #7b6bff); box-shadow: inset 5px 5px 12px #ffffff88; }
.orb-one { width: 33px; height: 33px; right: 77px; top: 25px; }
.orb-two { width: 43px; height: 43px; right: 8px; bottom: 12px; }

.quick-section-title { display: flex; align-items: center; gap: 8px; margin: 18px 2px 10px; }
.quick-section-title i { width: 4px; height: 17px; border-radius: 4px; background: linear-gradient(180deg, #1677ff, #59a9ff); box-shadow: 0 3px 8px #1677ff40; }
.quick-section-title h2 { margin: 0; color: #16243a; font-size: 17px; line-height: 1; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 10px 7px; margin-top: 0; padding: 14px 10px; border-radius: 16px; }
.quick-grid a { min-width: 0; padding: 8px 4px 7px; border: 1px solid transparent; border-radius: 13px; color: #26364d; text-align: center; text-decoration: none; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.quick-grid a:active { transform: scale(.96); background: #f5f9ff; border-color: #d9e7fb; }
.quick-grid a > b { display: -webkit-box; min-height: 28px; margin-top: 7px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 11px; line-height: 14px; overflow-wrap: anywhere; }
.quick-grid a > small { display: block; margin-top: 3px; color: #97a5b9; font-size: 8px; }
.quick-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: auto; border-radius: 15px; box-shadow: inset 0 0 0 1px #ffffff99, 0 7px 14px #2769bd14; }
.quick-icon img { width: 33px; height: 33px; }
.quick-empty { grid-column: 1 / -1; margin: 8px; color: #8c99ab; text-align: center; font-size: 12px; }
.quick-blue { background: #e8f3ff; }
.quick-green { background: #e7fbf1; }
.quick-purple { background: #f1eaff; }
.quick-orange { background: #fff1e2; }
.quick-cyan { background: #e5f8ff; }

.home-title { margin-top: 20px; }
.home-title h2 { font-size: 17px; }
.home-title button { color: #7c8798; font-size: 11px; }
.hot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.home-catalog-empty { grid-column: 1 / -1; padding: 28px; color: #8b96a7; text-align: center; }
.hot-card { min-width: 0; overflow: hidden; padding: 9px 8px 8px; border-radius: 14px; }
.hot-main { display: block; width: 100%; padding: 0; border: 0; color: inherit; background: none; text-align: left; text-decoration: none; }
.hot-main img { display: block; width: 53px; height: 53px; margin: 0 auto 7px; }
.hot-main b, .hot-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-main b { font-size: 11px; }
.hot-main small { margin-top: 4px; color: #8793a4; font-size: 8px; }
.hot-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.hot-card footer strong { color: #ff5a36; font-size: 12px; }
.hot-card footer strong small { color: #8995a6; font-size: 8px; }
.hot-card footer button, .hot-card footer a { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #1673f9; font-size: 12px; text-decoration: none; }

.promo-card { display: flex; align-items: center; gap: 8px; overflow: hidden; margin-top: 15px; padding: 17px 14px; border-radius: 15px; background: linear-gradient(100deg, #f3f3ff, #e9e8ff 55%, #f7edff); }
.promo-card > div:first-child { position: relative; z-index: 2; flex: 1; }
.promo-card b { font-size: 14px; }
.promo-card p { margin: 4px 0 8px; color: #69758b; font-size: 9px; }
.promo-card em { color: #765cff; font-style: normal; }
.promo-card small { color: #5d687c; font-size: 9px; }
.promo-card small span { display: inline-grid; min-width: 20px; height: 20px; place-items: center; border-radius: 4px; background: #fff; font-weight: 700; }
.promo-art { width: 55px; height: 55px; display: grid; place-items: center; transform: rotate(-8deg); border-radius: 14px; color: #fff; background: linear-gradient(145deg, #a78bfa, #6148ee); box-shadow: 8px 10px 0 #d5ccff; font-size: 27px; font-weight: 900; }
.promo-card > button { position: relative; z-index: 2; padding: 10px 12px; border: 0; border-radius: 9px; color: #fff; background: #7357ef; font-size: 10px; font-weight: 700; }

.trust-card { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 15px; padding: 13px 8px; border-radius: 15px; }
.trust-card > div { min-width: 0; display: flex; align-items: center; gap: 5px; }
.trust-card i { width: 25px; height: 25px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #1977f6; background: #e8f3ff; font-style: normal; font-weight: 800; }
.trust-card span { min-width: 0; }
.trust-card b, .trust-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trust-card b { font-size: 9px; }
.trust-card small { margin-top: 2px; color: #8b96a7; font-size: 6px; }

@media (max-width: 390px) {
  .home-hero .hero-plane { width: 96px; }
  .home-hero h2 { font-size: 24px; }
  .hot-grid { gap: 5px; }
  .hot-card { padding: 8px 6px; }
  .promo-card { padding-left: 11px; padding-right: 11px; }
  .promo-art { display: none; }
}

@media (max-width: 360px) {
  .quick-grid { grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 8px 4px; padding-left: 7px; padding-right: 7px; }
  .quick-grid a > b { font-size: 10px; }
  .trust-card { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
