/* Той Менеджер — общий стиль сайта: светлый фон, шрифт Inter, один фиолетовый акцент */
:root {
  --bg: #FCFBFE;
  --surface: #FFFFFF;
  --line: #ECE9F2;
  --ink: #2A2440;
  --muted: #5E5873;
  --accent: #5B3FD6;
  --accent-dark: #4B32B8;
  --accent-soft: #F1EDFF;
  --success: #1E8A5E;
  --success-soft: #E3F6EE;
  --warn: #7A4A00;
  --hero: linear-gradient(140deg, #C2AEFF 0%, #E3B2F2 55%, #FFB8D8 100%);
  --hero-soft: linear-gradient(150deg, #F1ECFF 0%, #F7EEFB 55%, #FDEFF5 100%);
  --radius: 24px;
  --shadow: 0 1px 2px rgba(40, 30, 80, 0.04), 0 6px 18px rgba(60, 40, 130, 0.05);
  --shadow-2: 0 12px 28px rgba(60, 40, 130, 0.12);
  --success-text: #15704B;
  /* шкала: размеры текста, отступы, скругления */
  --fs-12: 12px; --fs-14: 14px; --fs-16: 16px; --fs-18: 18px; --fs-20: 20px; --fs-24: 24px; --fs-32: 32px; --fs-44: 44px; --fs-56: 56px;
  --s-4: 4px; --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-24: 24px; --s-32: 32px; --s-48: 48px; --s-64: 64px; --s-96: 96px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--accent); }
.wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 48px; }
.top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.brand img { width: 32px; height: 32px; border-radius: var(--r-sm); }
.lang { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; cursor: pointer; min-height: 32px; }
.lang button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-dark); }
h1 { font-size: clamp(22px, 6.8vw, 28px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 0; hyphens: auto; overflow-wrap: break-word; }
h2, h3 { font-weight: 600; }
h2 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; }
p { margin: 0; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.hero { background: var(--hero-soft); color: var(--ink); border-radius: var(--r-xl); padding: 24px 22px; border: 1px solid #ECE4FB; }
.hero .eyebrow { font-size: 14px; opacity: 0.92; margin-bottom: 6px; }
.hero h1 { color: var(--ink); }
.hero .greet { margin-top: 14px; font-size: 18px; }
.row { display: flex; gap: 12px; align-items: flex-start; }
.row + .row { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.ico { width: 36px; height: 36px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; flex: none; font-weight: 600; }
.ico svg { width: 20px; height: 20px; }
.label { font-size: 14px; color: var(--muted); }
.value { font-weight: 600; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border-radius: var(--r-md);
  border: 0; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(91, 63, 214, 0.22); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn:disabled { opacity: 0.55; cursor: default; }
/* рамка фокуса: сплошная, контраст 6,5:1 */
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible, .chip:focus-visible, .lang button:focus-visible, .step button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice .btn[aria-pressed="true"].yes { background: var(--success); color: #fff; box-shadow: none; }
.choice .btn[aria-pressed="true"].no { background: var(--ink); color: #fff; }
.step { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step .ctrl { display: flex; align-items: center; gap: 14px; }
.step button { width: 44px; height: 44px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 22px; font-weight: 600; color: var(--ink); cursor: pointer; }
.step output { font-size: 22px; font-weight: 600; min-width: 28px; text-align: center; }
.done { text-align: center; padding: 26px 18px; }
.done .mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px;
  background: var(--success-soft); color: var(--success); }
.done.no .mark { background: #F1EFF6; color: var(--muted); }
.promo { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.promo img { width: 48px; height: 48px; border-radius: var(--r-md); flex: none; }
.err { color: var(--accent-dark); font-size: 14px; }
.skeleton { height: 18px; border-radius: 9px; background: linear-gradient(90deg, #EEEAF6, #F8F6FD, #EEEAF6); background-size: 200% 100%;
  animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
footer { margin-top: 28px; font-size: 14px; color: var(--muted); text-align: center; }
footer a { color: var(--muted); }
.doc h2 { margin-top: 22px; }
.doc ul { padding-left: 20px; margin: 6px 0; }
.doc li { margin: 4px 0; }
.feat { display: grid; gap: 10px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
/* Барсёнок выглядывает из-за карточки: картинка дважды — снизу целиком, сверху только лапы поверх карточки */
.peek { position: relative; }
.peek > img { display: block; width: 100%; height: auto; }
.peek > img.paws { position: absolute; top: 0; left: 0; pointer-events: none; clip-path: inset(85.98% 0 0 0); }   /* только лапы ниже края карточки */
.peek > .card { margin: -9.74% 3% 0; padding-top: calc(9.74% + 14px); border-radius: var(--r-xl); }
.peek > img.blink { position: absolute; top: 0; left: 0; opacity: 0; animation: cubBlink 5.6s infinite; pointer-events: none; }
@keyframes cubBlink { 0%, 90%, 100% { opacity: 0; } 91.2%, 93.4% { opacity: 1; } 94.6% { opacity: 0; } }
.peek > img.happy { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.peek.smile > img.happy { opacity: 1; }
.peek.smile > img.blink { visibility: hidden; }
section.peek > img:first-child { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .peek > img.blink { animation: none; } .peek > img.happy { transition: none; } }
