@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("/fonts/onest-latin-400-normal.woff2") format("woff2"); 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: "Onest"; font-weight: 400; font-display: swap; src: url("/fonts/onest-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Onest"; font-weight: 700; font-display: swap; src: url("/fonts/onest-latin-700-normal.woff2") format("woff2"); 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: "Onest"; font-weight: 700; font-display: swap; src: url("/fonts/onest-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }
:root {
  --plum: #4B1D52; --sun: #FFD43B; --ochre: #E0A100; --indigo: #2B3A8C; --rose: #B04866;
  --paper: #F6F3EC; --ink: #16131F;
  --bg: var(--paper); --surface: #FFFFFF; --surface-2: #EFEBE2; --line: #E3DDD0; --line-strong: #D0C8B7;
  --text: var(--ink); --muted: #4B4757; --brand: #2E2840; --brand-hover: #1F1A2E; --brand-ink: #FFFFFF;
  --link: var(--indigo); --accent-soft: #FFF3C4; --ok: #2E7458; --ok-soft: #E1F1E8; --danger: #A8321F; --danger-soft: #FBE4DE;
  --focus: var(--indigo); --band: #FFFFFF; --band-line: var(--line); --tab-on: var(--surface-2);
  --shadow: 0 1px 2px rgba(22, 19, 31, .05), 0 8px 24px rgba(22, 19, 31, .07);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg: #15131C; --surface: #1F1C28; --surface-2: #29253A; --line: #353046; --line-strong: #4A4460;
  --text: #F6F3EC; --muted: #B5B0C2; --brand: #E7E1F5; --brand-hover: #FFFFFF; --brand-ink: #15131C;
  --link: #C9C0F0; --accent-soft: #3A3214; --ok: #86D6AE; --ok-soft: #1D3A2C; --danger: #FF9F8C; --danger-soft: #45201B;
  --focus: var(--sun); --band: #1F1C28; --band-line: #353046; --tab-on: #2E2A3F;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .3);
  color-scheme: dark; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--font); color: var(--text); background: var(--bg); }
main { max-width: 34rem; margin: 2rem auto 4rem; padding: 1.75rem 1.5rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
body.wide main { max-width: 76rem; padding: 0 1.25rem; background: none; border: 0; box-shadow: none; }
h1, h2 { line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 1rem; overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; margin: 2rem 0 .75rem; }
.card h2 { margin-top: 0; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
b { font-weight: 700; }

/* Bands: paper with the ring, and the four route lines of the products underneath. */
.band, .topbar { background: var(--band); color: var(--text); }
.routes { display: flex; height: 4px; }
.routes i { flex: 1; }
.routes i:nth-child(1) { background: var(--plum); }
.routes i:nth-child(2) { background: var(--sun); box-shadow: inset 0 -1px 0 var(--ochre); }
.routes i:nth-child(3) { background: var(--indigo); }
.routes i:nth-child(4) { background: var(--rose); }
.band-in { max-width: 76rem; margin: 0 auto; padding: 1rem 1.25rem; display: flex; justify-content: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.ring { width: 34px; height: 34px; display: block; flex: none; }
.name { font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.tag { display: inline-block; padding: .15rem .6rem; border-radius: 99px; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line-strong); font: 700 .72rem/1.5 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.topbar-in { max-width: 76rem; margin: 0 auto; padding: .75rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.sections { display: flex; flex-wrap: wrap; gap: 4px; }
.sections a { padding: .4rem .85rem; border-radius: 10px; color: var(--text); font-weight: 700; font-size: .95rem; text-decoration: none;
  border-bottom: 3px solid transparent; }
.sections a:hover { background: var(--surface-2); }
.sections a[aria-current="page"] { background: var(--tab-on); }
.sections a.m-ilenarece { border-bottom-color: var(--sun); }
.sections a.m-papirka { border-bottom-color: var(--plum); }
.sections a.m-aptechka { border-bottom-color: var(--indigo); }
.sections a.m-simeyka { border-bottom-color: var(--rose); }
.topbar .spacer { flex: 1; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .95rem; }
.who .me { overflow-wrap: anywhere; }
.who a { font-weight: 700; }
.who button { margin: 0; min-height: 38px; padding: 0 .9rem; font-size: .9rem; }
.subnav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 1.25rem 0 1.5rem; padding: 0 0 .5rem; border-bottom: 1px solid var(--line); }
.subnav a { font-weight: 700; text-decoration: none; color: var(--muted); padding: .2rem 0; }
.subnav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--module, var(--line-strong)); }
.module-ilenarece { --module: var(--ochre); }
.module-papirka { --module: var(--plum); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.35rem; margin: 1.25rem 0; }
main .card { background: var(--surface-2); }
body.wide main .card { background: var(--surface); box-shadow: var(--shadow); }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

/* Forms and the Google button */
label { display: block; font-weight: 700; font-size: .95rem; margin: 1rem 0 .35rem; }
input[type=email], input[type=text], select { width: 100%; min-height: 50px; padding: .6rem 1rem; font: inherit; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 14px; }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 212, 59, .5); }
input.code { font: 700 1.5rem/1 var(--mono); letter-spacing: .35em; text-align: center; }
button, a.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; margin-top: 1rem;
  padding: 0 1.25rem; font: 700 1rem/1 var(--font); cursor: pointer; border: 1.5px solid transparent; border-radius: 14px;
  background: var(--brand); color: var(--brand-ink); text-decoration: none; }
