/* Шрифты лежат на нашем сайте, а не у Google: так адрес гостя не уходит третьей стороне. Лицензия шрифтов — SIL OFL 1.1. */
/* Caveat 500 cyrillic-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/caveat-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Caveat 500 cyrillic */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/caveat-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Caveat 500 latin-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/caveat-500-latin-ext.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;
}
/* Caveat 500 latin */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/caveat-500-latin.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;
}
/* Caveat 700 cyrillic-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/caveat-700-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Caveat 700 cyrillic */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/caveat-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Caveat 700 latin-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/caveat-700-latin-ext.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;
}
/* Caveat 700 latin */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/caveat-700-latin.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;
}
/* Fira Sans Extra Condensed 700 cyrillic-ext */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/fira-sans-extra-condensed-700-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Fira Sans Extra Condensed 700 cyrillic */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/fira-sans-extra-condensed-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Fira Sans Extra Condensed 700 greek */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/fira-sans-extra-condensed-700-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* Fira Sans Extra Condensed 700 latin-ext */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/fira-sans-extra-condensed-700-latin-ext.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;
}
/* Fira Sans Extra Condensed 700 latin */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/fira-sans-extra-condensed-700-latin.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;
}
/* Fira Sans Extra Condensed 800 cyrillic-ext */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/fira-sans-extra-condensed-800-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Fira Sans Extra Condensed 800 cyrillic */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/fira-sans-extra-condensed-800-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Fira Sans Extra Condensed 800 greek */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/fira-sans-extra-condensed-800-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* Fira Sans Extra Condensed 800 latin-ext */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/fira-sans-extra-condensed-800-latin-ext.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;
}
/* Fira Sans Extra Condensed 800 latin */
@font-face {
  font-family: 'Fira Sans Extra Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/fira-sans-extra-condensed-800-latin.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;
}
/* Golos Text 400 cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/golos-text-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Golos Text 400 cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/golos-text-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Golos Text 400 latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/golos-text-400-latin-ext.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;
}
/* Golos Text 400 latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/golos-text-400-latin.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;
}
/* Golos Text 500 cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/golos-text-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Golos Text 500 cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/golos-text-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Golos Text 500 latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/golos-text-500-latin-ext.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;
}
/* Golos Text 500 latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/golos-text-500-latin.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;
}
/* Golos Text 600 cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/golos-text-600-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Golos Text 600 cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/golos-text-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Golos Text 600 latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/golos-text-600-latin-ext.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;
}
/* Golos Text 600 latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/golos-text-600-latin.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;
}
/* JetBrains Mono 500 cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* JetBrains Mono 500 cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* JetBrains Mono 500 greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-500-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* JetBrains Mono 500 latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-500-latin-ext.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;
}
/* JetBrains Mono 500 latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-500-latin.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;
}

/* layout: тетрадный лист в клетку с полями — одна колонка смысла; жирный узкий заголовок, карандашная кривая σ, жёлтый маркер на главном.
   Один мир сайта (бумага), поэтому одна светлая тема — по выбору, все цвета заданы явно. */
