:root {
  --ink: #12203b;
  --ink-soft: #55627d;
  --paper: #f2f5fa;
  --white: #ffffff;
  --line: #dde4f0;
  --blue: #3358ff;
  --blue-soft: #e5ebff;
  --pink: #ff4d8d;
  --pink-soft: #ffe6ef;
  --radius: 18px;
  --shadow: 0 12px 26px -14px rgba(34, 66, 150, .45);
  --font-head: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

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

/* ───────── Шапка ───────── */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 16px; padding: 12px 20px; flex-wrap: wrap; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -.5px; white-space: nowrap; }
.logo b { color: var(--blue); font-weight: 700; }
.search { flex: 1 1 260px; position: relative; max-width: 460px; }
.search input {
  width: 100%; height: 42px; border-radius: 21px;
  border: 1.5px solid var(--line); background: var(--paper);
  padding: 0 42px 0 42px; font: inherit; color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--blue); background: var(--white); }
.search svg.mag { position: absolute; left: 14px; top: 11px; width: 20px; height: 20px; color: var(--ink-soft); pointer-events: none; }
.search .clear { position: absolute; right: 6px; top: 5px; width: 32px; height: 32px; border-radius: 50%; color: var(--ink-soft); display: none; place-items: center; }
.search .clear svg { width: 16px; height: 16px; }
.search .clear.on { display: grid; }
.search .clear:hover { background: var(--line); }
.nav { margin-left: auto; display: flex; gap: 6px; }
.nav a {
  padding: 9px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav a:hover { background: var(--blue-soft); color: var(--blue); }
.nav a.on { background: var(--blue-soft); color: var(--blue); }
.nav svg { width: 18px; height: 18px; }

main { flex: 1; padding: 28px 0 56px; }

/* ───────── Главная: «стопка» стикеров ───────── */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; margin-bottom: 28px; }
.hero h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 5vw, 46px); line-height: 1.08; letter-spacing: -1.2px; }
.hero p { margin-top: 14px; color: var(--ink-soft); font-size: 17px; max-width: 460px; }
.pile { position: relative; height: 210px; }
.pile .die {
  position: absolute; width: 124px; height: 124px; padding: 8px;
  background: var(--white); border-radius: 26px;
  box-shadow: 0 0 0 4px var(--white), var(--shadow);
  display: grid; place-items: center;
}
.pile .die img { width: 100%; height: 100%; object-fit: contain; }
.pile .die:nth-child(1) { left: 2%;  top: 34px; transform: rotate(-9deg); }
.pile .die:nth-child(2) { left: 24%; top: 0;    transform: rotate(5deg); z-index: 2; }
.pile .die:nth-child(3) { left: 47%; top: 44px; transform: rotate(-4deg); z-index: 3; }
.pile .die:nth-child(4) { left: 68%; top: 6px;  transform: rotate(10deg); z-index: 2; }
.pile .die:nth-child(5) { left: 35%; top: 98px; transform: rotate(7deg); z-index: 4; width: 104px; height: 104px; }

/* промо-карточки */
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.promo {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--line);
  transition: border-color .15s, transform .15s;
}
.promo:hover { border-color: var(--blue); transform: translateY(-2px); }
.promo .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.promo .ico svg { width: 26px; height: 26px; }
.promo.p1 .ico { color: var(--pink); }
.promo.p2 .ico { color: var(--blue); }
.promo.p1 .ico { background: var(--pink-soft); }
.promo.p2 .ico { background: var(--blue-soft); }
.promo h3 { font-size: 16px; font-weight: 800; line-height: 1.25; }
.promo p { font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; }
.slim {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 30px;
  background: var(--white); border-radius: 14px; border: 1.5px solid var(--line); font-weight: 700;
}
.slim:hover { border-color: var(--blue); color: var(--blue); }
.slim svg { width: 22px; height: 22px; }
.slim .slim-ico { color: var(--blue); display: grid; }
.slim .arrow { margin-left: auto; color: var(--blue); display: grid; }

h2.section { font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 16px; }

/* категории */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.cat {
  background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--line);
  padding: 20px 14px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cat:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat img { width: 84px; height: 84px; object-fit: contain; border-radius: 16px; }
.cat b { font-size: 15px; line-height: 1.25; }
.cat span { font-size: 13px; color: var(--blue); font-weight: 700; }