button:hover, a.button:hover { background: var(--brand-hover); }
a.button.google { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
a.button.google:hover { background: var(--surface-2); }
button.secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
button.danger { background: var(--danger); color: #FFFFFF; }
label.check { display: flex; gap: .6rem; align-items: center; font-weight: 600; margin: 1rem 0 0; cursor: pointer; }
label.check input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--brand); }
form.inline { display: inline; }
.error { color: var(--danger); font-weight: 700; }
.notice { display: inline-block; padding: .45rem .9rem; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.note { padding: .75rem 1rem; border-radius: 14px; background: var(--accent-soft); color: var(--text); border: 1px solid var(--line); }
.filters { display: flex; gap: .5rem .75rem; flex-wrap: wrap; align-items: center; margin: 0 0 1rem; }
.filters label { margin: 0; }
.filters > * { margin: 0; }
.filters input, .filters select { width: auto; min-width: 12rem; }
.filters button { margin-top: 0; }

/* Figures */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .8rem; margin: 0 0 1rem; }
.stat { padding: 1rem 1.1rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-weight: 600; font-size: .95rem; color: var(--muted); }
.stat b { display: block; font-size: 2rem; line-height: 1.1; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; margin-bottom: .2rem; }
.stat.accent { background: var(--accent-soft); }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .8rem; }
.module-card { display: block; padding: 1rem 1.1rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  border-top: 6px solid var(--module, var(--line-strong)); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.module-card b { display: block; font-size: 1.1rem; }
.module-card.off { color: var(--muted); box-shadow: none; }
.module-card.m-aptechka { --module: var(--indigo); }
.module-card.m-simeyka { --module: var(--rose); }

/* Tables: on a card; below 900px they scroll inside themselves. */
table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: .95rem; margin: 0 0 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
th, td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tbody tr:hover > * { background: var(--surface-2); }
tbody th { width: 1%; color: var(--muted); font-weight: 700; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.date { white-space: nowrap; font-variant-numeric: tabular-nums; }

.qr { display: inline-block; padding: 12px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line); }
.qr svg { width: 220px; height: 220px; display: block; }
code, .mono { font-family: var(--mono); font-size: .9em; word-break: break-all; }
code { padding: .1em .35em; border-radius: 6px; background: var(--surface-2); }
ul.codes { columns: 2; padding: 1rem 1rem 1rem 2.2rem; font: 700 1rem/1.9 var(--mono); background: var(--surface-2); border-radius: 14px; }

@media (max-width: 900px) {
  table { display: block; max-width: 100%; overflow-x: auto; }
  thead th { white-space: nowrap; }
}
@media (max-width: 600px) {
  main { margin: 1.25rem 12px 3rem; padding: 1.4rem 1.1rem; }
  body.wide main { margin: 1.25rem auto 3rem; padding: 0 12px; }
  .topbar-in { padding: .75rem 12px; }
  .topbar .spacer { display: none; }
  .sections { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .sections a { white-space: nowrap; }
  .who { width: 100%; }
  .filters input, .filters select { min-width: 0; width: 100%; }
  .filters > * { flex: 1 1 100%; }
}
