/* Okti — заглушка сайта. Цвета, радиусы и шрифт — из дизайн-системы Okti (okti-app: tokens.css,
   components.css; снято 20.11.2026). Тёмная тема — по настройке системы. */

@font-face {
  font-family: 'Onest Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/onest-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/onest-latin-wght-normal.woff2) format('woff2-variations');
  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;
}

:root {
  --primary: oklch(0.54 0.17 290);
  --on-color: #ffffff;
  --bg: #f2f2f0;
  --surface: #fcfcfb;
  --surface-2: #e9e9e6;
  --ink: #1f1f1d;
  --ink-muted: #6b6b66;
  --ink-faint: #a3a39e;
  --success: oklch(0.52 0.15 150);
  --focus: var(--ink);
  --skin: var(--primary);
  --radius-pill: 999px;
  --font-sans: "Onest Variable", "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: oklch(0.8 0.13 290);
    --on-color: #1c1c1e;
    --bg: #1c1c1e;
    --surface: #262628;
    --surface-2: #323235;
    --ink: #ebebe8;
    --ink-muted: #a3a39f;
    --ink-faint: #6b6b69;
    --success: oklch(0.8 0.14 150);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  font-family: var(--font-sans); font-size: 16px; line-height: 1.55; background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
h1 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* ---------- Кнопки (как ok-btn) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: var(--radius-pill); font: inherit; font-weight: 500; font-size: 15px; text-decoration: none;
  white-space: nowrap; transition: opacity .15s ease;
}
.btn-primary { background: var(--skin); color: var(--on-color); }
.btn-primary:hover { opacity: .88; }
.btn-secondary { background: var(--surface-2); color: var(--ink); }
.btn-secondary:hover { opacity: .8; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 18px; font-weight: 600; }

/* ---------- Персонаж: спрайт 5×2 из okti-app ---------- */
.persona { display: inline-block; flex: none; background: url(/assets/okti-sprite.webp) no-repeat; background-size: 500% 200%; }
.persona-idle { background-position: 0% 0%; }
.persona-greeting { background-position: 25% 0%; }
.persona-reading { background-position: 50% 0%; }
.persona-responding { background-position: 0% 100%; }
.persona-success { background-position: 25% 100%; }
.persona-clarification { background-position: 50% 100%; }
.persona-anim { animation: breathe 3.2s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2%) scale(1.03); } }

/* ---------- Рамка ---------- */
.top, .home, .foot { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 32px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 18px; }
.logo b { font-weight: 600; letter-spacing: -0.02em; }
.logo .persona { width: 34px; height: 34px; margin-block: -4px; }

.home {
  flex: 1; display: grid; grid-template-columns: minmax(0, 640px) minmax(240px, 1fr);
  column-gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(24px, 6vh, 72px);
}
.intro { display: flex; flex-direction: column; gap: 22px; }
.intro h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
.lead { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; color: var(--ink-muted); max-width: 32em; }

.soon {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border-radius: var(--radius-pill); background: color-mix(in oklab, var(--skin) 14%, transparent);
  font-size: 14px; font-weight: 500;
}
.soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--skin); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.now { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 6px; padding: 22px 24px; border-radius: 22px; background: var(--surface); }
.now p { font-size: 17px; line-height: 1.45; }
.now-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.now .note { font-size: 14px; color: var(--ink-muted); }

.foot { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-block: 28px; font-size: 13px; color: var(--ink-muted); }
.foot .legal { color: var(--ink-faint); }

/* ---------- Сцена: Okti стоит, дышит, машет; поза — от настроения ---------- */
.stage { grid-column: 2; grid-row: 1; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px; user-select: none; }
.stage-okti { position: relative; width: 220px; height: 236px; display: grid; place-items: end center; }
.stage-glow {
  position: absolute; inset: 18px 10px 30px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--skin) 30%, transparent), transparent);
  filter: blur(8px); animation: glow 4.8s ease-in-out infinite;
}
.stage-body { position: relative; z-index: 1; margin-bottom: 18px; animation: float 4.2s ease-in-out infinite, pose .45s cubic-bezier(.2, .9, .3, 1.35); }
.stage-body .persona { display: block; width: 200px; height: 200px; }
.stage-shadow {
  position: absolute; bottom: 6px; left: 50%; width: 120px; height: 16px; margin-left: -60px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(30 20 80 / .28), transparent); animation: shadow 4.2s ease-in-out infinite;
}
.stage[data-mood='success'] .stage-body { animation: hop .7s cubic-bezier(.3, .7, .4, 1.2) 2, pose .45s cubic-bezier(.2, .9, .3, 1.35); }
.stage[data-mood='greeting'] .stage-body .persona { animation: wave 1.1s ease-in-out infinite; transform-origin: 50% 85%; }
.stage-say {
  position: relative; padding: 9px 16px; border-radius: 18px; background: var(--surface); color: var(--ink);
  font-size: 15px; font-weight: 500; white-space: nowrap; box-shadow: 0 10px 28px -14px rgb(30 20 80 / .45);
  animation: say .3s cubic-bezier(.2, .9, .3, 1.3);
}
.stage-say::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: inherit; transform: rotate(45deg); border-radius: 0 0 3px 0; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.78); opacity: .6; } }
@keyframes glow { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes pose { from { scale: .9; } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-22px); } }
@keyframes wave { 0%, 100% { rotate: 0deg; } 30% { rotate: -5deg; } 70% { rotate: 5deg; } }
@keyframes say { from { opacity: 0; transform: translateY(6px) scale(.92); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

/* ---------- Телефон: Okti над текстом, меньше, реплика сбоку ---------- */
@media (max-width: 900px) {
  .home { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .stage { grid-column: 1; justify-self: start; flex-direction: row-reverse; align-items: center; gap: 4px; margin: 0 0 8px -8px; }
  .stage-okti { width: 132px; height: 140px; }
  .stage-body { margin-bottom: 12px; }
  .stage-body .persona { width: 116px; height: 116px; }
  .stage-shadow { width: 76px; margin-left: -38px; height: 12px; }
  .stage-say { font-size: 14px; white-space: normal; max-width: 180px; }
  .stage-say::after { left: -5px; top: 50%; bottom: auto; margin: -6px 0 0; border-radius: 0 0 0 3px; }
}
@media (max-width: 600px) {
  .top, .home, .foot { padding-inline: 16px; }
  .now { padding: 18px; }
  .now-actions { flex-direction: column; align-self: stretch; }
  .btn-lg { padding: 0 20px; font-size: 17px; }
}
