:root {
  --app: #F4F4FA;
  --surface: #FFFFFF;
  --surface-alt: #F8F7FD;
  --border: #ECEBF5;
  --text: #16172A;
  --text-dim: #6B6F86;
  --text-faint: #9BA0B5;
  --brand: #7C3AED;
  --brand-2: #CB11AB;
  --brand-soft: #F2ECFE;
  --brand-text: #6D28D9;
  --green: #12B76A;
  --green-soft: #E7F8F0;
  --red: #F04438;
  --red-soft: #FDECEA;
  --hero-card: #EFEBFD;
  --shadow: 0 4px 24px rgba(45,40,90,.06);
  --grad: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

[data-theme="dark"] {
  --app: #0C0D15;
  --surface: #161726;
  --surface-alt: #1E1F30;
  --border: #272939;
  --text: #EBECF4;
  --text-dim: #9CA0B8;
  --text-faint: #6A6F88;
  --brand: #8B5CF6;
  --brand-2: #E23FC4;
  --brand-soft: #231C3D;
  --brand-text: #B69CFF;
  --green: #3DDC97;
  --green-soft: #12281F;
  --red: #FF6B5E;
  --red-soft: #331A1B;
  --hero-card: #1B1B2E;
  --shadow: 0 4px 24px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--app);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body { overflow: hidden; }
body.is-locked { overflow: hidden; }

.sprite { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ic { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--green { color: var(--green); }
.ic--brand { color: var(--brand-text); }

.page {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow--a { top: -280px; right: -180px; width: 660px; height: 660px; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 20%, transparent) 0%, transparent 68%); }
.glow--b { bottom: -260px; left: -220px; width: 560px; height: 560px; background: radial-gradient(circle, color-mix(in srgb, var(--brand-2) 14%, transparent) 0%, transparent 70%); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* topbar */

.topbar { position: relative; z-index: 10; }
.topbar__inner { height: 68px; display: flex; align-items: center; gap: 18px; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
.logo img { height: 42px; width: auto; max-width: 240px; display: block; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: none; border: 0; cursor: pointer;
  font: 600 14.5px/1 var(--font); color: var(--text-dim);
  padding: 9px 12px; border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--text); background: var(--surface-alt); }
.nav-short { display: none; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  display: grid; place-items: center; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--brand); }

#theme-toggle .ic--sun { display: none; }
[data-theme="dark"] #theme-toggle .ic--sun { display: block; }
[data-theme="dark"] #theme-toggle .ic--moon { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; cursor: pointer;
  font: 650 15px/1 var(--font);
  padding: 13px 24px;
  transition: filter .2s, transform .12s, box-shadow .2s;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(124,58,237,.24); }
.btn--primary:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.985); }
.btn--block { width: 100%; }

.user {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 6px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface);
  font: 600 13px/1 var(--font); color: var(--text);
}
.user__ava { width: 27px; height: 27px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }

/* hero */

.hero {
  position: relative; z-index: 5;
  flex: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 38px;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}
.hero__text { animation: up .5s ease both; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px;
  background: var(--brand-soft); color: var(--brand-text);
  border-radius: 999px; padding: 8px 16px;
  font-size: 13.5px; font-weight: 650;
}

