/* Studio Integration — design tokens, style «Stickers» */

@font-face {
  font-family: "Rubik";
  src: url(/assets/fonts/rubik-latin.woff2?v=691cd1d9) format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik";
  src: url(/assets/fonts/rubik-latin-ext.woff2?v=09472f21) format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Rubik";
  src: url(/assets/fonts/rubik-cyrillic.woff2?v=bdb2b33a) format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "SI Hanzi";
  src: url(/assets/fonts/hanzi.woff2?v=546aaae5) format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+3400-4DBF, U+4E00-9FFF;
}

:root {
  /* colours */
  --paper: #fff4d9;
  --ink: #111;
  --white: #fff;
  --pink: #ff7ac8;
  --cyan: #7de3ff;
  --lime: #c8f04a;
  --yellow: #ffd43b;
  --coral: #ff6b57;
  --violet: #9d8cff;
  --accent: var(--lime);
  --muted: #3b382f;

  /* strokes and hard shadows */
  --bw: 3px;
  --line: var(--bw) solid var(--ink);
  --shadow-s: 4px 4px 0 var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --shadow-l: 10px 10px 0 var(--ink);
  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 28px;

  /* type */
  --font: "Rubik", "SI Hanzi", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-hanzi: "SI Hanzi", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --fs-small: 0.8125rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.6rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.6vw, 3.4rem);
  --fs-h1: clamp(1.9rem, 1.2rem + 3vw, 3.9rem);

  /* layout */
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(48px, 7vw, 112px);
  --header-h: 68px;
}

@media (min-width: 1920px) {
  :root { --wrap: 1520px; }
}

body[data-accent="coral"] { --accent: var(--coral); }
body[data-accent="yellow"] { --accent: var(--yellow); }
body[data-accent="cyan"] { --accent: var(--cyan); }
body[data-accent="lime"] { --accent: var(--lime); }
body[data-accent="violet"] { --accent: var(--violet); }
body[data-accent="pink"] { --accent: var(--pink); }
/* Base: reset, typography, focus */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: clamp(16px, 14.6px + 0.22vw, 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  /* a word is broken only if it cannot fit a line at all; sizes are chosen so that it always fits */
  overflow-wrap: break-word;
  -webkit-hyphens: manual;
  hyphens: manual;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.12; }
h4 { font-size: 1.05rem; line-height: 1.2; letter-spacing: 0; }

p { margin: 0; overflow-wrap: break-word; }
p + p { margin-top: 0.75em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
address { font-style: normal; }
strong, b { font-weight: 800; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--ink); color: var(--lime); }

.hanzi { font-family: var(--font-hanzi); font-weight: 900; text-transform: none; letter-spacing: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lime);
  border: var(--line);
  border-radius: var(--radius-s);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-300%);
}
.skip:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* Layout: wrap, grids, sections, header, footer */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--accent { background: var(--accent); border-block: var(--line); }
.section--white { background: var(--white); border-block: var(--line); }

.section__head { max-width: 46rem; margin-bottom: clamp(24px, 3.5vw, 48px); }
.section__title { font-size: var(--fs-h2); }
.section__lead { margin-top: 14px; font-size: var(--fs-lead); max-width: 40rem; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.bento { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > .bento__wide { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento > * { grid-column: span 2; }
  .bento > .bento__wide { grid-column: span 4; }
  .bento > .bento__half { grid-column: span 3; }
}

/* ---------- header ---------- */

.site-header {
  position: relative;
  z-index: 50;
  background: var(--paper);
  border-bottom: var(--line);
}
.site-header__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: var(--header-h);
  padding-block: 10px;
}

.logo {
  display: inline-flex;
  gap: 0.35em;
  align-items: center;
  margin: 0;
  padding: 7px 13px 6px;
  background: var(--ink);
  color: var(--white);
  border-radius: 10px;
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.15rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transform: rotate(-2deg);
  white-space: nowrap;
  transition: transform 0.18s ease;
}
.logo__b { color: var(--lime); }
a.logo:hover { transform: rotate(1deg) scale(1.04); }
a.logo:focus-visible { outline-offset: 5px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
}
.site-nav__list { display: flex; flex-wrap: wrap; gap: 2px 6px; }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.site-nav__link:hover { background: var(--ink); color: var(--paper); }
.site-nav__link[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--accent); border-radius: 0; }
.site-nav__link[aria-current="page"]:hover { border-radius: 10px; box-shadow: none; }

.lang {
  display: inline-flex;
  margin: 0;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 800;
}
.lang__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 38px;
  padding: 0 12px;
  text-decoration: none;
}
.lang__item--on { background: var(--ink); color: var(--paper); }
a.lang__item:hover { background: var(--lime); }
a.lang__item:focus-visible { outline-offset: -3px; }

.burger {
  width: 48px;
  height: 48px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--lime);
  border: var(--line);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}
.burger__bar { display: block; width: 22px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease; }
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { transform: scaleX(0); }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Order in the header row. Wide screens: logo, menu, language. Phones: logo, language, burger,
   and the menu on its own row below — the language switch is always one tap away. */
.logo { order: 1; }
.site-nav { order: 2; margin-left: auto; }
.lang { order: 3; }
.burger { order: 4; }
@media (max-width: 859px) {
  .lang { order: 2; margin-left: auto; }
  .burger { order: 3; }
  .site-nav { order: 4; flex-basis: 100%; margin-left: 0; }
  .lang__item { min-height: 44px; }
}
@media (max-width: 419px) {
  .site-header__in { gap: 8px 10px; }
  .logo:not(.logo--footer) { flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 11px 5px; font-size: 0.82rem; line-height: 1.08; }
  .lang__item { min-width: 42px; padding: 0 9px; }
}

/* The burger exists only with JavaScript; without it the menu is simply shown in full. */
.js .burger { display: none; }