:root {
  --paper: #f4f5f1;      /* лист: холодный белый с лёгкой зеленцой */
  --grid: rgba(60, 104, 146, .10);   /* клетка */
  --margin: rgba(214, 72, 64, .42);  /* поле тетради */
  --ink: #15171a;        /* чернила: текст и кнопки */
  --graphite: #5b6168;   /* карандаш: второстепенный текст, кривая */
  --rule: #d4d8d0;       /* линии и рамки */
  --card: #ffffff;       /* карточки-бумажки */
  --marker: #ffe24a;     /* жёлтый маркер */
  --red: #d24a30;        /* красный карандаш: отметки, «скоро», черновик */
  --display: "Fira Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 17px/1.55 var(--body);
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px; background-position: -1px -1px;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* полоса прототипа */
.proto { background: var(--ink); color: var(--paper); font: 500 12.5px/1.4 var(--mono); padding-block: 8px; }
.proto .in { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.proto b { color: var(--marker); font-weight: 500; }
.proto a { color: var(--paper); text-decoration: none; border-bottom: 1px dashed rgba(244,245,241,.4); }
.proto a[aria-current="true"] { color: var(--marker); border-bottom-color: var(--marker); }
.proto .sw { display: inline-flex; gap: 4px; margin-left: auto; }
.proto .sw button { background: none; border: 1px solid rgba(244,245,241,.35); color: var(--paper); border-radius: 99px; padding: 2px 10px; cursor: pointer; font: inherit; }
.proto .geo-sw { display: inline-flex; gap: 6px; align-items: center; }
.proto select { background: var(--ink); color: var(--paper); border: 1px solid rgba(244,245,241,.35); border-radius: 99px; padding: 2px 8px; font: inherit; }
.proto .sw button[aria-pressed="true"] { background: var(--marker); color: var(--ink); border-color: var(--marker); }

.in { max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
@media (min-width: 900px) { .in { padding-inline: 40px; } }

/* поле тетради — красная линия слева на широком экране */
.sheet { position: relative; }
@media (min-width: 1100px) {
  .sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: max(20px, calc(50% - 600px)); width: 2px; background: var(--margin); pointer-events: none; }
}

/* шапка */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(244,245,241,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
header.top .in { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.mark { display: flex; align-items: baseline; gap: 8px; text-decoration: none; font: 800 25px/1 var(--display); letter-spacing: .02em; }
.mark .sig { font: 700 30px/1 var(--hand); color: var(--red); transform: translateY(2px); }
.mark .m3 { margin-right: -7px; }
.mark .m-club { margin-left: 2px; }
nav.links { display: none; gap: 22px; font-weight: 500; font-size: 15px; }
nav.links a { text-decoration: none; color: var(--graphite); }
nav.links a:hover { color: var(--ink); }
@media (min-width: 900px) { nav.links { display: flex; } }
.top .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.lang { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 99px; overflow: hidden; }
.lang button { background: none; border: 0; padding: 5px 11px; font: 600 13px var(--mono); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; padding: 13px 20px; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 2px solid var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.btn.ink { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--marker); }
.btn.ink:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--marker); }
.btn.line { background: var(--card); color: var(--ink); }
.btn.line:hover { background: #fff8cf; }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.top .btn.sm { display: none; }
@media (min-width: 560px) { .top .btn.sm { display: inline-flex; } }

/* герой */
.hero { padding-block: 44px 16px; }
.hero .grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 940px) { .hero .grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; } .hero .grid > .hero-main { grid-column: 1; grid-row: 1; } .hero .grid > .invite { grid-column: 2; grid-row: 1; } }
h1 { font: 800 clamp(52px, 9.4vw, 112px)/.9 var(--display); letter-spacing: -.01em; margin: 0 0 22px; text-wrap: balance; }
.mk { background-image: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 93%, transparent 93%); background-repeat: no-repeat; background-size: 0 100%; animation: mk 1s .45s cubic-bezier(.2,.7,.2,1) forwards; padding-inline: .04em; }
@keyframes mk { to { background-size: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .mk { background-size: 100% 100%; } }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.pencil-link { font-weight: 600; text-decoration: none; background-image: linear-gradient(var(--graphite), var(--graphite)); background-size: 100% 1.5px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 2px; }

/* карточка «тебя приглашает» */
.invite { position: relative; background: var(--card); border: 1.5px solid var(--ink); border-radius: 18px; padding: 26px 24px 20px; box-shadow: 8px 10px 0 rgba(21,23,26,.08); transform: rotate(-1.2deg); max-width: 440px; justify-self: center; width: 100%; }
@media (min-width: 940px) { .invite { justify-self: end; margin-top: 20px; } #hero .grid { align-items: center; } #hero .invite { margin-top: 0; } }
.clip { position: absolute; top: -26px; right: 38px; width: 26px; height: 64px; }
.invite .hand { font: 700 27px/1 var(--hand); color: var(--red); transform: rotate(-3deg); display: inline-block; margin-bottom: 12px; }
.who { display: flex; gap: 16px; align-items: center; }
.ava { width: 76px; height: 76px; border-radius: 50%; flex: none; background: var(--marker); border: 2px solid var(--ink); display: grid; place-items: center; font: 800 28px/1 var(--display); overflow: hidden; }
.ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ava-up { position: relative; cursor: pointer; overflow: visible; }
.ava-up img { border-radius: 50%; }
.ava-up:hover, .ava-up:focus-within { box-shadow: 0 0 0 4px var(--marker); }
.ava-up-b { position: absolute; right: -6px; bottom: -6px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); border: 2px solid var(--card); display: grid; place-items: center; font: 700 19px/1 var(--body); }
.who .nm { font: 800 30px/1.02 var(--display); margin: 0; }
.who .rl { color: var(--graphite); font-size: 15px; margin-top: 4px; }
.quote { font: 600 22px/1.25 var(--hand); color: var(--pencil, #3a3f45); margin: 16px 0 4px; }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.contacts .btn { padding: 10px 14px; font-size: 15px; }
.contacts .btn.ink { box-shadow: 3px 3px 0 var(--marker); }
.handle { font: 500 13px/1.4 var(--mono); color: var(--graphite); margin-top: 16px; padding-top: 12px; border-top: 1.5px dashed var(--rule); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.handle b { color: var(--ink); font-weight: 500; }
.inv-note { margin: 12px 0 0; font-size: 13.5px; color: var(--graphite); }
.f .three { display: grid; gap: 16px; }
@media (min-width: 560px) { .f .three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* кривая σ */
.curve { margin-top: 26px; }
.curve svg { width: 100%; height: auto; display: block; overflow: visible; }
@media (max-width: 640px) { .curve { overflow: hidden; } .curve svg { width: 200%; margin-left: -96%; } }
.curve .bell { fill: none; stroke: var(--graphite); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 2.2s .2s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .curve .bell { stroke-dashoffset: 0; } }
.curve .tick { stroke: var(--graphite); stroke-width: 1.4; }
.curve .lbl { font: 500 12px var(--mono); fill: var(--graphite); }
.curve .dot { fill: var(--red); }
.curve .note { font: 700 24px var(--hand); fill: var(--red); }
.curve .arrow { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; }

/* разделы */
section.block { padding-block: 64px; border-top: 1.5px solid var(--rule); }
.kicker { font: 500 12.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); margin: 0 0 10px; }
h2 { font: 800 clamp(38px, 5.6vw, 66px)/.95 var(--display); margin: 0 0 26px; text-wrap: balance; max-width: 15em; }
h3 { font: 800 27px/1.05 var(--display); margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--graphite); }

.stamp { display: inline-block; font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--red); border: 2px solid var(--red); border-radius: 8px; padding: 6px 10px; transform: rotate(-2.5deg); background: rgba(255,255,255,.55); }

/* как на этом заработать: одна полоса — как делится прибыль на вашем счёте, под ней два способа заработать */
.split { margin: 6px 0 0; }
.sp-note { font: 700 27px/1.15 var(--hand); color: var(--red); margin: 0 0 16px; transform: rotate(-1deg); transform-origin: left center; }
.sp-fee { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.sp-fee span { flex: 0 0 30%; display: grid; justify-items: center; gap: 5px; font: 500 12.5px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--graphite); }
.sp-fee span::after { content: ""; width: 100%; height: 9px; border: 1.5px solid var(--graphite); border-bottom: 0; border-radius: 6px 6px 0 0; }
.sp-bar { display: flex; height: 76px; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 6px 6px 0 rgba(21,23,26,.08); }
.sp-seg { display: grid; place-items: center; min-width: 0; font: 800 38px/1 var(--display); font-variant-numeric: tabular-nums; }
.sp-seg + .sp-seg { border-left: 2px solid var(--ink); }
.sk1 { background: var(--marker); }
.sk2 { background: repeating-linear-gradient(-45deg, var(--card) 0 7px, rgba(21,23,26,.11) 7px 9px); }
.sk3 { background: var(--rule); }
.sp-lab { display: flex; margin-top: 10px; font: 600 15.5px/1.3 var(--body); }
.sp-lab span { min-width: 0; text-align: center; }
.sp-lab i, .sp-lab em { display: none; }
.ways { display: grid; gap: 26px; margin-top: 44px; }
@media (min-width: 820px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
.way { border-top: 3px solid var(--ink); padding-top: 14px; min-width: 0; display: grid; gap: 8px; align-content: start; }
.way h3 { margin: 0; }
.way p { margin: 0; max-width: 30em; }
.way .pencil-link { justify-self: start; margin-top: 6px; }
button.pencil-link { border: 0; background-color: transparent; padding: 0 0 2px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
@media (max-width: 639px) {
  .sp-note { font-size: 23px; }
  .sp-bar { height: 62px; }
  .sp-seg { font-size: 27px; }
  .sp-fee span { font-size: 11px; }
  .sp-lab { flex-direction: column; gap: 7px; align-items: flex-start; font-size: 15px; }
  .sp-lab span { flex-basis: auto !important; display: inline-flex; gap: 9px; align-items: center; text-align: left; }
  .sp-lab i { display: inline-block; width: 16px; height: 16px; border: 1.5px solid var(--ink); border-radius: 4px; flex: none; }
  .sp-lab em { display: inline; font-style: normal; font-weight: 800; }
}

/* старт */
.steps { display: grid; gap: 34px; margin-top: 10px; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; }
.num { width: 52px; height: 52px; display: grid; place-items: center; font: 700 34px/1 var(--hand); border: 2px solid var(--ink); border-radius: 50% 46% 52% 48%; background: var(--card); }
.step.done .num { background: var(--marker); }
.step-body { min-width: 0; }
.step-body .st-p:empty { display: none; }
.start-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .start-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: center; } }
.start-main { min-width: 0; }
.start-video { display: grid; justify-items: center; gap: 4px; }
.step-body .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.video-row { display: grid; gap: 24px; margin-top: 16px; }
@media (min-width: 760px) { .video-row { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.phone { width: min(100%, 300px); border: 2px solid var(--ink); border-radius: 26px; padding: 8px; background: var(--ink); box-shadow: 8px 8px 0 var(--marker); justify-self: center; }
.phone video { width: 100%; aspect-ratio: 9 / 16; border-radius: 19px; display: block; background: #000; max-width: 100%; }
.vlang { display: inline-flex; gap: 6px; margin-top: 10px; }
.vlang button { background: var(--card); border: 1.5px solid var(--ink); border-radius: 99px; padding: 4px 12px; font: 600 13px var(--mono); cursor: pointer; }
.vlang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.soon { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1.4 var(--mono); color: var(--red); border: 1.5px dashed var(--red); border-radius: 10px; padding: 8px 12px; background: rgba(255,255,255,.6); }

/* звонок — билет */
.ticket { margin-top: 34px; display: grid; gap: 18px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 16px; padding: 22px 24px; position: relative; }
@media (min-width: 760px) { .ticket { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.ticket::before, .ticket::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); top: calc(50% - 11px); }
.ticket::before { left: -12px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -12px; clip-path: inset(0 50% 0 0); }


/* партнёрам: три станции */
.track { display: grid; gap: 22px; margin-top: 26px; position: relative; }
@media (min-width: 900px) { .track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; } }
.station { background: var(--card); border: 1.5px solid var(--ink); border-radius: 16px; padding: 22px 22px 18px; min-width: 0; position: relative; }
.station.hi { background: #fffbe0; box-shadow: 6px 6px 0 var(--marker); }
.station .lv { font: 500 12.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
.station h3 { font-size: 34px; margin: 6px 0 8px; }
.station .cond { color: var(--graphite); font-size: 15.5px; min-height: 3.2em; }
.station ul { margin: 12px 0 0; padding: 12px 0 0 18px; border-top: 1.5px dashed var(--rule); display: grid; gap: 6px; font-size: 15.5px; }
.draft { font: 700 22px/1.1 var(--hand); color: var(--red); transform: rotate(-2deg); display: inline-block; margin-top: 18px; }

/* вопросы */
.faq { margin-top: 10px; border-top: 1.5px solid var(--rule); }
.faq details { border-bottom: 1.5px solid var(--rule); padding-block: 4px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-block: 16px; font: 700 23px/1.15 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 30px/1 var(--hand); color: var(--red); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 18px; max-width: 46em; }

footer { padding-block: 40px 56px; border-top: 1.5px solid var(--rule); font-size: 14.5px; color: var(--graphite); }
footer .row { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }

/* кабинет */
.cab { display: grid; gap: 34px; margin-top: 8px; }
@media (min-width: 960px) { .cab { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; } }
form.f { display: grid; gap: 16px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 18px; padding: 22px; }
.f .two { display: grid; gap: 16px; }
@media (min-width: 560px) { .f .two { grid-template-columns: 1fr 1fr; } }
.f label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; min-width: 0; }
.f label small { font-weight: 400; color: var(--graphite); }
.f input, .f select, .f textarea { width: 100%; border: 1.5px solid var(--rule); border-radius: 10px; padding: 10px 12px; background: #fff; min-width: 0; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px #fff3a6; }
.f textarea { min-height: 70px; resize: vertical; }
.f .agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.f .calls-ok { align-self: end; padding-bottom: 6px; }
.f .calls-ok small { display: block; margin-top: 3px; font-weight: 400; font-size: 13.5px; line-height: 1.4; color: var(--graphite); }
.f .agree input { width: auto; margin-top: 5px; accent-color: var(--ink); }
.slug { display: flex; align-items: stretch; border: 1.5px solid var(--rule); border-radius: 10px; overflow: hidden; background: #fff; }
.slug span { font: 500 14px var(--mono); padding: 10px 0 10px 12px; color: var(--graphite); white-space: nowrap; }
.slug input { border: 0 !important; box-shadow: none !important; padding-left: 2px; font: 500 14px var(--mono); }
.side { display: grid; gap: 22px; justify-items: center; min-width: 0; }
.side .invite { transform: rotate(1deg); }
.linkbox { width: 100%; max-width: 440px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; background: var(--card); border: 1.5px solid var(--ink); border-radius: 16px; padding: 14px; }
.qr { width: 104px; height: 104px; background: #fff; display: grid; place-items: center; }
.qr svg, .qr img { width: 100%; height: 100%; display: block; }
.linkbox .url { font: 500 15px/1.35 var(--mono); word-break: break-all; }
.linkbox .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hint { font: 600 20px/1.2 var(--hand); color: var(--red); }


/* ===== версия с максимальной конверсией (12.10) ===== */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-start; }
.hero-cta .act-host { min-width: 0; }
.act { display: grid; gap: 10px; justify-items: start; }
.act .micro { margin: 0; max-width: 34em; }
.act .wait { margin-top: 0; }
.wait .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wait-f .line { display: flex; gap: 8px; flex-wrap: wrap; }
.wait-f .line input[type=email] { flex: 1 1 200px; width: auto; }
.f-err { margin: 0; color: var(--red); font: 600 13.5px var(--body); }
.wait-done { margin: 0; font-weight: 600; }
.wait-next { margin: 0; font-size: 15px; color: var(--graphite); }
.wait-next button { background: none; border: 0; padding: 0; font: 600 15px var(--body); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.steps { display: flex; flex-direction: column; }
.step[hidden] { display: none; }
.closed-note { font-size: 18px; max-width: 34em; padding: 14px 16px; border: 1.5px dashed var(--red); border-radius: 14px; background: var(--card); }
.geo-note { margin: 12px 0 0; max-width: 34em; font-size: 15px; line-height: 1.45; color: var(--graphite); }
.live-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 6px; }
.live-card { background: var(--card); border: 1.5px solid var(--ink); border-radius: 16px; padding: 18px 20px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.live-card h3 { font-size: 25px; margin: 0; }
.live-card p { margin: 0; color: var(--graphite); font-size: 15.5px; }
.live-card .btn { justify-self: start; margin-top: 6px; }
.bk-host { margin-top: 20px; max-width: 540px; }
.bk-host .bk { font-size: 15px; }
.lead-note { margin: 18px 0 0; color: var(--graphite); font-size: 15px; }
.lead-note button { background: none; border: 0; padding: 0; font: 600 15px var(--body); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#call .callbox { margin-top: 0; }
.chapters { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
/* 10 пунктов: на компьютере 5 × 2, на планшете 2 × 5, на телефоне столбиком — без пустых клеток */
@media (min-width: 560px) { .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .chapters { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.chapters button { width: 100%; display: flex; gap: 10px; align-items: baseline; text-align: left; background: var(--card); border: 1.5px solid var(--rule); border-radius: 10px; padding: 8px 10px; cursor: pointer; font: 500 15px var(--body); }
.chapters li { display: flex; }
.chapters button:hover { border-color: var(--ink); }
.chap-box { margin-top: 14px; }
.chap-box summary { cursor: pointer; list-style: none; display: inline-flex; gap: 10px; align-items: center; font: 600 15.5px var(--body); }
.chap-box summary::-webkit-details-marker { display: none; }
.chap-box summary::after { content: "+"; font: 700 26px/1 var(--hand); color: var(--red); }
.chap-box[open] summary::after { content: "−"; }
.chap-box .chapters { margin-top: 12px; }
.chapters time { font: 600 13px var(--mono); color: var(--red); flex: none; font-variant-numeric: tabular-nums; }
body { padding-bottom: var(--cta-h, 0px); }   /* подвал не уходит под липкую кнопку */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 36; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(244,245,241,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1.5px solid var(--rule); }
.sticky-cta .btn { width: 100%; justify-content: center; }
.sm-box { display: grid; gap: 22px; margin-top: 10px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 18px; padding: 20px; }
@media (min-width: 900px) { .sm-box { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; } }
.sm-in { display: grid; gap: 14px; }
.sm-in label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.sm-in .val { font: 600 14px var(--mono); color: var(--ink); }
.sm-in input[type=range] { width: 100%; accent-color: var(--ink); }
.sm-curve { margin-top: 0; }
.sm-note { margin-top: 14px; font-size: 14px; }
.curve .me { font: 700 26px var(--hand); fill: var(--red); }
.curve .me-z { font: 600 13px var(--mono); fill: var(--ink); }
@media (max-width: 639px) {
  #curveBox { display: none; }
  .hero { padding-block: 22px 8px; }
  .invite { padding: 18px 16px 14px; transform: rotate(-.6deg); max-width: none; }
  .invite .clip { display: none; }
  .invite .hand { font-size: 22px; margin-bottom: 8px; }
  .ava { width: 56px; height: 56px; font-size: 22px; }
  .who .nm { font-size: 25px; }
  .quote { font-size: 19px; margin-top: 10px; }
  .contacts { margin-top: 12px; }
  .lang button, .vlang button { min-height: 44px; min-width: 44px; }
  .b-toggle { height: 44px; }
  .sm-curve { overflow: hidden; } .sm-curve svg { width: 200%; margin-left: -60%; }
}

/* план для Эдуарда */
.plan h2 { max-width: none; }
.pl-grid { display: grid; gap: 26px; align-items: start; }
@media (min-width: 900px) { .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pl { background: var(--card); border: 1.5px solid var(--ink); border-radius: 16px; padding: 22px; min-width: 0; }
.pl h3 { font-size: 28px; }
.pl ul, .pl ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 7px; }
.pl .tbl { overflow-x: auto; margin-top: 10px; }
.pl table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.pl th, .pl td { text-align: left; padding: 8px 8px; border-bottom: 1.5px solid var(--rule); vertical-align: top; }
.pl th { font: 500 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--graphite); }
.choice { display: grid; gap: 8px; margin-top: 12px; }
.choice label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15.5px; }
.choice input { margin-top: 5px; accent-color: var(--ink); }
.pl textarea { width: 100%; min-height: 80px; border: 1.5px solid var(--rule); border-radius: 10px; padding: 10px 12px; background: #fff; }
pre.letter { white-space: pre-wrap; font: 14.5px/1.5 var(--body); background: #fff; border: 1.5px solid var(--rule); border-radius: 10px; padding: 12px 14px; margin: 10px 0 0; max-height: 340px; overflow: auto; }
.names { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 900px) { .names { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nm-opt { display: grid; gap: 10px; align-content: start; border: 1.5px solid var(--rule); border-radius: 14px; padding: 14px; cursor: pointer; background: #fff; min-width: 0; }
.nm-opt:has(input:checked) { border-color: var(--ink); box-shadow: 5px 5px 0 var(--marker); }
.nm-opt input { accent-color: var(--ink); justify-self: start; }
.nm-prev { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 14px; border-radius: 10px; font: 800 26px/1 var(--display); letter-spacing: .02em; }
.nm-prev.sig { background: #24272c; color: #f3eee5; } .nm-prev.sig img { height: 34px; width: auto; }
.nm-prev.my { background: #fff; border: 1.5px dashed var(--rule); color: var(--ink); }
.nm-prev.kl { background: var(--paper); border: 1.5px solid var(--rule); } .nm-prev.kl .sg { font: 700 30px/1 var(--hand); color: var(--red); }
.clover { width: 34px; height: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; transform: rotate(45deg); }
.clover i { border-radius: 50% 50% 50% 0; } .clover i:nth-child(1) { background: #e8483b; } .clover i:nth-child(2) { background: #2f9e57; transform: rotate(90deg); } .clover i:nth-child(3) { background: #f2b51d; transform: rotate(-90deg); } .clover i:nth-child(4) { background: #2f6fd6; transform: rotate(180deg); }
.nm-t { font: 800 22px/1.1 var(--display); } .nm-d { font-size: 15px; color: var(--graphite); }
.done-flag { font: 600 14px var(--mono); color: var(--ink); background: var(--marker); padding: 4px 8px; border-radius: 6px; }

/* документы */
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 26px; }
.legal-tabs a { text-decoration: none; border: 1.5px solid var(--ink); border-radius: 99px; padding: 6px 14px; font-weight: 600; font-size: 15px; background: var(--card); }
.legal-tabs a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.legal-doc { max-width: 46em; background: var(--card); border: 1.5px solid var(--ink); border-radius: 16px; padding: 24px 26px 28px; }
.legal-doc h3 { font: 800 25px/1.1 var(--display); margin: 26px 0 8px; } .legal-doc h3:first-child { margin-top: 0; }
.legal-doc h4 { font: 700 17px/1.3 var(--body); margin: 18px 0 6px; }
.legal-doc ul { margin: 6px 0 12px; padding-left: 22px; display: grid; gap: 5px; }
.legal-doc mark.ph { background: #fff3a6; padding: 0 3px; border-radius: 3px; }
.legal-doc .todo { font: 700 18px/1.2 var(--hand); color: var(--red); }
.legal-doc code { font: 500 13px var(--mono); }
footer .legal-row { margin-top: 14px; padding-top: 14px; border-top: 1.5px dashed var(--rule); display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; align-items: baseline; }
footer .legal-row nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer .legal-row a { color: var(--ink); }
.micro { margin: 14px 0 0; font-size: 14px; color: var(--graphite); }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 11px 16px; border-radius: 12px; font-size: 14.5px; max-width: calc(100% - 32px); z-index: 50; box-shadow: 4px 4px 0 var(--marker); }

[hidden] { display: none !important; }
/* ── помощник-маскот: на широком экране сидит на линиях тетради и прыгает за прокруткой, на телефоне ходит по низу; подсказывает по разделу, по нажатию открывает чат ── */
.buddy { position: fixed; z-index: 40; left: 0; top: auto; bottom: calc(4px + var(--cta-h, 0px) + env(safe-area-inset-bottom, 0px)); transform: translate3d(var(--bx, -300px), var(--by, 0px), 0); transition: transform var(--bt, 0s) linear, opacity .25s ease; pointer-events: none; }
.buddy.perch { position: absolute; top: 0; bottom: auto; }
.buddy.vfix { position: fixed; top: 0; bottom: auto; z-index: 46; }
.air .m-hop { animation: none; transform: rotate(-5deg) scale(.98, 1.04); }
.air.up .m-hop { transform: rotate(-12deg) scale(.95, 1.08); }
.air .b-shadow { opacity: 0; }
.air .m-fit .m-flame { animation: m-flickBig .3s ease-in-out infinite; }
.air .m-str .m-needle { animation: none; transform: rotate(52deg); }
.land .m-hop { animation: m-land .4s ease-out; }
@keyframes m-land { 0% { transform: scale(1.1, .86); } 55% { transform: scale(.97, 1.05); } 100% { transform: none; } }
.b-conf { width: 7px; height: 7px; z-index: 60; pointer-events: none; }
.buddy.away { opacity: 0; } .buddy.away * { pointer-events: none !important; }
.b-body { pointer-events: auto; display: block; position: relative; background: none; border: 0; padding: 0 0 6px; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.held .b-body { cursor: grabbing; }
.b-body:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 12px; }
.b-fig { display: block; position: relative; z-index: 1; }
.b-fig .m { transition: transform .2s ease; }
.buddy.flip .b-fig .m { transform: scaleX(-1); }
.b-shadow { position: absolute; left: 18%; right: 18%; bottom: 2px; height: 9px; border-radius: 50%; background: var(--marker); opacity: .85; }
.walk .b-shadow { animation: b-sh .5s ease-in-out infinite; }
.b-fig .m-sig { width: 112px; } .b-fig .m-str { width: 86px; } .b-fig .m-fit { width: 48px; }
@media (max-width: 639px) { .b-fig .m-sig { width: 88px; } .b-fig .m-str { width: 68px; } .b-fig .m-fit { width: 38px; } }
.b-tip { position: absolute; bottom: calc(100% + 8px); width: min(272px, calc(100vw - 32px)); background: var(--card); border: 1.5px solid var(--ink); border-radius: 14px; padding: 9px 12px 11px; box-shadow: 4px 4px 0 var(--marker); pointer-events: auto; font-size: 14.5px; line-height: 1.4; animation: b-pop .22s ease-out; }
.buddy.tl .b-tip { left: 0; } .buddy.tr .b-tip { right: 0; }
.b-tip::after { content: ""; position: absolute; bottom: -8px; width: 13px; height: 13px; background: var(--card); border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); }
.buddy.tl .b-tip::after { left: 26px; } .buddy.tr .b-tip::after { right: 26px; }
.b-tip p { margin: 0 14px 8px 0; }
.b-name { display: block; font: 700 19px/1.1 var(--hand); color: var(--red); margin-bottom: 2px; }
.b-x { position: absolute; top: 3px; right: 5px; width: 28px; height: 28px; border: 0; background: none; font-size: 19px; line-height: 1; cursor: pointer; color: var(--graphite); }
.b-ask { border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 9px; padding: 5px 11px; font: 600 13px var(--body); cursor: pointer; }
.b-mini { position: fixed; z-index: 40; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--card); box-shadow: 3px 3px 0 var(--marker); display: grid; place-items: center; cursor: pointer; padding: 0; }
.b-mini .m { width: 38px; height: 38px; }
@keyframes b-pop { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes b-sh { 0%, 100% { transform: scaleX(1); opacity: .85; } 50% { transform: scaleX(.72); opacity: .5; } }

/* персонажи */
.m { display: block; height: auto; overflow: visible; }
.m g, .m path, .m rect, .m circle { transform-box: fill-box; }
.m .m-prbL, .m .m-prbR, .m .m-tail { transform-box: view-box; transform-origin: 0 0; }
.buddy.flip .m-sig9 { transform-box: fill-box; transform-origin: center; transform: scaleX(-1); }
.m-hop { transform-origin: 50% 100%; animation: m-bob 3.4s ease-in-out infinite; }
.walk .m-sig .m-hop, .walk .m-fit .m-hop { animation: m-hop .5s ease-in-out infinite; }
.walk .m-str .m-hop { animation: m-bobw .38s ease-in-out infinite; }
.m-str .m-legL, .m-str .m-legR { transform-origin: 50% 0; }
.walk .m-str .m-legL { animation: m-step .38s ease-in-out infinite; }
.walk .m-str .m-legR { animation: m-step .38s ease-in-out -.19s infinite; }
.m-str .m-needle { transform-origin: 50% 100%; animation: m-sway 3.6s ease-in-out infinite; }
.m-fit .m-flame { transform-origin: 50% 100%; animation: m-flick 1s ease-in-out infinite; }
.m-fit .m-eyes { transform-origin: 50% 50%; animation: m-blink 5.2s infinite; }
.m-fit .m-sparks, .m-fit .m-smoke { opacity: 0; }
.m-fit .m-sparks { transform-origin: 50% 100%; }
.m-sig .m-candle { transform-origin: 50% 50%; animation: m-candle 2.8s ease-in-out infinite; }
.m-sig .m-lid { transition: transform .45s ease; }
.m-sig .m-glint { animation: m-glint 7s ease-in-out infinite; }
[data-mood="talk"] .m-hop { animation: m-talk .55s ease-in-out infinite; }
[data-mood="talk"] .m-fit .m-flame { animation-duration: .45s; }
[data-mood="think"] .m-str .m-needle { animation: m-sweep .8s ease-in-out infinite; }
[data-mood="think"] .m-sig .m-lid, [data-mood="skeptic"] .m-sig .m-lid { transform: translateY(70px); }
[data-mood="think"] .m-sig .m-candle { animation-duration: .7s; }
[data-mood="think"] .m-fit .m-smoke, [data-mood="skeptic"] .m-fit .m-smoke { animation: m-smoke 1.8s ease-out infinite; }
[data-mood="skeptic"] .m-fit .m-flame { animation: none; transform: scale(.72); }
[data-mood="skeptic"] .m-str .m-needle { animation: none; transform: rotate(-48deg); transition: transform .6s ease; }
[data-mood="wow"] .m-hop, [data-mood="happy"] .m-hop, .point .m-hop { animation: m-jump .6s ease-out 1; }
[data-mood="wow"] .m-fit .m-sparks { animation: m-spark .7s ease-out 2; }
[data-mood="wow"] .m-fit .m-flame, [data-mood="happy"] .m-fit .m-flame { animation: m-flickBig .4s ease-in-out infinite; }
[data-mood="wow"] .m-str .m-needle { animation: m-peg .9s ease-out forwards; }
[data-mood="happy"] .m-str .m-needle { animation: none; transform: rotate(26deg); transition: transform .4s ease; }
[data-mood="wow"] .m-sig .m-glint { animation: m-glint .9s ease-in-out 2; }
@keyframes m-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2%); } }
@keyframes m-hop { 0%, 100% { transform: translateY(0) scale(1, 1); } 12% { transform: translateY(0) scale(1.04, .94); } 50% { transform: translateY(-12%) scale(.98, 1.03) rotate(3deg); } 88% { transform: translateY(0) scale(1, 1); } }
@keyframes m-bobw { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3%); } }
@keyframes m-step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-24%); } }
@keyframes m-sway { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(8deg); } }
@keyframes m-sweep { 0%, 100% { transform: rotate(-55deg); } 50% { transform: rotate(55deg); } }
@keyframes m-peg { 0% { transform: rotate(0); } 45% { transform: rotate(66deg); } 65% { transform: rotate(56deg); } 80% { transform: rotate(63deg); } 100% { transform: rotate(60deg); } }
@keyframes m-talk { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2.5%) rotate(-2deg); } }
@keyframes m-jump { 0% { transform: translateY(0); } 35% { transform: translateY(-16%); } 70% { transform: translateY(0) scale(1.05, .93); } 100% { transform: none; } }
@keyframes m-flick { 0%, 100% { transform: scale(1, 1) skewX(0); } 30% { transform: scale(.93, 1.07) skewX(-5deg); } 65% { transform: scale(1.05, .95) skewX(4deg); } }
@keyframes m-flickBig { 0%, 100% { transform: scale(1.16, 1.22); } 50% { transform: scale(1.08, 1.32) skewX(-4deg); } }
@keyframes m-blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.12); } }
@keyframes m-spark { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes m-smoke { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: .75; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes m-candle { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.72); } }
@keyframes m-glint { 0%, 72% { transform: translateX(0); } 92%, 100% { transform: translateX(290px); } }
/* Стрелочник живее: стрелка смотрит на курсор, лампочка, блик, щупы, ручка, оглядывается */
.m-str .m-look { transform-origin: 50% 100%; transform: rotate(var(--look, 0deg)); transition: transform .35s ease; }
.m-str .m-tilt { transform-origin: 50% 100%; animation: m-peek 9s ease-in-out infinite; }
.m-str .m-lamp { animation: m-lamp 3.2s steps(1) infinite; }
[data-mood="talk"] .m-str .m-lamp, [data-mood="think"] .m-str .m-lamp, .held .m-str .m-lamp { animation: m-lampFast .45s steps(1) infinite; }
.m-str .m-glint2 { animation: m-glint2 6.5s ease-in-out infinite; }
.m-str .m-knob { transform-origin: 50% 50%; animation: m-knob 11s steps(1) infinite; }
.m-fit .m-lookE { transform: translateX(var(--lookx, 0px)); transition: transform .3s ease; }
.m-fit .m-leg { transform-origin: 50% 0; }
@keyframes m-peek { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-5deg); } 93% { transform: rotate(4deg); } 96% { transform: rotate(-1deg); } }
@keyframes m-lamp { 0%, 82% { opacity: .3; } 84%, 90% { opacity: 1; } 92%, 100% { opacity: .3; } }
@keyframes m-lampFast { 0% { opacity: 1; } 50% { opacity: .25; } }
@keyframes m-glint2 { 0%, 70% { transform: translateX(0); } 90%, 100% { transform: translateX(120px); } }
@keyframes m-knob { 0%, 30% { transform: rotate(0); } 31%, 64% { transform: rotate(45deg); } 65%, 100% { transform: rotate(-45deg); } }
/* в руках: ножки болтаются, стрелка мечется; удар пальцем — прыжок */
.held .b-fig { transform: rotate(var(--tilt, 0deg)) scale(1.06); transition: transform .08s linear; }
.held .m-hop, .held .m-tilt { animation: none !important; }
.held .b-shadow { opacity: 0; }
.held .m-str .m-legL, .held .m-fit .m-leg { animation: m-dangle .5s ease-in-out infinite; }
.held .m-str .m-legR { animation: m-dangle .5s ease-in-out -.25s infinite; }
.held .m-str .m-needle { animation: m-sweep .35s ease-in-out infinite; }
.held .m-fit .m-flame { animation: m-flickBig .22s ease-in-out infinite; }
.poked .m-hop { animation: m-jump .5s ease-out 1 !important; }
.poked .m-str .m-needle { animation: m-peg .6s ease-out forwards; }
@keyframes m-dangle { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
/* живая анимация (RIG в скрипте): тело, руки, ноги, стрелку, глаза, пламя и веко ведут пружины, CSS-циклы для них выключены */
.buddy.rigged .m-hop, .buddy.rigged .m-tilt, .buddy.rigged .m-legL, .buddy.rigged .m-legR,
.buddy.rigged .m-needle, .buddy.rigged .m-look, .buddy.rigged .m-eyes, .buddy.rigged .m-lookE, .buddy.rigged .m-flame, .buddy.rigged .m-leg,
.buddy.rigged .m-candle, .buddy.rigged .m-lid, .buddy.rigged .m-lamp, .buddy.rigged .m-knob, .buddy.rigged .m-sparks, .buddy.rigged .m-smoke { animation: none !important; transition: none !important; }
.buddy.rigged.held .b-fig { transition: none; transform-origin: 50% 12%; }
.buddy.rigged .b-shadow { animation: none; transform-origin: 50% 50%; }
.b-dust { position: fixed; width: 6px; height: 6px; border-radius: 50%; background: #b9b2a5; z-index: 39; pointer-events: none; }
/* обводка красным карандашом вокруг главной кнопки */
.b-circle { position: absolute; z-index: 38; pointer-events: none; overflow: visible; }
.b-circle path { fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.b-note { max-width: 230px; font: 700 22px/1.05 var(--hand); color: var(--red); transform: rotate(-5deg); animation: bNote .45s .35s ease-out both; }
@keyframes bNote { from { opacity: 0; transform: translateY(6px) rotate(-5deg); } to { opacity: 1; transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .b-note { animation: none; } }
/* выключатель помощника в шапке */
.b-toggle { display: inline-flex; align-items: center; gap: 6px; height: 34px; border: 1.5px solid var(--ink); border-radius: 99px; padding: 2px 12px 2px 4px; background: var(--card); cursor: pointer; font: 600 13px var(--body); white-space: nowrap; }
.b-toggle[aria-pressed="true"] { background: #fffbe0; box-shadow: 2px 2px 0 var(--marker); }
@keyframes bGot { 0% { transform: scale(1); } 35% { transform: scale(1.22) rotate(-8deg); } 70% { transform: scale(.94); } 100% { transform: scale(1); } }
.b-toggle.got .b-tg-ico { animation: bGot .6s ease-out; }
@media (prefers-reduced-motion: reduce) { .b-toggle.got .b-tg-ico { animation: none; } }
.b-toggle[aria-pressed="false"] { opacity: .6; }
.b-toggle[aria-pressed="false"] .b-tg-ico { filter: grayscale(1); }
.b-tg-ico { width: 26px; height: 26px; display: grid; place-items: center; }
.b-tg-ico .m { height: 24px; width: auto; max-width: 26px; }
.b-tg-ico .m * { animation: none !important; }
@media (max-width: 559px) { .b-tg-t { display: none; } .b-toggle { padding: 2px 4px; } }
/* список ожидания */
.wait { display: grid; gap: 10px; justify-items: start; margin-top: 14px; padding: 14px; border: 1.5px dashed var(--ink); border-radius: 14px; background: var(--card); max-width: 520px; }
.wait-f { display: grid; gap: 10px; width: 100%; }
.wait-f input[type=email] { width: 100%; border: 1.5px solid var(--rule); border-radius: 10px; padding: 10px 12px; background: #fff; font-size: 16px; }
.wait-f .agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 500; }
.wait-f .agree input { margin-top: 3px; accent-color: var(--ink); }
.wait-done { font-weight: 600; }

/* чат помощника */
.bchat { position: fixed; z-index: 45; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: min(392px, calc(100vw - 32px)); height: min(640px, calc(100vh - 110px)); height: min(640px, calc(100dvh - 110px)); display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--marker); overflow: hidden; animation: b-pop .2s ease-out; }
.bchat[hidden] { display: none; }
@media (max-width: 639px) { .bchat { left: 8px; right: 8px; width: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); height: min(82vh, 640px); height: min(82dvh, 640px); box-shadow: 0 -6px 24px rgba(21,23,26,.18); } }
.bc-h { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border-bottom: 1.5px solid var(--rule); }
.bc-ava { width: 50px; height: 46px; display: grid; place-items: center; flex: none; }
.bc-ava .m { max-width: 50px; max-height: 46px; width: auto; height: 46px; }
.bc-ava .m-sig { height: 32px; } .bc-ava .m-fit { height: 46px; }
.bc-t { min-width: 0; display: grid; gap: 2px; }
.bc-t b { font: 800 22px/1 var(--display); }
.bc-t span { font-size: 12.5px; color: var(--graphite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-ai { margin-left: auto; font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--red); border: 1.5px solid var(--red); border-radius: 6px; padding: 4px 6px; transform: rotate(-3deg); white-space: nowrap; flex: none; }
.bc-btn { width: 32px; height: 32px; flex: none; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--card); cursor: pointer; font: 600 17px/1 var(--body); display: grid; place-items: center; padding: 0; }
.bc-pick { display: flex; gap: 6px; align-items: center; padding: 7px 12px; border-bottom: 1.5px dashed var(--rule); overflow-x: auto; flex: none; }
.bc-pick > span { font: 500 11.5px var(--mono); color: var(--graphite); flex: none; }
.bc-pick button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--rule); background: #fff; border-radius: 99px; padding: 2px 10px 2px 5px; cursor: pointer; font: 600 13px var(--body); white-space: nowrap; min-height: 32px; }
.bc-pick button[aria-pressed="true"] { border-color: var(--ink); background: #fffbe0; box-shadow: 2px 2px 0 var(--marker); }
.bc-pick .m { height: 24px; width: auto; } .bc-pick .m-sig { height: 17px; }
.bc-log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 22px 22px; }
.bm { max-width: 90%; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.bm p { margin: 0 0 6px; } .bm p:last-child { margin-bottom: 0; }
.bm ul, .bm ol { margin: 4px 0 6px; padding-left: 20px; display: grid; gap: 3px; }
.bm.me { align-self: flex-end; background: var(--ink); color: var(--paper); padding: 9px 13px; border-radius: 14px 14px 4px 14px; }
.bm.ai { align-self: flex-start; background: var(--card); border: 1.5px solid var(--ink); padding: 7px 13px 10px; border-radius: 14px 14px 14px 4px; }
.bm.ai .who { display: block; font: 700 18px/1.1 var(--hand); color: var(--red); margin-bottom: 2px; }
.bm.ai a { color: var(--ink); text-decoration-color: var(--graphite); }
.bm.sys { align-self: center; text-align: center; font: 500 12px/1.4 var(--mono); color: var(--graphite); max-width: 100%; }
.bm .dots { color: var(--graphite); font-style: italic; }
.bm .cut { font: 500 12px/1.4 var(--mono); color: var(--red); margin-top: 6px; }
.b-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.b-acts button { border: 1.5px solid var(--ink); background: #fffbe0; border-radius: 9px; padding: 5px 10px; font: 600 13px var(--body); cursor: pointer; }
.bc-chips { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; flex: none; }
.bc-chips button { flex: none; border: 1.5px solid var(--ink); background: var(--card); border-radius: 99px; padding: 5px 11px; font: 500 13px var(--body); cursor: pointer; white-space: nowrap; }
.bc-chips button:hover, .b-acts button:hover { background: #fff3a6; }
.bc-f { display: flex; gap: 8px; padding: 10px 12px 6px; flex: none; }
.bc-f input { flex: 1; min-width: 0; border: 1.5px solid var(--rule); border-radius: 10px; padding: 10px 12px; background: #fff; font-size: 16px; }
.bc-f input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px #fff3a6; }
.bc-f .btn { padding: 8px 13px; }
.bc-note { font-size: 11.5px; line-height: 1.35; color: var(--graphite); padding: 0 12px 10px; margin: 0; flex: none; }

/* запись на звонок внутри чата */
.bk { align-self: stretch; background: #fff; border: 1.5px solid var(--ink); border-radius: 14px; padding: 12px; display: grid; gap: 9px; font-size: 14.5px; box-shadow: 4px 4px 0 var(--marker); }
.bk-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-tabs button { border: 1.5px solid var(--ink); background: var(--card); border-radius: 99px; padding: 4px 11px; font: 600 13px var(--body); cursor: pointer; }
.bk-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.bk-sub { margin: 0; color: var(--graphite); font-size: 13.5px; }
.bk-row { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-row button, .bk-col button { border: 1.5px solid var(--rule); background: var(--card); border-radius: 10px; padding: 6px 10px; font: 600 13.5px var(--body); cursor: pointer; font-variant-numeric: tabular-nums; }
.bk-row button[aria-pressed="true"], .bk-col button[aria-pressed="true"] { border-color: var(--ink); background: var(--marker); }
.bk-col { display: grid; gap: 6px; }
.bk-col button { display: grid; gap: 2px; text-align: left; }
.bk-col button span { font-weight: 500; color: var(--graphite); }
.bk-tz { margin: 0; font: 500 11.5px var(--mono); color: var(--graphite); }
.bk-l { display: grid; gap: 4px; font-weight: 600; font-size: 13.5px; }
.bk-l input { width: 100%; border: 1.5px solid var(--rule); border-radius: 10px; padding: 8px 10px; background: #fff; font-size: 16px; min-width: 0; }
.bk-l input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px #fff3a6; }
.bk-ok { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.35; }
.bk-ok input { margin-top: 2px; accent-color: var(--ink); }
.bk .btn { justify-self: start; }
.bk-err { margin: 0; color: var(--red); font: 600 13px var(--body); }
.bk.done { box-shadow: none; background: #fffbe0; }
.bk-done { margin: 0; font-weight: 600; }

/* выбор помощника в кабинете */
.mpick { border: 0; padding: 0; margin: 0; min-width: 0; }
.mpick legend { font-weight: 600; font-size: 14.5px; padding: 0; margin-bottom: 8px; }
.mpick legend small { font-weight: 400; color: var(--graphite); }
.mp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mp { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center; border: 1.5px solid var(--rule); border-radius: 14px; padding: 10px 6px; cursor: pointer; background: #fff; min-width: 0; font-weight: 500; }
.mp:has(input:checked) { border-color: var(--ink); background: #fffbe0; box-shadow: 4px 4px 0 var(--marker); }
.mp:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.mp input { position: absolute; opacity: 0; pointer-events: none; }
.mp-fig { height: 62px; display: grid; place-items: end center; }
.mp-fig .m { height: 60px; width: auto; max-width: 100%; } .mp-fig .m-sig { height: 42px; }
.mp-n { font: 800 18px/1 var(--display); } .mp-d { font-size: 12.5px; color: var(--graphite); line-height: 1.3; }

/* видео: своя обложка поверх плеера; без автовключения — гость сам нажимает «смотреть» */
.phone .vwrap { position: relative; aspect-ratio: 9 / 16; border-radius: 19px; overflow: hidden; background: #000; max-width: 100%; }
.phone .vwrap video { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.vcover { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: var(--paper); cursor: pointer; overflow: hidden; font: inherit; color: inherit; }
.vcover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vloop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .22s ease; pointer-events: none; background: transparent; }
.vcover.live .vloop { opacity: 1; }
.vplay { position: absolute; left: 50%; top: 50%; width: 82px; height: 82px; margin: -41px 0 0 -41px; border-radius: 50%; background: var(--ink); box-shadow: 4px 4px 0 var(--marker); display: grid; place-items: center; transition: transform .15s ease; }
.vplay svg { width: 30px; height: 30px; margin-left: 5px; }
.vplay::after { content: ""; position: absolute; inset: -13px; border: 3px solid var(--red); border-radius: 47% 53% 50% 45%; transform: rotate(-8deg) scale(.9); opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.vcover:hover .vplay, .vcover:focus-visible .vplay { transform: scale(1.06); }
.vcover:hover .vplay::after, .vcover:focus-visible .vplay::after { opacity: 1; transform: rotate(-8deg) scale(1); }
.vdur { position: absolute; right: 10px; bottom: 10px; font: 600 13px/1 var(--mono); color: #f4f5f1; background: rgba(21,23,26,.84); border-radius: 8px; padding: 6px 8px; }
.vcover.soon-c .vplay { background: var(--graphite); }
.phone .vplay { top: 61%; }
.phone .vdur { top: 10px; bottom: auto; }
.callbox { margin-top: 34px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 16px; padding: 22px 22px 24px; }
.call-head { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-end; justify-content: space-between; }
.call-head > div:first-child { flex: 1 1 300px; min-width: 0; }
.call-head .muted { margin-bottom: 0; }
.cplayer { position: relative; margin-top: 16px; aspect-ratio: 16 / 9; max-width: 100%; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: #000; box-shadow: 8px 8px 0 var(--marker); }
.cplayer:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.cplayer video { display: block; width: 100%; height: 100%; background: #000; }
.cbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 26px 12px 10px; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.74)); color: #fff; font: 500 13px/1 var(--mono); transition: opacity .25s ease; }
.cplayer.idle .cbar { opacity: 0; }
.cbar button { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.cbar button svg { width: 18px; height: 18px; }
.cbar input[type="range"] { flex: 1 1 auto; min-width: 0; accent-color: var(--marker); }
.ctime { flex: none; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .ctime { display: none; } }
.cplayer:fullscreen { border: 0; border-radius: 0; box-shadow: none; }
.cnote { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 15px; }
.login { display: grid; gap: 14px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 16px; padding: 20px 22px; margin: 22px 0 6px; box-shadow: 6px 6px 0 rgba(21,23,26,.06); }
.login h3 { margin: 0 0 4px; }
.login p { margin: 0; }
.login-row { display: flex; flex-wrap: wrap; gap: 10px; }
.login-row .btn { padding: 11px 16px; font-size: 15.5px; }
.login-row .btn svg { width: 19px; height: 19px; flex: none; }
.login-mail { display: flex; flex-wrap: wrap; gap: 10px; }
.login-mail input { flex: 1 1 220px; min-width: 0; font: inherit; padding: 11px 14px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--card); }
#cabWho { margin: 18px 0 4px; font: 500 14px/1.4 var(--mono); color: var(--graphite); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
#cabWho button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.todo-box { background: #fffbe0; border-color: var(--ink); box-shadow: 6px 6px 0 var(--marker); }
.todo-box ol { gap: 9px; }
.pl-more { margin-top: 12px; }
.pl-more summary { cursor: pointer; font-weight: 600; }
.pl-more h4 { margin: 14px 0 6px; font-size: 17px; }
.ava-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 14px; }
@media (min-width: 640px) { .ava-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ava-card { margin: 0; display: grid; gap: 10px; align-content: start; background: #fff; border: 1.5px solid var(--rule); border-radius: 14px; padding: 14px; min-width: 0; }
.ava-card.fav-card { border-color: var(--ink); box-shadow: 4px 4px 0 var(--marker); }
.ava-img { display: block; width: 100%; max-width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; overflow: hidden; background: var(--rule); cursor: zoom-in; }
.ava-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ava-card figcaption { display: grid; gap: 3px; font-size: 15px; line-height: 1.4; }
.ava-card figcaption .muted { font-size: 14px; }
.fav { font: 700 20px/1 var(--hand); color: var(--red); }
.todo-box .steps { margin: 6px 0; padding-left: 22px; display: grid; gap: 6px; list-style: decimal; }
.cmd-wrap summary { cursor: pointer; font-size: 14px; }
.cmd { font: 500 12.5px/1.45 var(--mono); background: #fff; border: 1.5px solid var(--rule); border-radius: 10px; padding: 10px 12px; margin: 8px 0 0; white-space: pre-wrap; word-break: break-all; max-height: 170px; overflow: auto; }
.done-step { margin: 8px 0; padding: 8px 12px; background: #eaf6ea; border: 1.5px solid #2f7d32; border-radius: 10px; color: var(--ink); }
.mdemo { display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 1; border: 1.5px solid var(--ink); border-radius: 14px; background: #f6f3ec; margin-top: 12px; }
.ava-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.ava-pick button { flex: 1 1 auto; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); border-radius: 99px; padding: 6px 8px; font: 600 13px/1.2 var(--body); cursor: pointer; }
.ava-pick button[aria-pressed="true"][data-pick="take"] { background: var(--ink); color: var(--paper); }
.ava-pick button[aria-pressed="true"][data-pick="fix"] { background: var(--marker); }
.ava-pick button[aria-pressed="true"][data-pick="skip"] { background: var(--rule); color: var(--graphite); border-color: var(--graphite); }
.ava-dl { justify-self: start; }
img.ava-check { display: block; max-width: none; width: 1060px; height: auto; border-radius: 10px; border: 1.5px solid var(--rule); }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(21,23,26,.88); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 86vh; border-radius: 14px; background: #fff; }
.lb-x { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #f4f5f1; color: #15171a; font: 600 18px/1 var(--body); cursor: pointer; }
