@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/GolosText-cyrillic-0.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/GolosText-latin-ext-1.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/GolosText-latin-2.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: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/GolosText-cyrillic-0.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/GolosText-latin-ext-1.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/GolosText-latin-2.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: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/GolosText-cyrillic-0.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/GolosText-latin-ext-1.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/GolosText-latin-2.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: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/GolosText-cyrillic-0.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/GolosText-latin-ext-1.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/GolosText-latin-2.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: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/Unbounded-cyrillic-3.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/Unbounded-latin-ext-4.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/Unbounded-latin-5.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: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/Unbounded-cyrillic-3.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/Unbounded-latin-ext-4.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/Unbounded-latin-5.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: 'Unbounded';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/Unbounded-cyrillic-3.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/Unbounded-latin-ext-4.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/Unbounded-latin-5.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;
}
/* =====================================================================
   Živi srpski — стиль «Ћилим»
   Идея: пиротский ковёр-ћилим (ступенчатые ромбы), афиша и вокзальная
   табличка. Бумага, чернила, кошениль, индиго, шафран. Две гарнитуры:
   Unbounded (заголовки) и Golos Text (текст), обе с латиницей и кириллицей.
   ===================================================================== */
:root {
  --paper: #F5EEE2;
  --paper-2: #EDE3D2;
  --card: #FFFBF4;
  --ink: #1D1A2B;
  --ink-2: #4A4458;
  --muted: #776E66;
  --line: #D9CDB8;
  --indigo: #1F2D6B;
  --red: #B3261E;
  --red-soft: #F6DAD3;
  --saffron: #E3A524;
  --saffron-soft: #FBEBC4;
  --sky-soft: #DCE2F5;
  --ok: #3F7A3A;
  --ok-bg: #E3F0D8;
  --bad: #B3261E;
  --bad-bg: #F8E0DA;
  --warn: #8F5D00;
  --warn-bg: #FBEBC4;
  --blue: var(--indigo);
  --bg: var(--paper);
  --radius: 14px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 2px 2px 0 var(--ink);
  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --kilim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='14' viewBox='0 0 56 14'%3E%3Crect width='56' height='14' fill='%23B3261E'/%3E%3Cpolygon points='0,6 2,6 2,4 4,4 4,2 6,2 6,0 8,0 8,2 10,2 10,4 12,4 12,6 14,6 14,8 12,8 12,10 10,10 10,12 8,12 8,14 6,14 6,12 4,12 4,10 2,10 2,8 0,8' fill='%23E3A524'/%3E%3Crect x='5' y='5' width='4' height='4' fill='%231F2D6B'/%3E%3Cg transform='translate(28 0)'%3E%3Cpolygon points='0,6 2,6 2,4 4,4 4,2 6,2 6,0 8,0 8,2 10,2 10,4 12,4 12,6 14,6 14,8 12,8 12,10 10,10 10,12 8,12 8,14 6,14 6,12 4,12 4,10 2,10 2,8 0,8' fill='%23F5EEE2'/%3E%3Crect x='5' y='5' width='4' height='4' fill='%23B3261E'/%3E%3C/g%3E%3Crect x='16' y='6' width='10' height='2' fill='%231D1A2B'/%3E%3Crect x='44' y='6' width='10' height='2' fill='%231D1A2B'/%3E%3C/svg%3E");
  --kilim-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpolygon points='7,13 9,13 9,11 11,11 11,9 13,9 13,7 15,7 15,9 17,9 17,11 19,11 19,13 21,13 21,15 19,15 19,17 17,17 17,19 15,19 15,21 13,21 13,19 11,19 11,17 9,17 9,15 7,15' fill='%23ffffff' fill-opacity='.06'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; color: var(--ink); background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(227,165,36,.12), transparent 40%),
    radial-gradient(circle at 90% 30%, rgba(179,38,30,.06), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.1 0 0 0 0 0.17 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
  font: 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--saffron); color: var(--ink); }