@media (max-width: 859px) {
  .js .burger { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-basis: 100%;
    gap: 12px;
    padding: 8px 0 14px;
    border-top: var(--line);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .js .site-nav.is-open .site-nav__list { flex-direction: column; gap: 0; }
  .js .site-nav.is-open .site-nav__link { min-height: 50px; font-size: 1.15rem; font-weight: 800; }
}

/* The header follows the page only when it is one compact row: with JavaScript (burger menu)
   or on wide screens. Without JavaScript on a phone the whole menu is open and must scroll away. */
.js .site-header { position: sticky; top: 0; }
@media (min-width: 860px) {
  .site-header { position: sticky; top: 0; }
}

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: var(--paper); border-top: var(--line); }
.site-footer__in {
  display: grid;
  gap: 32px var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  padding-block: clamp(40px, 5vw, 72px) 28px;
}
.site-footer__brand { display: grid; gap: 16px; align-content: start; justify-items: start; }
.logo--footer { background: var(--paper); color: var(--ink); }
.logo--footer .logo__b { color: var(--ink); background: var(--lime); padding: 0 5px; border-radius: 5px; }
.site-footer__tagline { max-width: 22rem; }
.site-footer__mail { font-weight: 800; font-size: 1.1rem; color: var(--lime); }
.site-footer__title {
  margin-bottom: 12px;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  color: var(--yellow);
}
.site-footer__col li + li { margin-top: 2px; }
.site-footer__col a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.site-footer__col a:hover { text-decoration: underline; color: var(--lime); }
.site-footer__legal address { font-size: var(--fs-small); line-height: 1.6; }
.site-footer__legal address p + p { margin-top: 2px; }
.site-footer__bottom {
  padding-block: 18px 26px;
  border-top: 1px solid #3a3a3a;
  font-size: var(--fs-small);
}
.site-footer :focus-visible { outline-color: var(--lime); }
/* Navigation: the "Products" list in the header, the path on product pages, the way home in the footer */

/* ---------- "Products" list (a native <details>, works without JavaScript) ---------- */
.site-nav__drop { position: relative; }
.nav-drop__summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.nav-drop__summary::-webkit-details-marker { display: none; }
.nav-drop__summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  margin-top: -4px;
  border: solid currentColor;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.nav-drop[open] .nav-drop__summary::after { margin-top: 4px; transform: rotate(-135deg); }
.nav-drop__summary:hover, .nav-drop[open] .nav-drop__summary { background: var(--ink); color: var(--paper); }
.nav-drop--current:not([open]) .nav-drop__summary:not(:hover) { box-shadow: inset 0 -4px 0 var(--accent); border-radius: 0; }

.nav-drop__list {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 60;
  display: grid;
  gap: 2px;
  width: max-content;
  min-width: 260px;
  max-width: min(340px, calc(100vw - 2 * var(--gutter)));
  padding: 8px;
  border: var(--line);
  border-radius: var(--radius-s);
  background: var(--white);
  box-shadow: var(--shadow);
}
.nav-drop__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 10px;
  border-radius: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.nav-drop__link:hover { background: var(--paper); }
.nav-drop__link[aria-current="page"] { background: var(--accent); }
.nav-drop__link--all { justify-content: center; margin-top: 4px; background: var(--ink); color: var(--paper); font-weight: 800; }
.nav-drop__link--all:hover { background: var(--lime); color: var(--ink); }
.nav-drop__icon {
  display: block;
  width: 34px;
  height: 34px;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--white);
  object-fit: cover;
  overflow: hidden;
}
.nav-drop__icon--drawn { padding: 1px; }

@media (max-width: 859px) {
  /* in the flow on phones, with or without JavaScript: nothing can stick out of the screen */
  .site-nav__drop { position: static; }
  .js .site-nav.is-open .nav-drop__summary { min-height: 50px; font-size: 1.15rem; font-weight: 800; }
  .nav-drop__list {
    position: static;
    width: auto;
    max-width: none;
    margin: 4px 0 8px;
    box-shadow: none;
  }
}

/* ---------- path on product pages: Home / Products / This product ---------- */
.crumbs { margin-bottom: clamp(6px, 1vw, 14px); font-size: var(--fs-small); font-weight: 700; line-height: 1.3; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; font-weight: 400; }
.crumbs a { display: inline-flex; align-items: center; min-height: 30px; }
.crumbs a:hover { text-decoration-thickness: 3px; }

/* ---------- footer: a clear way home ---------- */
a.logo--footer:hover { transform: rotate(1deg) scale(1.04); }
.site-footer__home { min-height: 46px; padding: 8px 20px; background: var(--lime); box-shadow: 4px 4px 0 var(--paper); }
a.site-footer__home:hover { box-shadow: 6px 6px 0 var(--paper); }
a.site-footer__home:active { box-shadow: 0 0 0 var(--paper); }
.site-footer__home::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border: solid var(--ink);
  border-width: 0 0 3px 3px;
  transform: rotate(45deg);
}
/* Components: buttons, stickers, cards, marquee, phone frame */

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 24px;
  border: var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-s);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
a.btn:hover, button.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
a.btn:active, button.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn--primary { background: var(--lime); font-size: 1.0625rem; }
.btn--ghost { background: transparent; box-shadow: none; }
a.btn--ghost:hover { background: var(--white); box-shadow: var(--shadow-s); }
.btn--soon {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  cursor: default;
  font-weight: 700;
}
.btn--soon::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--ink);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- stickers ---------- */
.sticker {
  display: inline-block;
  padding: 0.12em 0.5em 0.14em;
  border: var(--line);
  border-radius: var(--radius-s);
  background: var(--white);
  box-shadow: var(--shadow-s);
  font-weight: 800;
  line-height: 1.2;
}
.sticker--round {
  display: inline-grid;
  place-items: center;
  width: 8.8em;
  height: 8.8em;
  padding: 0.6em;
  border-radius: 50%;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-size: var(--fs-small);
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}