/* ───────── Страница списка ───────── */
.head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.head h1 { font-family: var(--font-head); font-size: clamp(22px, 4vw, 30px); font-weight: 800; letter-spacing: -.8px; flex: 1 1 auto; min-width: 200px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-soft); margin-bottom: 10px; padding: 6px 10px 6px 4px; border-radius: 10px; }
.back:hover { color: var(--blue); }
.back svg { width: 18px; height: 18px; }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { padding: 8px 16px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 800; font-size: 14px;
  background: var(--blue-soft); color: var(--blue); transition: background .15s;
}
.btn:hover { background: #d4defe; }
.btn.solid { background: var(--blue); color: #fff; }
.btn.solid:hover { background: #2646e0; }
.btn svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .55; cursor: default; }
.icon-btn { width: 42px; padding: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.card {
  background: var(--white); border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 1.5px var(--line); display: flex; flex-direction: column;
  transition: box-shadow .15s;
}
.card:hover { box-shadow: 0 0 0 2px var(--blue), var(--shadow); }
.thumb {
  position: relative; aspect-ratio: 1; width: 100%; padding: 12px; display: grid; place-items: center;
  background:
    linear-gradient(45deg, #f1f4fa 25%, transparent 25%, transparent 75%, #f1f4fa 75%) 0 0 / 20px 20px,
    linear-gradient(45deg, #f1f4fa 25%, #fff 25%, #fff 75%, #f1f4fa 75%) 10px 10px / 20px 20px;
  cursor: zoom-in;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.rank {
  position: absolute; left: 10px; top: 10px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 15px;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center;
}
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 14.5px; font-weight: 800; line-height: 1.3; min-height: 38px; }
.row { display: flex; gap: 8px; margin-top: auto; }
.like {
  height: 40px; min-width: 40px; padding: 0 12px; border-radius: 12px; background: var(--paper); color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: 14px;
}
.like svg { width: 20px; height: 20px; }
.like:hover { background: var(--pink-soft); color: var(--pink); }
.like[aria-pressed="true"] { background: var(--pink-soft); color: var(--pink); }
.add {
  flex: 1; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue);
  font-weight: 800; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center;
}
.add:hover { background: var(--blue); color: #fff; }

/* каналы */
.list { display: flex; flex-direction: column; gap: 12px; }
.chan {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--white);
  border-radius: 16px; border: 1.5px solid var(--line);
}
.chan .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.chan .ico svg { width: 22px; height: 22px; }
.chan .txt { flex: 1; min-width: 0; }
.chan b { display: block; font-size: 15px; }
.chan p { color: var(--ink-soft); font-size: 13.5px; margin-top: 2px; }

/* формы и тексты */
.panel { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 640px; }
.panel p { color: var(--ink-soft); margin-bottom: 16px; }
.field { width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; background: var(--paper); color: var(--ink); }
.field:focus { outline: none; border-color: var(--blue); background: #fff; }
.msg { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 14.5px; }
.msg.ok { background: #e3f7ec; color: #14683a; }
.msg.err { background: var(--pink-soft); color: #b3225a; }
.doc { max-width: 720px; }
.doc section { background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; }
.doc h3 { font-size: 15px; color: var(--blue); margin-bottom: 6px; }
.doc p { color: var(--ink-soft); font-size: 14.5px; }
.doc a { color: var(--blue); font-weight: 700; }

.state { text-align: center; padding: 60px 16px; color: var(--ink-soft); }
.state .big { margin-bottom: 10px; color: var(--ink-soft); display: grid; place-items: center; }
.state .big svg { width: 44px; height: 44px; }
.spin { width: 38px; height: 38px; border: 4px solid var(--line); border-top-color: var(--blue); border-radius: 50%; margin: 0 auto 12px; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* просмотр стикера */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(18, 32, 59, .72); display: none; place-items: center; padding: 20px; }
.lightbox.on { display: grid; }
.lightbox .pane { background: #fff; border-radius: 28px; padding: 18px; width: min(92vw, 520px); position: relative; }
.lightbox img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.lightbox .x { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.lightbox .x svg { width: 20px; height: 20px; }
.lightbox .cap { text-align: center; font-weight: 800; margin-top: 10px; }

footer { border-top: 1px solid var(--line); background: var(--white); padding: 22px 0; font-size: 14px; color: var(--ink-soft); }
footer .wrap { display: flex; gap: 8px 22px; flex-wrap: wrap; align-items: center; }
footer a { font-weight: 700; }
footer a:hover { color: var(--blue); }
footer .sp { margin-left: auto; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .pile { height: 200px; order: -1; margin-top: 10px; }
  .promos { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .nav { margin-left: 0; width: 100%; }
  .search { max-width: none; order: 3; flex-basis: 100%; }
  .top-in { gap: 10px; }
  .card-body h3 { font-size: 13.5px; }
  footer .sp { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

.cat-ico { width: 84px; height: 84px; border-radius: 22px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.cat-ico svg { width: 38px; height: 38px; }
.noimg { color: var(--line); display: grid; }
.noimg svg { width: 56px; height: 56px; }
.hero-btn { margin-top: 18px !important; }
.hero-btn .btn { height: 46px; }
/* текст для поисковиков до загрузки скриптов */
.seo-h1 { font-family: var(--font-head); font-size: 28px; margin-bottom: 14px; }
.seo-links a { display: inline-block; margin: 0 14px 8px 0; color: var(--blue); font-weight: 700; }