a { color: var(--indigo); text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, .big, .display { font-family: var(--display); letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.12; font-weight: 800; margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.okc { color: var(--ok); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px;
  padding: 12px max(20px, calc((100vw - 1120px) / 2)); background-color: var(--indigo); color: #fff;
  background-image: var(--kilim-dark);
}
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: var(--kilim) repeat-x; background-size: 40px 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; line-height: 1.1; }
.brand .mark { width: 36px; height: 36px; flex: none; }
.brand > span { white-space: nowrap; }
.brand small { display: block; font-family: var(--text); font-weight: 600; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
nav a, nav .link { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: rgba(255,255,255,.85); font-weight: 600; font-size: 15px; padding: 7px 12px; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s; }
nav a svg { width: 18px; height: 18px; flex: none; }
nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
nav a.active { background: var(--paper); color: var(--indigo); }
.pill { background: var(--saffron); color: var(--ink); border-radius: 999px; font-size: 11px; font-weight: 800; padding: 0 6px; line-height: 17px; }
.hdr-stats { display: flex; gap: 6px; margin: 0 6px; }
.hdr-stats span, .mob-top span { background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; color: #fff; }
.user { padding: 3px !important; }
.user img, .mob-top img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--saffron); display: block; }
.ini { width: 32px; height: 32px; border-radius: 50%; background: var(--saffron); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-family: var(--display); font-size: 14px; }
.link { background: none; border: 0; }
nav .link { font-size: 14px; opacity: .8; }
nav .link:hover { opacity: 1; background: rgba(255,255,255,.1); }
body.guest .top nav, body.guest .mob-top { display: none !important; }
.mob-top { display: none; margin-left: auto; align-items: center; gap: 8px; }
.mob-top a { color: #fff; text-decoration: none; display: flex; }

main { max-width: 1040px; margin: 0 auto; padding: 40px 20px 90px; }
.loading { color: var(--muted); padding: 60px 0; text-align: center; font-family: var(--display); }
.loading::before { content: ""; display: block; width: 56px; height: 14px; margin: 0 auto 14px; background: var(--kilim) repeat-x; background-size: 56px 14px; animation: weave 1s linear infinite; border-radius: 3px; }
@keyframes weave { to { background-position: 56px 0; } }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--ink);
  background: var(--red); color: #fff; border-radius: 12px; padding: 10px 18px; font-weight: 700; font-size: 15px;
  text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .1s, box-shadow .1s, background .15s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn.small { padding: 5px 12px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: var(--shadow-sm); }
.btn.danger { background: var(--card); color: var(--bad); border-color: var(--bad); box-shadow: 2px 2px 0 var(--bad); margin-top: 6px; }
.btn.indigo { background: var(--indigo); }
.btn.saffron { background: var(--saffron); color: var(--ink); }

/* ---------- карточки ---------- */
.card, .box, .content, .task, .summary, .mod, .lrow, .tile, .stat, .ach .a, .modal-box {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card { padding: 18px 20px; }
a.card { color: var(--ink); text-decoration: none; display: block; transition: transform .12s, box-shadow .12s; }
a.card:hover, a.mod:hover, a.tile:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.big { font-size: 20px; font-weight: 700; line-height: 1.25; margin: 4px 0 6px; }
.big-emoji { font-size: 48px; }
.kicker { display: inline-block; color: var(--red); font-weight: 800; letter-spacing: .14em; font-size: 12px; text-transform: uppercase; }
.lvl { display: inline-block; font-family: var(--display); font-size: 11px; font-weight: 700; color: #fff; background: var(--indigo); border-radius: 6px; padding: 2px 8px; letter-spacing: .04em; }
.bar { height: 10px; background: var(--paper-2); border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; background: var(--saffron); }
.bar i.good { background: var(--ok); } .bar i.mid { background: var(--saffron); } .bar i.low { background: var(--red); }

/* ---------- вход (афиша) ---------- */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center; padding: 0 0 20px; }
.poster .word { font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: -.045em; font-size: clamp(54px, 9vw, 104px); margin: 14px 0 6px; }
.poster .word span { display: block; }
.poster .word .w1 { color: var(--red); }
.poster .word .w2 { color: var(--indigo); }
.poster .word .w3 { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.poster .lead { font-size: 18px; color: var(--ink-2); max-width: 540px; margin: 20px 0; }
.features { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.features li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; color: var(--ink-2); }
.features li i { width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 10px; display: grid; place-items: center; font-style: normal; background: var(--saffron-soft); font-size: 18px; }
.features li:nth-child(2) i { background: var(--red-soft); } .features li:nth-child(3) i { background: var(--sky-soft); } .features li:nth-child(4) i { background: var(--ok-bg); }
.login-box { padding: 28px; position: relative; overflow: hidden; box-shadow: 8px 8px 0 var(--indigo); }
.login-box::before { content: ""; display: block; height: 14px; margin: -28px -28px 22px; background: var(--kilim) repeat-x; background-size: 56px 14px; border-bottom: 2px solid var(--ink); }
.login-box h2 { margin: 0 0 6px; font-size: 24px; }
#tg-widget { min-height: 48px; margin: 18px 0; }
.warn-box { background: var(--warn-bg); color: var(--warn); border: 1.5px solid var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.dev { margin-top: 20px; padding-top: 16px; border-top: 2px dashed var(--line); }
.dev input { padding: 9px 12px; border: 2px solid var(--ink); border-radius: 10px; font: inherit; background: #fff; }
.alphabet { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 34px; }
.alphabet b { font-family: var(--display); width: 46px; height: 46px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); font-size: 17px; line-height: 1; transition: transform .2s; cursor: default; }
.alphabet b small { font-family: var(--text); font-size: 10px; color: var(--muted); font-weight: 600; }
.alphabet b:nth-child(3n) { background: var(--saffron-soft); } .alphabet b:nth-child(5n) { background: var(--red-soft); } .alphabet b:nth-child(7n) { background: var(--sky-soft); }
.alphabet b:hover { transform: rotate(-6deg) scale(1.1); }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.why .card b { font-family: var(--display); display: block; margin: 6px 0 4px; }
.why .card .n { font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--red); line-height: 1; }

/* ---------- главная ---------- */
.dash { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; margin-bottom: 20px; }
.dash-hero { background-color: var(--indigo); background-image: var(--kilim-dark); color: #fff; border: 2px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--red); padding: 26px 28px; position: relative; overflow: hidden; }
.dash-hero::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 14px; background: var(--kilim) repeat-y; background-size: 14px 56px; border-left: 2px solid var(--ink); }
.dash-hero .hi { color: var(--saffron); font-weight: 700; font-family: var(--display); font-size: 15px; }
.dash-hero h1 { color: #fff; margin: 6px 0 20px; padding-right: 20px; }
.dash-hero .lvlline { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; opacity: .9; padding-right: 20px; }
.dash-hero .bar { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.12); margin-right: 20px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; padding-right: 20px; }
.dash-stats > div { background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.22); border-radius: 12px; padding: 10px 12px; }
.dash-stats b { display: block; font-family: var(--display); font-size: 22px; line-height: 1.2; }
.dash-stats span { font-size: 12px; opacity: .75; }
.side-cards { display: grid; gap: 18px; align-content: start; }
.card.action .btn { margin-top: 12px; }
.card.hot { background: var(--saffron-soft); }
.goal { display: flex; gap: 16px; align-items: center; }
.ring-wrap { position: relative; width: 70px; height: 70px; flex: none; }
.ring-wrap span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.ring { width: 70px; height: 70px; }
.ring-bg { fill: none; stroke: var(--paper-2); stroke-width: 9; }
.ring-fg { fill: none; stroke: var(--red); stroke-width: 9; stroke-linecap: round; }
.rec { background: var(--saffron-soft); margin: 8px 0 0; }
.rec .btn { margin-left: 6px; }
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
h2.sec { font-size: 21px; font-weight: 800; margin: 40px 0 18px; display: flex; align-items: center; gap: 14px; }
h2.sec::after { content: ""; flex: 1; height: 10px; background: var(--kilim) repeat-x; background-size: 40px 10px; border-radius: 2px; opacity: .9; }

/* маршрут по Сербии */
.route { position: relative; display: grid; gap: 16px; padding-left: 50px; }
.route::before { content: ""; position: absolute; left: 18px; top: 20px; bottom: 20px; width: 6px; background: repeating-linear-gradient(var(--ink) 0 14px, transparent 14px 22px); }
.route .mod { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 20px; text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.route .mod::before { content: ""; position: absolute; left: -44px; top: 18px; width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--ink); background: var(--card); }
.route .mod.done::before { background: var(--ok); }
.route .mod.cur::before { background: var(--red); box-shadow: 0 0 0 6px var(--red-soft); }
.route .mod.cur { box-shadow: 6px 6px 0 var(--red); }
.mod .city { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.mod-title { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.25; margin: 2px 0; }
.mod .goaltxt { color: var(--muted); font-size: 14px; grid-column: 1 / -1; }
.mod .bar { grid-column: 1 / -1; margin-top: 8px; }
.mod-count { text-align: right; font-family: var(--display); font-weight: 700; font-size: 20px; }
.mod-count small { display: block; font-family: var(--text); font-weight: 500; font-size: 12px; color: var(--muted); }
.mod-top { display: flex; justify-content: space-between; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { padding: 18px 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; transition: transform .12s, box-shadow .12s; }
.tile .ico { width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 12px; display: grid; place-items: center; font-size: 24px; margin-bottom: 10px; background: var(--saffron-soft); }
.tile:nth-child(3n+2) .ico { background: var(--red-soft); } .tile:nth-child(3n) .ico { background: var(--sky-soft); } .tile:nth-child(4) .ico { background: var(--ok-bg); }
.tile b { font-family: var(--display); font-size: 16px; } .tile span { font-size: 13px; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 26px; }
.stat { padding: 14px 16px; box-shadow: var(--shadow-sm); }
.stat .v { font-family: var(--display); font-size: 26px; font-weight: 700; }
.stat .l { color: var(--muted); font-size: 13px; }

/* ---------- курс ---------- */
.filters, .trainer-tabs { display: flex; gap: 8px; margin: 8px 0 20px; flex-wrap: wrap; }
.chip-btn { border: 2px solid var(--ink); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.chip-btn:hover { background: var(--saffron-soft); }
.chip-btn.on { background: var(--ink); color: var(--paper); }
.module { margin-bottom: 36px; }
.module-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.module-h b { font-family: var(--display); font-size: 18px; }
.lessons { display: grid; gap: 10px; }
.lrow { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 9px 16px 9px 9px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; }
.lrow:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.lnum { width: 48px; height: 48px; border-radius: 10px; background: var(--paper-2); border: 2px solid var(--ink); font-family: var(--display); font-weight: 700; display: grid; place-items: center; }
.lrow.done .lnum { background: var(--ok); color: #fff; }
.lrow.bonus .lnum { background: var(--saffron); font-size: 13px; }
.ltitle { font-weight: 700; line-height: 1.3; }
.lmeta { font-size: 13px; color: var(--muted); }
.score { font-family: var(--display); font-weight: 700; font-size: 15px; white-space: nowrap; }
.score.good { color: var(--ok); } .score.mid { color: var(--warn); } .score.low { color: var(--bad); }

/* ---------- урок ---------- */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.lhead h1 { margin: 8px 0 4px; line-height: 1.15; }
.tabs { display: flex; gap: 6px; margin: 20px 0; position: sticky; top: 70px; z-index: 5; padding: 10px 0; background: var(--paper); }
.tab { border: 2px solid var(--ink); background: var(--card); padding: 7px 16px; font-weight: 700; color: var(--ink); border-radius: 999px; }
.tab.on { background: var(--indigo); color: #fff; box-shadow: var(--shadow-sm); }
.tab .cnt { font-weight: 500; font-size: 13px; opacity: .75; }
.content { padding: 24px 28px; }
.content h3, .content-lite h3 { font-family: var(--display); color: var(--indigo); font-size: 19px; margin: 28px 0 10px; }
.content > h3:first-child { margin-top: 4px; }
.content h4, .content-lite h4 { font-size: 17px; margin: 20px 0 8px; }
.content p { margin: 8px 0; }
.content img, .content-lite img { max-width: 100%; height: auto; border-radius: 10px; border: 2px solid var(--ink); }
.content ul, .content ol { padding-left: 22px; }
.content-lite p { margin: 6px 0; }
.content.intro { margin-bottom: 18px; }
.tbl-wrap { overflow-x: auto; margin: 12px 0; border: 2px solid var(--ink); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); }
td { border: 1px solid var(--line); padding: 8px 11px; vertical-align: top; }
.tbl-wrap tr:first-child td { border-top: 0; } .tbl-wrap td:first-child { border-left: 0; } .tbl-wrap td:last-child { border-right: 0; } .tbl-wrap tr:last-child td { border-bottom: 0; }
.callout { --cbg: #EEF1FA; --accent: var(--indigo); background: var(--cbg); border: 2px solid var(--ink); border-left: 8px solid var(--accent); border-radius: 12px; padding: 12px 16px; margin: 16px 0; }
.callout.plain { --cbg: var(--paper); --accent: var(--saffron); }
.callout-title { font-family: var(--display); font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.callout table { background: transparent; } .callout table td { background: rgba(255,255,255,.6); font-weight: normal; }
.callout .tbl-wrap { border-width: 1.5px; }
.callout ul, .callout ol { margin: 4px 0; }
.video { position: relative; aspect-ratio: 16/9; max-width: 660px; background: var(--ink); border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 22px; cursor: pointer; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .8; border: 0; border-radius: 0; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video .play span { background: var(--red); color: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow-sm); border-radius: 14px; padding: 12px 22px; font-weight: 800; font-family: var(--display); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.konspekt-done { margin-top: 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.konspekt-done .ok { color: var(--ok); font-weight: 700; }

/* задания */
.task { padding: 20px 24px; margin-bottom: 22px; }
.task-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.task-h h3 { margin: 0; font-size: 18px; color: var(--ink); font-family: var(--display); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tag { font-size: 12px; color: var(--ink-2); background: var(--paper-2); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.badge { font-family: var(--display); font-size: 13px; font-weight: 700; border: 2px solid currentColor; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.badge.good { background: var(--ok-bg); color: var(--ok); } .badge.mid { background: var(--warn-bg); color: var(--warn); } .badge.low { background: var(--bad-bg); color: var(--bad); }
.badge-slot { flex: none; }
.task .body { margin-top: 12px; }
.task .body > ol { padding-left: 26px; }
.task .body > ol > li { margin: 12px 0; }
.task .body > ol > li::marker { font-family: var(--display); font-weight: 700; color: var(--red); }
.q { margin-bottom: 4px; }
textarea.ans, input.ans { width: 100%; border: 2px solid var(--ink); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 16px; background: #fff; resize: vertical; transition: box-shadow .12s; }
textarea.ans:focus, input.ans:focus { outline: none; box-shadow: 3px 3px 0 var(--indigo); }
td.inp { min-width: 140px; background: #fff !important; }
td.inp input.ans { border-width: 1.5px; }
.ans.ok { border-color: var(--ok); background: var(--ok-bg); }
.ans.bad { border-color: var(--bad); background: var(--bad-bg); }
.fb:empty { display: none; }
.fb { font-size: 14px; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-weight: normal; }
.fb .exp b { color: var(--indigo); }
.fb .hint { color: var(--warn); }
.okmark { color: var(--ok); font-weight: 800; } .badmark { color: var(--bad); font-weight: 700; }
.grade { display: inline-flex; gap: 4px; }
.grade button { border: 1.5px solid var(--ink); background: var(--card); border-radius: 8px; padding: 1px 9px; font-size: 13px; font-weight: 600; }
.grade button.on.y { background: var(--ok); color: #fff; } .grade button.on.n { background: var(--bad); color: #fff; }
.free-note { margin-top: 10px; }
.actions { display: flex; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.actions.center { justify-content: center; }
.actions .msg { font-size: 14px; color: var(--muted); }
.answer { margin-top: 16px; border-top: 2px dashed var(--line); padding-top: 12px; }
.answer > .lbl { font-family: var(--display); font-weight: 700; color: var(--ok); font-size: 14px; margin-bottom: 4px; }
.lnav { display: flex; justify-content: space-between; margin-top: 30px; gap: 10px; }
.summary { padding: 14px 18px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; box-shadow: var(--shadow-sm); }
label.inline { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.say { border: 0; background: none; padding: 0 2px; font-size: 15px; cursor: pointer; }

.hist td, .vocab-t td { font-weight: normal !important; background: var(--card) !important; }
.hist tr.h td, .vocab-t tr.h td { background: var(--paper-2) !important; font-weight: 700 !important; }
.empty { color: var(--muted); text-align: center; padding: 30px; }

#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 70; box-shadow: 4px 4px 0 var(--saffron); max-width: calc(100vw - 32px); }

/* модальное окно */
.modal { position: fixed; inset: 0; background: rgba(29,26,43,.55); display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal-box { padding: 30px; max-width: 440px; text-align: center; box-shadow: 8px 8px 0 var(--saffron); overflow: hidden; animation: pop .3s cubic-bezier(.2,1.4,.5,1); }
.modal-box::before { content: ""; display: block; height: 14px; margin: -30px -30px 20px; background: var(--kilim) repeat-x; background-size: 56px 14px; border-bottom: 2px solid var(--ink); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }

/* повторение, тренажёр */
.review-top { display: flex; justify-content: space-between; align-items: baseline; }
.flash { margin-top: 16px; text-align: center; padding: 34px 22px; }
.flash .front { font-family: var(--display); font-size: 30px; font-weight: 700; margin: 12px 0 18px; line-height: 1.25; }
.flash .front.ru { font-family: var(--text); font-size: 24px; }
.flash .ans { max-width: 440px; text-align: center; font-size: 18px; }
.flash .back { margin-top: 16px; border-top: 2px dashed var(--line); padding-top: 12px; }
.grade-b { flex-direction: column; min-width: 96px; gap: 0; }
.grade-b small { font-weight: 500; font-size: 11px; opacity: .9; }
.grade-b.g0 { background: var(--bad); } .grade-b.g1 { background: var(--saffron); color: var(--ink); } .grade-b.g2 { background: var(--ok); } .grade-b.g3 { background: var(--indigo); }
.empty-state { text-align: center; padding: 40px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 580px; margin: 0 auto; }
.opt { border: 2px solid var(--ink); background: #fff; border-radius: 12px; padding: 13px; font-size: 16px; font-weight: 600; box-shadow: var(--shadow-sm); transition: transform .1s; }
.opt:hover:not(:disabled) { transform: translate(-1px,-1px); background: var(--saffron-soft); }
.opt.right { background: var(--ok); color: #fff; }
.opt.wrong { background: var(--bad); color: #fff; }
.trap-note { margin-top: 16px; text-align: left; background: var(--paper); border: 2px dashed var(--ink); border-radius: 12px; padding: 12px 16px; }
.ex { font-style: italic; margin: 6px 0; }
.chips, .kbd { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0; }
.chip { border: 2px solid var(--ink); background: #fff; border-radius: 10px; padding: 7px 13px; font-size: 16px; font-weight: 600; box-shadow: var(--shadow-sm); }
.chip:disabled { opacity: .25; box-shadow: none; }
.chip.on { background: var(--saffron-soft); }
.built { min-height: 56px; border-bottom: 3px solid var(--ink); display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; padding: 8px; }
.traps { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; margin-top: 18px; }
.trap-w { font-family: var(--display); font-size: 24px; font-weight: 800; }
.trap-think { color: var(--bad); text-decoration: line-through 2px; margin-top: 4px; }
.trap-real { color: var(--ok); font-weight: 600; }
.vbar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
input[type=search], input[type=text], .vbar input { border: 2px solid var(--ink); border-radius: 10px; padding: 9px 12px; font: inherit; background: #fff; }
select { border: 2px solid var(--ink); border-radius: 10px; padding: 6px 10px; font: inherit; background: #fff; }

/* профиль */
.profile-h { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.profile-h img, .ava { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--ink); box-shadow: var(--shadow-sm); }
.ava { background: var(--saffron); color: var(--ink); display: grid; place-items: center; font-size: 30px; font-weight: 800; font-family: var(--display); }
.profile-h h1 { margin: 0; }
.activity { display: grid; grid-template-columns: repeat(28, 1fr); gap: 4px; height: 96px; align-items: end; margin-bottom: 6px; }
.activity .day { height: 100%; display: flex; align-items: flex-end; background: var(--paper-2); border-radius: 4px; }
.activity .day i { display: block; width: 100%; background: var(--red); border-radius: 4px; min-height: 0; }
.skill { display: grid; grid-template-columns: minmax(140px, 1.3fr) 2fr 54px; gap: 12px; align-items: center; margin: 10px 0; }
.skill .bar { margin: 0; height: 12px; }
.skill-v { font-family: var(--display); font-weight: 700; text-align: right; } .skill-v.good { color: var(--ok); } .skill-v.mid { color: var(--warn); } .skill-v.low { color: var(--bad); }
.rec-inline { margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--line); }
.ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ach .a { padding: 14px; opacity: .5; filter: grayscale(1); box-shadow: none; border-style: dashed; }
.ach .a.got { opacity: 1; filter: none; border-style: solid; box-shadow: var(--shadow-sm); background: var(--saffron-soft); }
.ach .ai { font-size: 28px; }
.settings > div { padding: 12px 0; border-bottom: 2px dashed var(--line); }
.settings > div:last-child { border: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 0 0; }
.footer::before { content: ""; display: block; height: 10px; margin: 0 auto 14px; width: 120px; background: var(--kilim) repeat-x; background-size: 40px 10px; }

/* ---------- планшет и телефон ---------- */
@media (max-width: 900px) {
  .hero, .dash, .why { grid-template-columns: 1fr; }
  .grid3, .grid2 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .opts { grid-template-columns: 1fr; }
  .skill { grid-template-columns: 1fr 60px; } .skill .bar { grid-column: 1 / -1; grid-row: 2; }
  nav a span.t { display: none; }
  nav a.active span.t { display: inline; }
}
@media (max-width: 760px) {
  .top { padding: 10px 14px; }
  .mob-top { display: flex; }
  nav { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 30; justify-content: space-around; gap: 0;
        background-color: var(--indigo); border-top: 3px solid var(--ink); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  nav a { flex-direction: column; gap: 2px; font-size: 10.5px; padding: 5px 8px; border-radius: 10px; position: relative; }
  nav a span.t { display: inline; }
  nav a svg { width: 22px; height: 22px; }
  nav a .pill { position: absolute; top: 0; right: 2px; }
  nav .hdr-stats, nav .link, nav .user, nav #nav-admin { display: none !important; }
  main { padding: 30px 14px 110px; }
  .content, .task { padding: 16px; }
  .tabs { top: 64px; }
  .route { padding-left: 38px; }
  .route::before { left: 12px; }
  .route .mod { padding: 14px 16px; }
  .route .mod::before { left: -36px; width: 20px; height: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dash-hero { padding: 22px 20px; }
  .dash-stats { gap: 8px; }
  .dash-stats b { font-size: 18px; }
  .brand small { display: none; }
  .lrow { grid-template-columns: 42px 1fr auto; gap: 10px; }
  .lnum { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- тренажёр форм, контрольные, чтение ---------- */
.flash .front.gram { font-family: var(--text); font-size: 28px; font-weight: 700; }
.gap { display: inline-block; min-width: 3.2em; padding: 0 .35em; border-bottom: 3px solid var(--indigo); color: var(--indigo); text-align: center; }
.gap.ok { color: var(--ok); border-color: var(--ok); }
.gap.bad { color: var(--bad); border-color: var(--bad); }
.lemma { margin: -6px 0 16px; font-size: 16px; }
#after { text-align: center; margin-top: 10px; }
.tbadge { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1.5px dashed var(--ink); opacity: .75; }
.tbadge.ok { background: var(--ok); color: #fff; border: 0; opacity: 1; }
.tbadge.low { background: var(--saffron-soft); border-style: solid; opacity: 1; }
.mod-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.score-big { font-family: var(--display); font-size: 64px; font-weight: 800; line-height: 1; margin: 6px 0; }
.score-big.good { color: var(--ok); } .score-big.mid { color: var(--saffron); } .score-big.low { color: var(--bad); }
.vocab-t.left { margin: 14px auto; text-align: left; max-width: 640px; }
.badc { color: var(--bad); }
.texts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.text-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; }
.text-card .badge { align-self: flex-start; margin-top: 6px; }
.reader { max-width: 760px; margin: 0 auto; }
.reader h1 { margin: 6px 0 2px; }
.reader .actions { margin: 14px 0 6px; justify-content: flex-start; }
.para { font-size: 21px; line-height: 1.75; margin: 18px 0 4px; }
.para-ru { color: var(--muted, #6b6577); border-left: 3px solid var(--saffron); padding-left: 12px; margin: 4px 0 10px; }
.w { cursor: pointer; border-radius: 4px; padding: 0 1px; transition: background .1s; }
.w:hover { background: var(--saffron-soft); }
.w.sel { background: var(--saffron); }
.q { margin: 12px 0; }
.q .opts { grid-template-columns: 1fr; max-width: none; margin-top: 10px; }
.pop { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(520px, calc(100% - 24px)); background: #fff; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--indigo); padding: 16px 18px; z-index: 50; max-height: 50vh; overflow: auto; }
.pop-w { font-family: var(--display); font-size: 24px; font-weight: 700; margin-bottom: 8px; padding-right: 28px; }
.pop-e { border-top: 1px dashed #ccc; padding: 8px 0; }
.pop-e .btn { margin-top: 6px; }
.pop-x { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 26px; cursor: pointer; line-height: 1; }
@media (max-width: 760px) { .pop { bottom: 78px; } .para { font-size: 19px; } .flash .front.gram { font-size: 23px; } }
@media (max-width: 1180px) and (min-width: 761px) {
  nav a span.t { display: none; }
  nav a.active span.t { display: inline; }
  nav a { padding: 7px 10px; }
}

/* ---------- главная (упрощённая) ---------- */
.home-hero h1 { margin-bottom: 16px; }
.hero-cta { display: flex; flex-direction: column; gap: 4px; background: var(--card); color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--saffron); padding: 16px 20px; margin-right: 20px; max-width: 560px; transition: transform .12s, box-shadow .12s; }
.hero-cta:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--saffron); }
.hero-cta b { font-family: var(--display); font-size: 20px; }
.hero-cta .go { align-self: flex-start; margin-top: 8px; background: var(--red); color: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 16px; font-weight: 700; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 18px; font-size: 14px; opacity: .92; padding-right: 20px; }
.hero-bar { flex: 1 1 120px; max-width: 220px; height: 10px; border: 2px solid rgba(255,255,255,.7); border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.12); }
.hero-bar i { display: block; height: 100%; background: var(--saffron); }
.today { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
a.today-card, .today-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-height: 92px; }
.today-card > div { display: flex; flex-direction: column; gap: 2px; }
.today-card b { font-family: var(--display); font-size: 16px; }
.today-card span { font-size: 13px; color: var(--muted); }
.today-card .ico, .pro .ico, .my-pro .ico, .pro-head .ico { width: 52px; height: 52px; flex: none; border: 2px solid var(--ink); border-radius: 12px; display: grid; place-items: center; font-size: 26px; background: var(--saffron-soft); color: var(--ink); }
.today-card .ring-wrap { width: 52px; height: 52px; }
.today-card .ring-wrap svg { width: 52px; height: 52px; }

/* ---------- профессии ---------- */
.backlink { display: inline-block; margin-bottom: 8px; color: var(--muted); text-decoration: none; font-weight: 600; }
.backlink:hover { color: var(--red); }
.pros { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
a.pro { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.pro .ico { margin-bottom: 6px; }
.pro b { font-family: var(--display); font-size: 16px; }
.pro .srn { color: var(--red); font-weight: 600; font-size: 14px; }
.pro.on { box-shadow: 5px 5px 0 var(--saffron); }
a.my-pro { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); background: var(--saffron-soft); margin-top: 12px; }
.my-pro > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.my-pro b { font-family: var(--display); font-size: 18px; }
.pro-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.pro-head h1 { margin: 0; }
.pro-head .ico.big { width: 64px; height: 64px; font-size: 32px; }
.vocab-t td.st { text-align: right; width: 1%; white-space: nowrap; }
@media (max-width: 760px) {
  .today { grid-template-columns: 1fr; gap: 10px; }
  .today-card { min-height: 0; }
  .hero-cta { margin-right: 0; }
  .hero-cta b { font-size: 17px; }
  .pros { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  a.pro { padding: 14px 12px; min-width: 0; overflow-wrap: anywhere; }
  .pro b { font-size: 14px; }
  .pro .ico { width: 42px; height: 42px; font-size: 22px; }
  .home-hero h1 { font-size: 24px; }
}

.search-box { margin: 16px 0 4px; }
.search-box input { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 12px 16px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); box-shadow: 3px 3px 0 var(--ink); }
.pros .pro[hidden] { display: none; }

/* ---------- книги ---------- */
.books { display: grid; gap: 18px; margin-top: 18px; }
a.book-card { display: grid; grid-template-columns: 120px 1fr; gap: 18px; text-decoration: none; color: var(--ink); align-items: start; }
.book-cover { aspect-ratio: 2 / 3; background: #7a3b22; color: #f6e7c8; border: 2px solid var(--ink); border-radius: 6px 12px 12px 6px; box-shadow: inset 8px 0 0 rgba(0,0,0,.18), 3px 3px 0 var(--ink); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 10px; gap: 6px; }
.book-cover span { font-family: var(--display); font-size: 17px; }
.book-cover small { font-size: 12px; opacity: .85; }
body.book-mode { background: #efe6d2; }
.book { max-width: 760px; margin: 0 auto; }
.book-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.book-tools { display: flex; gap: 6px; align-items: center; }
.book-tools select { max-width: 220px; }
.book-page { background: #fbf4e4; color: #2b2118; border: 1px solid #d9c9a8; border-radius: 6px; box-shadow: 0 2px 18px rgba(80, 55, 20, .12); padding: 36px 44px; font-family: Georgia, "PT Serif", "Times New Roman", serif; font-size: var(--bf, 20px); line-height: 1.7; }
.book-head { text-align: center; margin-bottom: 26px; }
.book-head h1 { font-family: Georgia, "PT Serif", serif; font-size: 1.5em; margin: 6px 0 2px; color: #2b2118; }
.bp { position: relative; }
.bp p { margin: 0 0 .2em; text-indent: 1.5em; text-align: justify; hyphens: auto; }
.bp-tools { display: flex; justify-content: flex-end; gap: 6px; margin: 0 0 .8em; opacity: .55; font-family: var(--text); }
.bp:hover .bp-tools { opacity: 1; }
.bp-ru { font: 600 11px var(--text); border: 1px solid #b9a682; background: transparent; color: #6b5a3e; border-radius: 6px; padding: 2px 6px; cursor: pointer; }
.bp-ru.on { background: #6b5a3e; color: #fbf4e4; }
.bp .para-ru { text-indent: 0; font-family: var(--text); font-size: .8em; color: #6b5a3e; background: #f3e8cf; border-left: 3px solid #c9a86a; padding: 8px 12px; border-radius: 4px; margin: 0 0 1em; }
.book .w { cursor: pointer; border-radius: 3px; }
.book .w:hover { background: #f0dfb5; }
.book .w.sel { background: #e7c873; }
.book-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 28px; padding-top: 18px; border-top: 1px solid #d9c9a8; font-family: var(--text); }
@media (max-width: 760px) {
  .book-page { padding: 22px 16px; }
  .bp p { text-align: left; }
  a.book-card { grid-template-columns: 84px 1fr; gap: 12px; }
  .book-cover span { font-size: 13px; }
}

.book-cover { background: linear-gradient(135deg, var(--cv) 0%, color-mix(in srgb, var(--cv) 70%, #000) 100%); color: var(--cv2); }
.book-cover .cv-ico { font-size: 34px; line-height: 1; }
.book-cover .cv-t { font-family: Georgia, "PT Serif", serif; font-size: 16px; font-weight: 700; }
.books { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.book-card[hidden] { display: none !important; }
.hits { display: flex; flex-direction: column; gap: 0; padding: 6px 0; }
.hit { display: flex; flex-direction: column; gap: 2px; padding: 10px 18px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.hit:last-child { border-bottom: 0; }
.hit:hover { background: var(--saffron-soft); }
.bp.flash-hit p { background: #f3e2a8; border-radius: 4px; }
@media (max-width: 760px) { .books { grid-template-columns: 1fr; } .book-cover .cv-ico { font-size: 24px; } .book-cover .cv-t { font-size: 13px; } }

.login-box .or { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0 8px; }
#g-btn { display: flex; justify-content: center; min-height: 44px; }
.fb-box { margin-top: 18px; }
.fb-form { display: flex; flex-direction: column; gap: 10px; }
.fb-form input, .fb-form textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.fb-form textarea { resize: vertical; }