/* ---------- cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.2vw, 30px);
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  min-width: 0;
}
.card__title { font-size: var(--fs-h3); }
.card__text { color: var(--muted); }
.bg-ink .card__text, .card.bg-ink .card__text { color: var(--paper); }
.card--link { color: inherit; text-decoration: none; transition: transform 0.14s ease, box-shadow 0.14s ease; }
.card--link:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-l); }
.card--link:active { transform: translate(5px, 5px); box-shadow: 2px 2px 0 var(--ink); }
.card--link:focus-visible { outline-offset: 6px; border-radius: var(--radius); }
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  font-weight: 800;
}
.card__more::after {
  content: "";
  width: 30px;
  height: 14px;
  flex: none;
  background: linear-gradient(var(--ink), var(--ink)) left center / 100% 3px no-repeat;
  clip-path: polygon(0 40%, 68% 40%, 68% 0, 100% 50%, 68% 100%, 68% 60%, 0 60%);
  background: var(--ink);
  transition: transform 0.14s ease;
}
.card--link:hover .card__more::after { transform: translateX(6px); }

.num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: var(--line);
  border-radius: 50%;
  background: var(--accent);
  font-weight: 900;
  font-size: 1.1rem;
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: var(--line);
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
}
.marquee__track { display: flex; width: max-content; }
.marquee__group { display: flex; flex: none; align-items: center; gap: 28px; padding: 14px 14px 14px 14px; padding-right: 28px; }
.marquee__group > * { white-space: nowrap; }
.marquee__dot { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--lime); }
.marquee__group > :nth-child(4n + 2).marquee__dot { background: var(--pink); }
.marquee__group > :nth-child(4n).marquee__dot { background: var(--cyan); }

/* ---------- phone frame ---------- */
.phone {
  width: min(100%, 300px);
  aspect-ratio: 9 / 18;
  padding: 9px;
  border: var(--line);
  border-radius: 38px;
  background: var(--ink);
  box-shadow: var(--shadow-l);
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 28px;
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone__screen::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 64px;
  height: 14px;
  margin-left: -32px;
  border-radius: 10px;
  background: var(--ink);
  z-index: 2;
}

/* ---------- facts strip ---------- */
.facts { display: grid; gap: var(--gap); margin: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.fact { padding: 16px 18px; border: var(--line); border-radius: var(--radius-s); background: var(--white); }
.fact__label { font-size: var(--fs-small); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.fact__value { margin: 4px 0 0; font-weight: 800; font-size: 1.1rem; line-height: 1.25; overflow-wrap: break-word; }
/* First screen. Order of content is fixed by the three-second rule:
   what it is → benefit headline → one-line explanation → three points → button. */

.hero {
  position: relative;
  padding-block: clamp(22px, 3.6vw, 60px) clamp(40px, 6vw, 88px);
  overflow: clip;
}
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__in { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
}
.hero__copy { min-width: 0; }

.hero__what {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(12px, 1.4vw, 20px);
  padding: 6px 14px 6px 10px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: clamp(0.875rem, 0.82rem + 0.3vw, 1.05rem);
  font-weight: 800;
  line-height: 1.3;
}
.hero__what::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--ink);
}