.hero__title {
  margin: 0;
  font-size: clamp(29px, 3.7vw, 52px);
  line-height: 1.07;
  font-weight: 800;
  letter-spacing: -1.4px;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero__sub {
  margin: 18px 0 26px;
  max-width: 560px;
  font-size: 18px; line-height: 1.58; color: var(--text-dim);
}

.search {
  display: flex; align-items: center; gap: 8px;
  max-width: 620px; padding: 9px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search__ic { margin-left: 10px; color: var(--text-faint); }
.search__input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  font: 400 16px/1.2 var(--font); color: var(--text);
  padding: 11px 2px;
}
.search__input::placeholder { color: var(--text-faint); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__btn { flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.chip {
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 999px; padding: 9px 15px; cursor: pointer;
  font: 600 13.5px/1 var(--font); color: var(--text-dim);
  transition: color .2s, border-color .2s;
}
.chip:hover { color: var(--brand-text); border-color: var(--brand); }

.trust {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin: 24px 0 0; padding: 0; list-style: none;
}
.trust li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-faint); }

/* preview card */

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.preview { padding: 18px; animation: up .6s .12s ease both; }
.preview__head { display: flex; gap: 14px; align-items: flex-start; }
.preview__img { width: 60px; height: 60px; border-radius: 14px; background: var(--hero-card); display: block; object-fit: cover; flex: none; }
.preview__meta { min-width: 0; }
.preview__art { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--text-faint); }
.preview__name { margin: 5px 0 0; font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.preview__price { margin: 8px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 19px; font-weight: 750; }
.preview__unit { font-size: 13px; font-weight: 600; color: var(--text-faint); }

.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.delta--up { color: var(--green); background: var(--green-soft); }
.delta--down { color: var(--red); background: var(--red-soft); }

.preview__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 10px; }
.stat { background: var(--surface-alt); border-radius: 12px; padding: 10px 12px; }
.stat b { display: block; font-size: 16px; font-weight: 750; letter-spacing: -.2px; }
.stat span { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; color: var(--text-faint); }

.spark { display: block; width: 100%; height: 110px; }

.preview__foot { margin: 6px 0 0; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--text-faint); }
.preview__top { display: inline-flex; align-items: center; gap: 5px; color: var(--green); }

/* bottom */

.bottom { position: relative; z-index: 5; border-top: 1px solid var(--border); background: var(--surface); }
.bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.counters { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin: 0; padding: 0; list-style: none; }
.counters li { display: flex; align-items: center; gap: 9px; }
.counters__ic { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; flex: none; }
.counters b { display: block; font-size: 16.5px; font-weight: 780; letter-spacing: -.3px; }
.counters i { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-faint); }
.copy { margin: 0; font-size: 12.5px; color: var(--text-faint); white-space: nowrap; }
.copy a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.copy a:hover { color: var(--brand-text); border-color: currentColor; }

/* overlays */

.overlay { position: fixed; inset: 0; z-index: 100; }
.overlay--center { display: grid; place-items: center; padding: 18px; }
.overlay__bg { position: absolute; inset: 0; background: rgba(10,10,20,.55); backdrop-filter: blur(3px); animation: fade-in .2s ease both; }
.overlay.is-closing .overlay__bg { animation: fade-out .2s ease both; }

.drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(340px, 88vw);
  background: var(--surface); border-left: 1px solid var(--border);
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
  animation: sheet-in .22s cubic-bezier(.22,1,.36,1) both;
}
.overlay.is-closing .drawer { animation: sheet-out .22s cubic-bezier(.22,1,.36,1) both; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer__logo { height: 38px; width: auto; max-width: 200px; }
.drawer__link {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 13px;
  padding: 13px 14px; cursor: pointer;
  font: 600 14.5px/1 var(--font); color: var(--text);
}
.drawer__link:hover { border-color: var(--brand); }
.drawer__foot { margin-top: auto; }

.modal {
  position: relative; width: min(420px, 100%);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  animation: pop-in .22s cubic-bezier(.22,1,.36,1) both;
}
.overlay.is-closing .modal { animation: pop-out .2s cubic-bezier(.22,1,.36,1) both; }
.modal__close { position: absolute; top: 14px; right: 14px; }
.modal__ic { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.modal__title { margin: 0; font-size: 21px; font-weight: 750; letter-spacing: -.3px; }
.modal__text { margin: 8px 0 20px; font-size: 13.5px; line-height: 1.55; color: var(--text-dim); }
.modal__note { margin: 14px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--text-faint); text-align: center; }
.input {
  width: 100%; margin-bottom: 12px;
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 13px;
  padding: 13px 15px; outline: none;
  font: 400 15px/1.2 var(--font); color: var(--text);
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px);
  background: #16172A; color: #fff;
  border: 1px solid var(--brand); border-radius: 14px;
  padding: 13px 18px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
  animation: toast-in .24s cubic-bezier(.22,1,.36,1) both;
}
[data-theme="dark"] .toast { background: #1E1F30; }
.toast.is-closing { animation: toast-out .24s ease both; }
.toast__ic { width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #0C0D15; display: grid; place-items: center; flex: none; }

/* animations */

@keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes fade-out { from { opacity: 1 } to { opacity: 0 } }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.96) } to { opacity: 1; transform: none } }
@keyframes pop-out { from { opacity: 1; transform: none } to { opacity: 0; transform: translateY(10px) scale(.97) } }
@keyframes sheet-in { from { transform: translateX(100%) } to { transform: none } }
@keyframes sheet-out { from { transform: none } to { transform: translateX(100%) } }
@keyframes up { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: none } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 18px) } to { opacity: 1; transform: translate(-50%, 0) } }
@keyframes toast-out { from { opacity: 1; transform: translate(-50%, 0) } to { opacity: 0; transform: translate(-50%, 14px) } }
.toast { transform: translateX(-50%); }