.hero__title { max-width: 20ch; }
.hl {
  background: var(--accent);
  color: inherit;
  padding: 0 0.14em;
  border-radius: 0.16em;
  box-shadow: inset 0 0 0 var(--bw) var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__lead {
  margin-top: clamp(12px, 1.5vw, 22px);
  max-width: 36rem;
  font-size: var(--fs-lead);
  line-height: 1.45;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: clamp(12px, 1.5vw, 22px);
}
.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px 5px 11px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}
.hero__points li::before {
  content: "";
  width: 7px;
  height: 12px;
  flex: none;
  margin: -3px 2px 0 3px;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.hero__cta { margin-top: clamp(16px, 2vw, 28px); }
.hero__note {
  margin-top: 14px;
  max-width: 34rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

/* Low landscape phones: keep the answer on the first screen, art goes below. */
@media (max-height: 480px) and (min-width: 600px) {
  .hero { padding-top: 14px; }
  .hero__title { font-size: clamp(1.6rem, 6vh + 0.6rem, 2.6rem); max-width: none; }
  .hero__lead { margin-top: 8px; font-size: 1rem; }
  .hero__points, .hero__cta { margin-top: 10px; }
}

.emblem { width: 100%; height: auto; }
.emblem__hanzi { font-family: var(--font-hanzi); font-weight: 900; }
/* Product identity: the real icon and the name at the very start of a product page,
   and the same mark in cards and lists. Paper Games uses its drawn emblem (--drawn). */

.hero__id { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(10px, 1.2vw, 18px); }
.hero__id-text { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.hero__id-text p { margin: 0; }
.hero__name {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
.hero__icon {
  display: block;
  width: clamp(60px, 6vw, 84px);
  height: auto;
  aspect-ratio: 1;
  flex: none;
  border: var(--line);
  border-radius: 22%;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  object-fit: cover;
  overflow: hidden;
}
.hero__icon--drawn { padding: 3px; }
.hero--dark .hero__icon { border-color: var(--white); box-shadow: 3px 3px 0 var(--violet); }

/* big icon in the right column (wide screens only: on phones the small one above is enough) */
.app-hero { display: none; }
@media (max-width: 959px) {
  .hero__art:has(.app-hero) { display: none; }
}
@media (min-width: 960px) {
  .app-hero {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 18px;
    width: min(100%, 380px);
    padding-top: 14px;
  }
  .hero--product .hero__icon { display: none; }
  .hero--product .hero__icon--drawn { display: block; }
}
.app-icon {
  width: min(100%, 300px);
  height: auto;
  border: var(--line);
  border-radius: 22%;
  background: var(--white);
  box-shadow: var(--shadow-l);
  transform: rotate(3deg);
}
.app-hero__name { margin: 0; font-size: clamp(1rem, 0.9rem + 0.6vw, 1.4rem); font-weight: 900; text-transform: uppercase; text-align: center; }
.app-hero__status { position: absolute; top: 0; right: 0; margin: 0; font-size: 0.9rem; }
.hero--dark .app-icon { border-color: var(--white); box-shadow: 10px 10px 0 var(--violet); }
.hero--dark .app-hero__name { color: var(--ink); }
.hero--dark .app-hero__status { background: var(--lime); color: var(--ink); }

/* marks in cards and lists */
.home-art__icon, .product-card__icon, .more-card__icon, .notfound__icon {
  display: block;
  height: auto;
  aspect-ratio: 1;
  flex: none;
  border: var(--line);
  border-radius: 22%;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  object-fit: cover;
  overflow: hidden;
}
.home-art__icon { width: min(68%, 100px); }
.product-card__icon { width: clamp(72px, 7vw, 104px); }
.more-card__icon { width: 72px; }
.notfound__icon { width: 36px; border-width: 2px; border-radius: 9px; box-shadow: none; }
.home-art__icon--drawn, .product-card__icon--drawn, .more-card__icon--drawn { border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.notfound__icon--drawn { padding: 1px; }

/* section head with a picture on the right */
.section__split { display: grid; gap: clamp(20px, 4vw, 56px); align-items: center; margin-bottom: clamp(24px, 3.5vw, 48px); }
.section__split .section__head { margin-bottom: 0; }
.section__art { display: grid; place-items: center; min-width: 0; }
@media (min-width: 960px) {
  .section__split { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
}

.more__home { margin-top: clamp(20px, 3vw, 36px); }
.section--ink .more__home .btn { box-shadow: 4px 4px 0 var(--lime); }

/* Product pages: keep the whole first screen (icon, name, what, headline, points, buttons)
   above the fold — the three-second rule. */
.hero--product .hero__title { font-size: clamp(1.75rem, 1.05rem + 2.7vw, 3.4rem); }
@media (max-width: 959px) {
  .hero--product .hero__icon { width: 52px; }
  .hero--product .hero__id { gap: 10px; margin-bottom: 8px; }
  .hero--product .hero__id-text { gap: 3px; }
  .hero--product .hero__name { font-size: 1rem; }
  .hero--product .hero__what {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
  }
  .hero--product .hero__what::before { content: none; }
  .hero--dark .hero__what { color: var(--paper); }
  .hero--product .hero__lead { margin-top: 8px; font-size: 1rem; line-height: 1.4; }
  .hero--product .hero__points { margin-top: 10px; gap: 6px 8px; }
  .hero--product .hero__points li { padding: 3px 10px 3px 8px; font-size: 0.875rem; }
  .hero--product .hero__cta { margin-top: 12px; gap: 10px; }
  .hero--product .hero__cta .btn { min-height: 46px; padding: 8px 18px; }
  .crumbs { margin-bottom: 4px; font-size: 0.75rem; }
  .crumbs a { min-height: 26px; }
}

/* wide screens: the name is already in the path above and on the sticker under the big icon */
@media (min-width: 960px) {
  .hero--product .hero__name { display: none; }
}
/* Motion. Everything here is optional decoration: without JavaScript nothing is hidden. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js [data-reveal].is-in.tilt-l { transform: rotate(-2deg); }
.js [data-reveal].is-in.tilt-r { transform: rotate(2deg); }
.js [data-reveal="2"].is-in { transition-delay: 0.05s; }
.js [data-reveal="3"].is-in { transition-delay: 0.1s; }
.js [data-reveal="4"].is-in { transition-delay: 0.15s; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee__track { animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes wobble {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
.wobble { animation: wobble 5s ease-in-out infinite; }
.float { animation: float 6s ease-in-out infinite; }
.sticker { transition: transform 0.16s ease; }
.sticker:hover { transform: rotate(0deg) scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .marquee__track {
    animation: none;
    transition: none;
    flex-wrap: wrap;
    width: auto;
  }
  .marquee__group[aria-hidden="true"] { display: none; }
}

@media print {
  .js [data-reveal] { opacity: 1; transform: none; }
  .site-header { position: static; }
  .marquee { display: none; }
}
/* Colour and tilt helpers. They come after the components so that a fill class
   always wins over the default white of a sticker, card or button. */

.bg-pink { background-color: var(--pink); }
.bg-cyan { background-color: var(--cyan); }
.bg-lime { background-color: var(--lime); }
.bg-yellow { background-color: var(--yellow); }
.bg-coral { background-color: var(--coral); }
.bg-violet { background-color: var(--violet); }
.bg-paper { background-color: var(--paper); }
.bg-white { background-color: var(--white); }
.bg-accent { background-color: var(--accent); }
.bg-ink { background-color: var(--ink); color: var(--paper); }

.tilt-l { transform: rotate(-2deg); }
.tilt-r { transform: rotate(2deg); }
/* Home page */

/* ---------- hero collage: five products at a glance ---------- */
.home-art {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  width: min(100%, 560px);
}
.home-art li { display: grid; min-width: 0; }
.home-art__tile {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: clamp(8px, 1.2vw, 16px) 6px clamp(8px, 1vw, 12px);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.home-art__tile:hover { transform: rotate(0deg) translate(-2px, -3px); box-shadow: var(--shadow); }
.home-art__name {
  font-size: clamp(0.72rem, 0.66rem + 0.3vw, 0.9rem);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: break-word;
}
.home-art__badge { place-items: center; }
.home-art__badge .sticker--round { font-size: clamp(0.72rem, 0.62rem + 0.5vw, 1rem); }

/* ---------- services ---------- */
.service__icon {
  width: 84px;
  height: 84px;
  padding: 10px;
  border: var(--line);
  border-radius: 18px;
  box-shadow: 3px 3px 0 var(--ink);
}
.service__tag { margin-top: auto; padding-top: 6px; }

/* ---------- products ---------- */
.product-card { gap: 8px; min-height: 100%; }
.product-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.product-card__kind {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.4;
  text-transform: uppercase;
}
.product-card__name { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem); }
.product-card__benefit { font-size: 1.05rem; font-weight: 500; line-height: 1.4; max-width: 34rem; }
.product-card.bento__wide .product-card__name { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 3rem); }
.product-card.bento__wide .product-card__benefit { font-size: var(--fs-lead); }

/* ---------- process ---------- */
.section--ink .eyebrow { color: var(--ink); }
.section--ink .section__lead { color: var(--paper); }
.steps { counter-reset: step; }
.step { color: var(--ink); }
.step .card__title { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); }
.step:nth-child(1) .num { background: var(--lime); }
.step:nth-child(2) .num { background: var(--cyan); }
.step:nth-child(3) .num { background: var(--yellow); }
.step:nth-child(4) .num { background: var(--pink); }
.section--ink .card { box-shadow: 7px 7px 0 var(--lime); }
.section--ink :focus-visible { outline-color: var(--lime); }

/* ---------- about ---------- */
.about { display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
}
.about .section__head { margin-bottom: 18px; }
.about__lead { font-size: var(--fs-lead); max-width: 40rem; }
.about__platforms {
  padding: clamp(18px, 2.2vw, 30px);
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.about__sub { margin-bottom: 18px; font-size: 1.05rem; letter-spacing: 0.02em; }
.about__list { display: flex; flex-wrap: wrap; gap: 14px 12px; }
.about__list .sticker { font-size: 1.05rem; padding: 0.3em 0.7em; }

/* ---------- contact ---------- */
.contact {
  padding: clamp(24px, 4vw, 64px);
  border: var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
}
.contact__mail { margin-top: clamp(18px, 2.4vw, 32px); }
.contact__mail a {
  display: inline-block;
  padding: 0.12em 0.4em;
  border: var(--line);
  border-radius: 0.3em;
  background: var(--white);
  box-shadow: var(--shadow-s);
  font-size: clamp(1.3rem, 0.3rem + 5.4vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.contact__mail a:hover { background: var(--lime); transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.contact__note { margin-top: 18px; font-weight: 700; }

/* phones: the three directions fit under the lead without pushing the buttons off the first screen */
@media (max-width: 599px) {
  .hero--home { padding-top: 14px; }
  .hero--home .hero__points { gap: 6px 8px; }
  .hero--home .hero__points li { padding: 4px 10px 4px 8px; font-size: 0.875rem; }
}

/* The label of a product is always one line. When it does not fit next to the icon (narrow phones,
   long labels like «PWA · Android / iOS»), it moves under the icon as a whole instead of breaking in two. */
.product-card__top { flex-wrap: wrap; row-gap: 10px; }
.product-card__top .tag { white-space: nowrap; text-align: center; justify-content: center; }
@media (max-width: 699px) {
  .product-card__icon { width: 60px; }
}
/* the narrowest phones: every label stands under its icon, so that all cards look the same */
@media (max-width: 349px) {
  .product-card__top { flex-direction: column; align-items: flex-start; }
}
/* Home: "Building an app is not enough" — developers + industry experts */

.team .section__head { max-width: 52rem; }
.team .section__lead { max-width: 46rem; font-weight: 500; }

.team__experts { position: relative; display: grid; gap: var(--gap); }
.expert { gap: 14px; }
.expert__head { display: flex; align-items: center; gap: 14px; }
.expert__head .service__icon { width: 64px; height: 64px; padding: 7px; flex: none; }
.expert__text { font-size: 1.05rem; line-height: 1.5; }
.expert__sub {
  margin: 4px 0 0;
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.expert__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.expert__tags .tag { white-space: normal; }

.team__plus {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0;
  justify-self: center;
  border: var(--line);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: var(--shadow-s);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.team__experts > .expert:nth-child(1) { order: 1; }
.team__plus { order: 2; }
.team__experts > .expert:nth-child(2) { order: 3; }
@media (min-width: 860px) {
  .team__experts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px); }
  .team__plus { position: absolute; left: 50%; top: 50%; z-index: 1; margin: -28px 0 0 -28px; }
}

.team__principles {
  display: grid;
  gap: var(--gap);
  margin-top: clamp(24px, 3vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.principle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(16px, 1.8vw, 22px);
  border: var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}
.principle .num { background: var(--yellow); color: var(--ink); }
.principle__title { font-size: 1.15rem; line-height: 1.15; }
.principle__text { margin-top: 6px; }

/* products on the home page: on mid-width screens a lone last card takes the whole row */
@media (min-width: 700px) and (max-width: 1099px) {
  .bento > :last-child:nth-child(odd) { grid-column: span 2; }
}

/* The card title («РАЗРАБОТЧИКИ») must never run up to the edge of the card: it takes the room
   left by the icon, is sized to fit there and keeps the card padding on the right. */
.expert__head { min-width: 0; }
.expert__head .card__title { flex: 1 1 0; min-width: 0; font-size: clamp(0.9rem, 0.55rem + 1.9vw, 1.6rem); }
@media (max-width: 699px) {
  .expert__head { gap: 12px; }
  .expert__head .service__icon { width: 52px; height: 52px; padding: 6px; }
}
/* Product pages */

/* ---------- hero in the colour of the product ---------- */
.hero--product { background: var(--accent); border-bottom: var(--line); padding-top: clamp(12px, 2vw, 32px); }
.hero--product .hero__what::before { background: var(--ink); }
.hero--product .hl { background: var(--white); }
.hero--product .hero__note { color: var(--ink); font-weight: 500; }
.hero--product .btn--primary { background: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--white); }
.hero--product a.btn--primary:hover { box-shadow: 6px 6px 0 var(--white); }
.hero--product a.btn--primary:active { box-shadow: 0 0 0 var(--white); }
.hero--product .btn--soon { background: var(--white); }
.hero--product .btn--soon::before { background: var(--ink); }

/* ---------- benefits ---------- */
.benefits {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
@media (min-width: 1100px) {
  .benefits--n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefits--n7, .benefits--n8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .benefits--n10 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.benefit { gap: 10px; }
.benefit .num { background: var(--white); width: 40px; height: 40px; font-size: 1rem; }
.benefit.bg-white .num { background: var(--accent); }
.benefit__title { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.4rem); }
.benefit__text { line-height: 1.45; }

/* ---------- showcase ---------- */
.show { display: grid; gap: clamp(36px, 6vw, 88px); }
.show__row { display: grid; gap: clamp(20px, 4vw, 64px); align-items: center; }
.show__copy { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.show__copy .num { width: 52px; height: 52px; font-size: 1.3rem; }
.show__title { font-size: clamp(1.4rem, 1.05rem + 1.6vw, 2.4rem); }
.show__text { font-size: var(--fs-lead); max-width: 34rem; }
.show__art { display: grid; place-items: center; min-width: 0; }
@media (max-width: 859px) {
  .show__copy { order: -1; }
}
@media (min-width: 860px) {
  .show__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .show__row--flip .show__art { order: 2; }
}

/* generic illustration card */
.mock {
  width: min(100%, 420px);
  padding: clamp(16px, 2vw, 26px);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-l);
  display: grid;
  gap: 12px;
}
.show__row:nth-child(odd) .mock { transform: rotate(-1.5deg); }
.show__row:nth-child(even) .mock { transform: rotate(1.5deg); }
.mock__cap {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- facts ---------- */
#facts .section__head { margin-bottom: 20px; }
#facts .section__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); }
.fact { box-shadow: var(--shadow-s); }

/* ---------- call to action ---------- */
.cta {
  padding: clamp(24px, 4vw, 64px);
  border: var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
}
.cta__buttons { margin-top: clamp(18px, 2.4vw, 30px); }
.cta .btn--primary { background: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--white); }
.cta a.btn--primary:hover { box-shadow: 6px 6px 0 var(--white); }
.cta .btn--soon { background: var(--white); }
.cta .btn--soon::before { background: var(--ink); }

/* ---------- other products ---------- */
.more-card { gap: 8px; box-shadow: 7px 7px 0 var(--white); color: var(--ink); }
.section--ink .more-card { box-shadow: 6px 6px 0 var(--white); }
.section--ink .more-card:hover { box-shadow: 9px 9px 0 var(--white); }
.more-card__kind { font-size: var(--fs-small); font-weight: 700; line-height: 1.3; }
.more-card .card__title { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.45rem); }

/* ten benefits stand in five narrow columns: the title is sized so that no word is split */
@media (min-width: 1100px) {
  .benefits--n10 .benefit__title { font-size: clamp(1rem, 0.9rem + 0.25vw, 1.15rem); }
}

/* Between 1100 and 1439 px five columns are too narrow for words like «синхронизируются»:
   ten benefits stand in four columns there. Titles are sized so that no word is split. */
@media (min-width: 1100px) and (max-width: 1439px) {
  .benefits--n10 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.benefit__title { font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.3rem); }
/* Dictionary page: stylised app screens */

.dict-hero {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 420px);
  padding: 18px clamp(22px, 10vw, 44px);
}
.dict-hero .phone { width: min(100%, 270px); transform: rotate(3deg); }
.dict-hero__s1, .dict-hero__s2, .dict-hero__s3 { position: absolute; font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.25rem); }
.dict-hero__s1 { top: 9%; right: 0; }
.dict-hero__s2 { bottom: 16%; left: 0; }
.dict-hero__s3 { top: 46%; right: 0; font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); padding: 0.1em 0.35em; }

.scr {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 34px 14px 16px;
  background: var(--paper);
}
.scr__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.scr .word { flex: 1; align-content: center; }
.scr .rate { margin-top: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scr .rate__b { min-height: 28px; }

.word {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 14px 10px;
  border: var(--line);
  border-radius: 16px;
  background: var(--white);
  text-align: center;
}
.mock .word { border: 0; padding: 0; }
.word__hanzi { font-size: clamp(3rem, 2.4rem + 2.4vw, 4.6rem); line-height: 1.1; }
.scr .word__hanzi { font-size: 3.4rem; }
.word__pinyin { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.02em; }
.word__ru {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--lime);
  font-size: 1.15rem;
  font-weight: 800;
}
.word__label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.word__meaning { margin-top: 4px; font-size: 1.1rem; font-weight: 500; }
p + p.word__pinyin, .word p + p { margin-top: 0; }
.word .word__ru, .word .word__meaning { margin-top: 4px; }

.tones { display: inline-flex; gap: 5px; justify-content: center; }
.tone {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 900;
}
.tone--1 { background: var(--coral); }
.tone--2 { background: var(--yellow); }
.tone--3 { background: var(--lime); }
.tone--4 { background: var(--cyan); }
.mock .tones { margin-top: 2px; }

.rate { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.rate__b {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 2px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: break-word;
}
.mock--review { justify-items: center; text-align: center; }
.mock--review .rate { width: 100%; }
.mock--review .rate__b { min-height: 44px; font-size: 0.8125rem; }
.mock__days {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  margin-top: 0;
  font-size: var(--fs-small);
  font-weight: 700;
  text-align: center;
}

.grid-hanzi { width: 100%; height: auto; }
.mock--strokes { width: min(100%, 340px); }

.mock__bar { height: 14px; margin-top: 0; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); overflow: hidden; }
.mock__bar i { display: block; width: 39%; height: 100%; background: var(--coral); border-right: 2px solid var(--ink); }
.radicals { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.radicals__c {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--paper);
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.7rem);
  line-height: 1;
}
.radicals__c.is-done { background: var(--coral); }

/* the four answers inside the drawn phone: small enough for «Трудно» and «Хорошо» on a 320 px screen */
.scr .rate__b { padding: 2px 1px; font-size: 0.5625rem; letter-spacing: -0.01em; }

/* narrow phones: the four answers of the review card stay in one row without splitting a word */
@media (max-width: 419px) {
  .mock--review .rate__b { padding: 2px 1px; font-size: 0.6875rem; letter-spacing: -0.01em; }
  .mock--review .mock__days { font-size: 0.6875rem; }
}
/* Paper Games page */

.board { width: 100%; height: auto; }

/* hero: two sheets of squared paper */
.pg-hero {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1 / 0.92;
}
.pg-hero__sheet {
  position: absolute;
  top: 0;
  left: 0;
  width: 62%;
  padding: 10px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.pg-hero__sheet--2 { top: auto; left: auto; right: 0; bottom: 0; }
.pg-hero__badge { position: absolute; top: 2%; right: 4%; font-size: clamp(0.72rem, 0.62rem + 0.5vw, 0.95rem); }

/* catalogue inside a phone */
.scr--pg { background: var(--yellow); }
.pg-tiles { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: space-evenly; }
.scr--pg .pg-again__btn { padding: 8px; font-size: 0.75rem; box-shadow: 3px 3px 0 var(--ink); }
.pg-tile {
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  text-align: center;
}
.pg-tile__name { font-size: 0.6875rem; font-weight: 800; line-height: 1.15; overflow-wrap: break-word; }

/* modes */
.mock--modes { gap: 14px; }
.pg-mode {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 16px;
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-s);
  font-size: 1.15rem;
  font-weight: 800;
}
.pg-mode + .pg-mode { margin-top: 0; }
.pg-mode__n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-size: 0.95rem;
}

/* play again */
.mock--again { justify-items: center; width: min(100%, 340px); }
.pg-again__board { width: 70%; }
.pg-again__level { margin: 0; }
.pg-again__btn {
  width: 100%;
  margin: 0;
  padding: 12px;
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-s);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

/* the four games */
.games { display: grid; gap: var(--gap); }
@media (min-width: 1000px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.game { display: grid; gap: clamp(14px, 2vw, 24px); align-items: start; }
@media (min-width: 560px) {
  .game { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}
.game__art { max-width: 260px; }
.game__copy { display: grid; gap: 10px; min-width: 0; justify-items: start; }
.game__copy p { margin: 0; }
.game__pitch { font-size: 1.1rem; font-weight: 500; line-height: 1.4; }
.game__rules { font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.game__rules strong { color: var(--ink); }
.game__store { margin-top: 4px; }
.game .btn { min-height: 46px; padding: 8px 16px; font-size: 0.9rem; }
.section--accent .section__lead { font-weight: 500; }
/* Pickup Point Tycoon page */

.ty-hero { width: min(100%, 460px); transform: rotate(1.5deg); }
.tycoon-scene { width: 100%; height: auto; }
.tycoon-scene__t { font-family: var(--font); }

/* parcel path: truck → shelf → customer */
.mock--loop {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.ty-step {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: var(--line);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}
.ty-step svg { width: min(100%, 64px); height: auto; }
.ty-step__l { font-size: var(--fs-small); font-weight: 800; text-align: center; line-height: 1.2; overflow-wrap: break-word; }
.ty-arrow {
  width: 22px;
  height: 14px;
  background: var(--ink);
  clip-path: polygon(0 35%, 60% 35%, 60% 0, 100% 50%, 60% 100%, 60% 65%, 0 65%);
}

/* a working day */
.mock--day { gap: 10px; }
.ty-day {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: var(--line);
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 800;
}
.ty-day .tag, .ty-day .ty-stars { margin-left: auto; }
.ty-day__n {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-size: 0.95rem;
}
.ty-stars { display: inline-flex; gap: 4px; }
.ty-stars i {
  width: 22px;
  height: 22px;
  background: var(--ink);
  clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 35%);
}

/* holidays */
.mock--events { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ty-event {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: var(--line);
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}
.ty-event strong { font-size: 1.05rem; font-weight: 900; text-transform: uppercase; line-height: 1.15; overflow-wrap: break-word; }
/* Gym CRM page */

.gym-ico { width: 30px; height: 30px; flex: none; }

/* hero: four roles around one database */
.gym-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 24px);
  align-items: center;
  width: min(100%, 520px);
}
.gym-role {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: clamp(8px, 1.2vw, 14px) clamp(8px, 1vw, 12px);
  border: var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-s);
  font-size: clamp(0.78rem, 0.7rem + 0.35vw, 1rem);
  font-weight: 800;
  line-height: 1.15;
  min-width: 0;
  overflow-wrap: break-word;
}
.gym-db {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 4px;
  order: 0;
}
.gym-role--1, .gym-role--2 { order: -1; }
.gym-db svg { width: clamp(84px, 11vw, 128px); height: auto; }
.gym-db__l {
  padding: 3px 12px;
  border: var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* role screens */
.gym-screen { width: min(100%, 360px); gap: 12px; }
.gym-screen__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 12px;
  border: var(--line);
  border-radius: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  overflow-wrap: break-word;
}
.gym-list { display: grid; gap: 8px; }
.gym-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  font-weight: 700;
  font-size: 0.95rem;
}
.gym-row__r { font-size: var(--fs-small); font-weight: 800; text-align: right; }
.gym-row.is-on { background: var(--lime); }
.gym-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin: 0; }
.gym-day { display: block; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); }
.gym-day.is-on { background: var(--coral); }
.gym-checks { display: grid; gap: 8px; }
.gym-check { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.gym-check i {
  position: relative;
  width: 24px;
  height: 24px;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--white);
}
.gym-check.is-done i { background: var(--lime); }
.gym-check.is-done i::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.gym-chart { width: 100%; height: auto; }
/* ABYSS LINE page: dark first screen, the rest in the common style */

.hero--dark { background: var(--ink); color: var(--paper); border-bottom: var(--line); }
.hero--dark .hero__what { background: var(--violet); color: var(--ink); border-color: var(--white); box-shadow: 3px 3px 0 var(--white); }
.hero--dark .hero__what::before { background: var(--lime); border-color: var(--ink); }
.hero--dark .hl { background: var(--violet); color: var(--ink); box-shadow: inset 0 0 0 var(--bw) var(--white); }
.hero--dark .hero__points li { border-color: var(--white); background: transparent; color: var(--paper); }
.hero--dark .hero__points li::before { border-color: var(--lime); }
.hero--dark .hero__note { color: var(--paper); }
.hero--dark .btn { border-color: var(--white); box-shadow: 4px 4px 0 var(--violet); }
.hero--dark a.btn:hover { box-shadow: 6px 6px 0 var(--violet); }
.hero--dark .btn--primary { background: var(--lime); color: var(--ink); box-shadow: 4px 4px 0 var(--white); }
.hero--dark .btn--soon { background: transparent; color: var(--paper); border-color: var(--white); box-shadow: none; }
.hero--dark .btn--soon::before { background: var(--lime); border-color: var(--white); }
.hero--dark :focus-visible { outline-color: var(--lime); }

.abyss-hero { width: min(100%, 440px); transform: rotate(-1.5deg); }
.abyss-scene, .abyss-card { width: 100%; height: auto; }
.abyss-scene__t { font-family: var(--font); text-transform: uppercase; letter-spacing: 0.04em; }
.mock--abyss { padding: 12px; gap: 8px; }
/* Text pages: privacy policy and "not found" */

.doc { padding-block: clamp(32px, 5vw, 80px) var(--section); }
.doc__in { max-width: 860px; }
.doc__title { font-size: var(--fs-h2); }
.doc__updated { margin-top: 12px; font-weight: 700; }
.doc__intro { margin-top: 16px; font-size: var(--fs-lead); }
.doc__laws { margin-top: 12px; }
.doc__toc { margin-top: 22px; padding: 16px 20px; border: var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-s); }
.doc__toc ol { display: grid; gap: 2px; padding-left: 1.5em; list-style: decimal; font-weight: 700; }
.doc__toc a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 500; }
.doc__section { margin-top: clamp(28px, 4vw, 48px); }
.doc__section h2 { margin-bottom: 14px; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); }
.doc__section p + p, .doc__section p + ul, .doc__section ul + p { margin-top: 12px; }
.doc__list { display: grid; gap: 10px; }
.doc__list li { position: relative; padding-left: 30px; }
.doc__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--lime);
}
.doc__card {
  margin-top: 14px;
  padding: clamp(16px, 2vw, 24px);
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  line-height: 1.6;
  overflow-wrap: break-word;
}
.doc__card p + p { margin-top: 2px; }
.doc__strong { font-weight: 700; }
.doc__mail .btn { overflow-wrap: anywhere; }

.notfound__in { display: grid; justify-items: start; gap: 18px; }
.notfound__code { display: flex; gap: 12px; margin: 0 0 8px; font-size: clamp(3.4rem, 2rem + 9vw, 8rem); font-weight: 900; line-height: 1; }
.notfound__code .sticker { padding: 0.04em 0.22em; border-radius: 0.16em; box-shadow: var(--shadow); }
.notfound__title { font-size: var(--fs-h2); }
.notfound__cta { margin-top: 6px; }
.notfound__sub { margin-top: clamp(20px, 3vw, 40px); font-size: var(--fs-h3); }
.notfound__list { display: flex; flex-wrap: wrap; gap: 12px; }
.notfound__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 16px 6px 8px;
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-s);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.notfound__item:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

/* the longest word of the title («КОНФИДЕНЦИАЛЬНОСТИ») must fit the narrowest phone in one piece */
.doc__title { font-size: clamp(1.3rem, 5.6vw, 2.6rem); }
/* Phones: a group of cards is one row that is swiped sideways (the next card peeks in from the
   right), so that a page is not one endless column. Works by touch without JavaScript;
   site.js adds the arrows and the "2 / 5" counter. On wider screens the groups stay grids. */

.swipe-nav { display: none; }

@media (max-width: 699px) {
  .swipe {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 min(84%, 340px); min-width: 0; scroll-snap-align: start; }
  .swipe > .fact { flex-basis: min(72%, 290px); }
  .swipe > .show__row { flex-basis: min(88%, 360px); align-content: start; }
  .swipe > .game { flex-basis: min(88%, 360px); }
  .swipe > .expert { order: 0; }
  .swipe > .team__plus { display: none; }
  /* cards in a row are shown at once: they must not wait to be scrolled into view */
  .js .swipe [data-reveal] { opacity: 1; transform: none; }

  .swipe-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
  .swipe-nav[hidden] { display: none; }
  .swipe-nav__btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: var(--line);
    border-radius: 50%;
    background: var(--white);
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer;
  }
  .swipe-nav__btn::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-left: 4px;
    border: solid var(--ink);
    border-width: 0 0 3px 3px;
    transform: rotate(45deg);
  }
  .swipe-nav__btn--next::before { margin-left: -4px; transform: rotate(-135deg); }
  .swipe-nav__btn:disabled { opacity: 0.35; box-shadow: none; cursor: default; }
  .swipe-nav__count { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.04em; }
  .section--ink .swipe-nav__btn { box-shadow: 3px 3px 0 var(--lime); }
  .section--ink .swipe-nav__count { color: var(--paper); }
}