/* responsive */

.only-mob-inline { display: none !important; }

@media (max-width: 1300px) {
  .nav { gap: 2px; margin-left: 8px; }
  .nav__link { padding: 9px 10px; font-size: 13.5px; gap: 6px; }
  .nav-full { display: none; }
  .nav-short { display: inline; }
}

@media (max-width: 1120px) {
  .nav__link .ic { display: none; }
  .nav__link { padding: 8px 9px; font-size: 13px; }
  .logo img { height: 38px; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 26px; align-content: center; }
  .preview { max-width: 520px; width: 100%; }
}

@media (max-width: 900px) {
  .only-desk { display: none !important; }
  .only-mob-inline { display: inline-flex !important; }
  .logo img { height: 38px; }
  .bottom__inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 16px; width: 100%; }
  .counters li { min-width: 0; }
  .copy { white-space: normal; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .only-desk-inline { display: none !important; }
  .hero { padding-top: 6px; padding-bottom: 14px; gap: 18px; }
  .hero__title { font-size: 31px; letter-spacing: -.8px; line-height: 1.12; }
  .hero__sub { margin: 11px 0 16px; font-size: 16px; line-height: 1.5; }
  .badge { margin-bottom: 10px; padding: 7px 13px; font-size: 12.5px; }
  .search { padding: 7px; border-radius: 15px; }
  .search__ic { margin-left: 8px; }
  .search__input { font-size: 15px; padding: 11px 2px; }
  .search__btn { padding: 11px 14px; }
  .chips { gap: 8px; margin-top: 11px; }
  .chip { padding: 8px 13px; font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .trust { gap: 9px 16px; margin-top: 14px; }
  .trust li { font-size: 12.5px; gap: 7px; }
  .trust li:nth-child(3) { display: none; }
  .preview { padding: 14px; }
  .preview__img { width: 50px; height: 50px; }
  .preview__name { font-size: 15px; }
  .preview__price { font-size: 18px; }
  .preview__stats { gap: 7px; margin: 12px 0 8px; }
  .stat { padding: 9px 10px; }
  .stat b { font-size: 14px; }
  .spark { height: 74px; }
  .preview__foot { font-size: 11.5px; }
  .bottom__inner { flex-direction: column; align-items: stretch; gap: 11px; padding-top: 14px; padding-bottom: 14px; }
  .counters { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; width: 100%; }
  .counters li { min-width: 0; }
  .counters b { font-size: 17px; }
  .counters i { font-size: 11.5px; }
  .copy { font-size: 11.5px; text-align: left; }
}

@media (max-width: 400px), (max-height: 780px) {
  .hero__title { font-size: 28px; line-height: 1.14; }
  .hero__sub { font-size: 15px; margin: 10px 0 14px; }
  .trust { margin-top: 12px; }
  .spark { height: 64px; }
  .preview__stats { margin: 10px 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
