/* ============================================================
   Astor – титульная страница (index.html): одна история продукта.
   Сначала телефон 375 px, затем планшет и десктоп.
   Шрифт, веса и трекинги – из css/brand-typography.css (--brand-*),
   цвета – как в приложении Astor в Telegram: ночной синий, кремовые кнопки, стекло.
   Без JS. Все экраны – настоящие снимки приложения и кабинета Astor Бизнес (assets/app, WebP 600×1298).
   ============================================================ */

:root {
  /* цвета приложения Astor в Telegram, тёмная тема (astor/frontend globals.css) */
  --ink: #0b0f22;
  --ink-2: #10152e;
  --ink-3: #161c38;
  --paper: #f2f3fa;
  --paper-dim: #aeb4cf;
  --silver: #9aa1c0;
  --metal: #e8e1d4;
  --cream: #e8e1d4;
  --navy: #131936;
  --line: rgba(242, 243, 250, 0.1);
  --surface: rgba(30, 38, 80, 0.42);
  --surface-strong: rgba(46, 58, 112, 0.55);
  --glass-edge: rgba(255, 255, 255, 0.13);
  --glass-bg: rgba(30, 38, 80, 0.42);
  --glass-hi: rgba(255, 255, 255, 0.42);
  --glass-shadow: 0 8px 26px -8px rgba(0, 0, 0, 0.55);
  --orb-sky-c: #8fa0e0;
  --guest: rgba(111, 130, 200, 0.32);
  --glow: rgba(61, 79, 140, 0.55);
  --font-body: var(--brand-font-family);
  --font-display: var(--brand-font-heading);
  --wrap: 1120px;
  --gutter: 16px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: var(--brand-body-weight);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--brand-heading-weight);
  letter-spacing: var(--brand-heading-tracking);
  line-height: var(--brand-heading-leading);
}

p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
b { font-weight: var(--brand-weight-semibold); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 10;
  background: var(--paper); color: var(--ink); padding: 8px 16px;
}
.skip-link:focus { left: 8px; }

a:focus-visible, .btn:focus-visible { outline: 2px solid var(--metal); outline-offset: 3px; border-radius: 6px; }

/* Надзаголовок – чип, как фильтры на карте приложения. */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; margin-bottom: 16px; padding: 0 14px;
  border-radius: 999px; background: var(--glass-bg);
  box-shadow: inset 0 0 0 0.75px var(--glass-edge);
  font-size: 0.85rem; font-weight: var(--brand-weight-medium); color: var(--paper);
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orb-sky-c); box-shadow: 0 0 10px var(--orb-sky-c); }

.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--ink-2); }

.section-title {
  max-width: 13em;
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 6.8vw, 2.9rem);
  font-weight: var(--brand-weight-bold);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.lede { max-width: 32em; color: var(--paper-dim); font-size: 1.05rem; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 24px;
  border-radius: 999px; border: 0;
  font-size: 1.02rem; font-weight: var(--brand-weight-semibold); line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--cream); color: var(--navy); }
.btn-primary:hover { background: #f4efe6; }
/* Стекло – как Liquid Glass в приложении (globals.css .glass). */
.btn-quiet, .glass {
  background: var(--glass-bg); color: var(--paper);
  -webkit-backdrop-filter: blur(9px) saturate(185%); backdrop-filter: blur(9px) saturate(185%);
  box-shadow: inset 0 0 0 0.75px var(--glass-edge), inset 1.4px 1.4px 1px -0.6px var(--glass-hi), var(--glass-shadow);
}
.btn-quiet:hover { background: var(--surface-strong); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.95rem; }

/* ---------- шапка ---------- */
/* Шапка – стеклянная капсула, как поиск и панель вкладок в приложении. */
.top { position: sticky; top: 0; z-index: 20; padding: 10px 0; }
.top-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: calc(100% - 2 * var(--gutter)); min-height: 56px; padding: 0 8px 0 18px; border-radius: 999px;
}
/* Под шапкой не должен читаться текст страницы: стекло плотнее, сверху – полоса фона. */
.top { background: linear-gradient(var(--ink) 55%, transparent); }
.top-row.glass { background: rgba(16, 21, 46, 0.82); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }

.mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.95rem; font-weight: var(--brand-weight-semibold);
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
/* Знак Astor – засечная «A» со звездой вместо перекладины, пути те же, что в assets/astor-mark.svg. */
.astor-mark { display: block; flex: none; width: 32px; height: 32px; }

.top-nav { display: none; gap: 4px; margin-left: auto; font-size: 0.92rem; color: var(--paper-dim); }
.top-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.top-nav a:hover { color: var(--paper); background: var(--surface-strong); }

/* ---------- первый экран ---------- */
/* Ширины текста в em, а не в ch: ch зависит от шрифта, и при подмене запасного шрифта на Inter строки переносились бы иначе (сдвиг макета). */
.hero {
  padding: 28px 0 56px;
  background: radial-gradient(70% 60% at 78% 38%, #1e2a55 0%, rgba(13, 18, 48, 0.6) 45%, transparent 75%);
}
.hero-grid { display: grid; gap: 40px; }

.hero h1 {
  max-width: 9.6em;
  font-size: clamp(2.3rem, 10vw, 4.3rem);
  font-weight: var(--brand-weight-bold);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero-lead { max-width: 21em; margin-top: 18px; font-size: 1.12rem; color: var(--paper-dim); }

.cta { display: grid; gap: 12px; margin-top: 28px; }

/* Чипы – те же, что над картой в приложении: «Всё» выбран кремовым. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; font-size: 0.95rem; font-weight: var(--brand-weight-medium); text-decoration: none;
  transition: background 0.2s var(--ease);
}
.chips a:hover { background: var(--surface-strong); }
.ic-s { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }


.hero-note { margin-top: 18px; max-width: 23em; font-size: 0.88rem; color: var(--silver); }

/* ---------- как это работает: четыре шага, у каждого настоящий экран ---------- */
.journey { display: grid; gap: 48px; margin-top: 36px; }
.leg { display: grid; gap: 20px; align-content: start; }
.leg .shot { max-width: 280px; margin: 0; }
.leg-text h3 { font-size: 1.35rem; letter-spacing: var(--brand-subhead-tracking); margin-bottom: 8px; }
.leg-text p:last-child { color: var(--paper-dim); max-width: 24em; }
/* Номер шага – чип с кремовым кружком, как выбранный день в брони. */
.step-num {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 4px 14px 4px 4px;
  border-radius: 999px; background: var(--surface-strong); font-size: 0.85rem; color: var(--paper);
}
.step-num span {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--cream); color: var(--navy); font-weight: var(--brand-weight-bold);
}
.how-cta { margin-top: 40px; }

/* настоящие экраны приложения Astor (скриншоты 600×1298) */
.shot {
  display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 34px;
  /* поле экрана вокруг снимка, как полоса статуса: заголовок не упирается в скругление рамки */
  padding: 22px 0 12px; background: #0b0f22;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.hero-shot .shot { max-width: 320px; }

.screens {
  display: flex; gap: 20px; margin-top: 12px;
  padding: 24px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: thin; scrollbar-color: rgba(244, 247, 249, 0.25) transparent;
}
.screens li { flex: 0 0 min(236px, 64vw); scroll-snap-align: start; }
.screens .shot { max-width: none; border-radius: 30px; }
.screens h3 { margin-top: 16px; font-size: 1.1rem; letter-spacing: var(--brand-subhead-tracking); }
.screens p { margin-top: 4px; font-size: 0.92rem; color: var(--paper-dim); }

/* ---------- для ресторанов ---------- */
.venue-grid { display: grid; gap: 32px; margin-top: 28px; }
.gets { display: grid; gap: 12px; }
/* Карточки – как в приложении: фон --ink-3, скругление 24, иконка в плитке. */
.get { padding: 18px; border-radius: 24px; background: var(--ink-3); }
.tile {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 14px; background: rgba(242, 243, 250, 0.07); color: var(--paper);
}
.tile svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.get h3 { font-size: 1.1rem; letter-spacing: var(--brand-subhead-tracking); margin-bottom: 6px; }
.get p { color: var(--paper-dim); font-size: 0.95rem; }

.connect {
  padding: 24px 20px; border-radius: 24px;
  background: radial-gradient(90% 70% at 20% 0%, #1e2a55 0%, var(--ink-3) 70%);
}
.connect h3 { font-size: 1.25rem; margin-bottom: 12px; }
.connect-steps { counter-reset: c; display: grid; gap: 8px; margin-bottom: 22px; color: var(--paper-dim); }
.connect-steps li { counter-increment: c; display: grid; grid-template-columns: 24px 1fr; }
.connect-steps li::before { content: counter(c) "."; color: var(--paper); }
.connect-price { margin: -6px 0 20px; color: var(--paper-dim); }
.connect-price b { display: block; font-size: 1.4rem; color: var(--paper); font-family: var(--font-display); letter-spacing: var(--brand-subhead-tracking); }
.connect .btn { width: 100%; }
.connect-note { margin-top: 10px; font-size: 0.85rem; color: var(--silver); overflow-wrap: anywhere; text-align: center; }

/* ---------- правила ---------- */
/* Правила – список-карточка, как «Время, адрес, телефон» в карточке места. */
.rules { margin-top: 28px; padding: 6px 18px; border-radius: 24px; background: var(--ink-3); }
.rules li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px 0; }
.rules li + li { border-top: 1px solid var(--line); }
.rules .tile { margin: 0; }
.rules h3 { font-size: 1.05rem; letter-spacing: var(--brand-subhead-tracking); margin: 2px 0 4px; }
.rules p { color: var(--paper-dim); font-size: 0.95rem; }

/* ---------- Astor внизу: как экран «Чем помочь?» в приложении ---------- */
.ask { padding: 88px 0 96px; text-align: center; background: radial-gradient(90% 55% at 50% 30%, #1e2a55 0%, #0d1230 55%, var(--ink) 85%); }
.ask .orb { margin: 0 auto 36px; }
.ask h2 { font-size: clamp(1.7rem, 6vw, 2.6rem); font-weight: var(--brand-weight-bold); letter-spacing: -0.03em; line-height: 1.1; }
.ask p { max-width: 26em; margin: 14px auto 24px; color: var(--paper-dim); }
.ask .chips { justify-content: center; margin: 0 auto 28px; }

/* ---------- подвал ---------- */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--paper-dim); }
.footer-grid { display: grid; gap: 28px; }
.footer-brand .mark { color: var(--paper); margin-bottom: 10px; }
.footer-brand p { max-width: 18em; }
.footer-col h2 {
  margin-bottom: 10px; font-size: 0.75rem; font-weight: var(--brand-weight-medium);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--silver);
}
.footer-col ul { display: grid; gap: 8px; }
.footer-col li { display: grid; }
.footer-col a { padding: 4px 0; }
.footer-col a { color: var(--paper); text-decoration-color: rgba(244, 247, 249, 0.3); text-underline-offset: 3px; overflow-wrap: anywhere; }
.footer-col a:hover { text-decoration-color: var(--paper); }
.footer-col li span { font-size: 0.82rem; color: var(--silver); }
.footer-copy { margin-top: 32px; font-size: 0.82rem; color: var(--silver); }

/* ---------- планшет ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .cta { display: flex; flex-wrap: wrap; }
  .journey { grid-template-columns: repeat(2, 1fr); gap: 56px 32px; }
  .gets { grid-template-columns: repeat(2, 1fr); }
  .rules { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .rules li + li { border-top: 0; }
  .rules li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .connect .btn { width: auto; }
  .connect-note { text-align: left; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- десктоп ---------- */
@media (min-width: 960px) {
  .top-nav { display: flex; }
  .section { padding: 96px 0; }
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 56px; }
  .hero-shot .shot { margin-right: 0; }
  .journey { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  /* Экраны приложения на десктопе – сеткой 4 + 3, без прокрутки вбок. */
  .screens:not(.biz) {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px;
    max-width: var(--wrap); margin: 12px auto 0; padding: 24px var(--gutter) 0;
    overflow: visible; scroll-snap-type: none;
  }
  .leg .shot { max-width: none; }
  /* «Как подключиться» – такая же плитка, как четыре карточки слева: тот же отступ, высота во всю сетку */
  .venue-grid { grid-template-columns: 1.15fr 0.85fr; gap: 12px; align-items: stretch; }
  .connect { display: flex; flex-direction: column; padding: 24px; }
  .connect-price { margin-top: auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 0.8fr 1.2fr; }
}

/* ---------- ленты экранов на телефоне и планшете ---------- */
/* Листаются по одному экрану: активный – по центру, соседи выглядывают с обеих сторон.
   Под лентой – стрелки и точки (js/rails.js); без скрипта лента так же листается пальцем. */
.rail-pager { display: none; }
@media (max-width: 959px) {
  .screens {
    --rail-card: min(256px, 66vw);
    gap: 16px;
    /* поля по половине «пустого» места: первый и последний экран тоже встают по центру */
    padding-inline: calc((100% - var(--rail-card)) / 2);
    scroll-padding-inline: 0;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .screens.has-pager { scrollbar-width: none; }
  .screens.has-pager::-webkit-scrollbar { display: none; }
  .screens li { flex: 0 0 var(--rail-card); scroll-snap-align: center; scroll-snap-stop: always; text-align: center; }
  /* Въезд блоков (motion.css) прятал экраны за краем ленты – прозрачные, размытые и сдвинутые,
     пока каждый сам не попадёт в кадр: при свайпе лента выглядела пустой, будто кончилась.
     В ленте экраны видны сразу; лента въезжает целиком вместе с разделом. */
  .motion .screens > li.m-reveal { opacity: 1; transform: none; filter: none; transition: none; }
  /* подписи соседей обрезаны краем экрана – приглушаем их, читается подпись экрана по центру */
  .screens.has-pager li > :is(h3, p) { transition: opacity 0.3s var(--ease); }
  .screens.has-pager li:not(.is-active) > :is(h3, p) { opacity: 0.3; }

  .rail-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; padding: 0 var(--gutter); }
  .rail-pager[hidden] { display: none; }
  .rail-btn {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%; cursor: pointer;
    transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
  }
  .rail-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .rail-btn:disabled { opacity: 0.35; cursor: default; }
  .rail-btn:focus-visible, .rail-dots button:focus-visible { outline: 2px solid var(--metal); outline-offset: 2px; }
  .rail-dots { display: flex; align-items: center; }
  /* кнопка-точка 22×32 для пальца, видимая точка – 7 px, активная вытягивается в кремовую черту */
  .rail-dots button {
    display: grid; place-items: center; width: 22px; height: 32px; padding: 0;
    border: 0; background: none; cursor: pointer;
  }
  .rail-dots button::before {
    content: ""; width: 7px; height: 7px; border-radius: 999px;
    background: rgba(242, 243, 250, 0.28);
    transition: width 0.3s var(--ease), background 0.3s var(--ease);
  }
  .rail-dots button[aria-current="true"]::before { width: 20px; background: var(--cream); }
  .rail-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- телефон: всё по центру ---------- */
@media (max-width: 639px) {
  .hero-copy { text-align: center; }
  .hero h1, .hero-lead, .hero-note { margin-inline: auto; }
  .hero .chips { justify-content: center; }

  .section .wrap { text-align: center; }
  .section-title, .lede { margin-inline: auto; }

  .leg .shot { margin: 0 auto; }
  .leg-text p:last-child { margin-inline: auto; }

  .get .tile { margin-inline: auto; }
  .connect-steps li { display: block; }
  .connect-steps li::before { content: counter(c) ".\00a0"; }

  .rules li { grid-template-columns: 1fr; justify-items: center; gap: 10px; }

  .footer-grid, .footer-copy { text-align: center; }
  .footer-brand p { margin-inline: auto; }
  .footer-col li { justify-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Astor – тот же «шарик», что в приложении (astor/frontend globals.css, .orb…). Перенесён как есть; сайт всегда в тёмной теме. */
.orb {
  --orb-white: #ffffff;
  --orb-mist: #c9d3f5;
  --orb-sky: #8fa0e0;
  --orb-blue: #6f82c8;
  --orb-berry: #5a6fb3;
  --orb-indigo: #4a5ba8;
  --orb-deep: #3d4f8c;
  --orb-ink: #2f4180;
  --orb-night: #1e2a55;
  --orb-navy: #131936;
  --orb-aura-color: var(--astor-glow);
  --orb-aura-k: 1;
  --busy: 0;
  --extra: 1;
  position: relative;
  display: block;
  flex: none;
  transition:
    width 0.55s cubic-bezier(0.2, 0.9, 0.25, 1),
    height 0.55s cubic-bezier(0.2, 0.9, 0.25, 1);
}
/* В тёмной теме Astor светится сильнее (кадр 41). */
.orb {
  --orb-aura-color: rgba(143, 160, 224, 0.45);
}
/* «Бутон» в нижней панели: одна лента, остальные едва проступают, ореол слабее. */
.orb[data-bud] {
  --extra: 0.35;
  --orb-aura-k: 0.55;
}
.orb[data-state="thinking"] {
  --busy: 1;
}
.orb[data-state="speaking"] {
  --busy: 0.5;
}
.orb-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170%;
  height: 170%;
  translate: -50% -50%;
  border-radius: 9999px;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    var(--orb-aura-color),
    color-mix(in srgb, var(--orb-aura-color) 33%, transparent) 55%,
    transparent
  );
  opacity: calc((0.45 + 0.45 * var(--lv, 0) + 0.2 * var(--busy)) * var(--orb-aura-k));
  scale: calc(0.85 + 0.25 * var(--lv, 0));
  transition:
    opacity 0.15s linear,
    scale 0.15s linear;
}
.orb-lift {
  position: absolute;
  inset: 0;
  scale: calc(1 + 0.07 * var(--lv, 0));
  transition: scale 0.12s linear;
}
.orb-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.orb-lay,
.orb-boost,
.orb-rush,
.orb-morph {
  position: absolute;
  inset: 0;
}
.orb-lay {
  -webkit-mask-image: radial-gradient(circle closest-side, #000 80%, transparent 97%);
  mask-image: radial-gradient(circle closest-side, #000 80%, transparent 97%);
  will-change: transform;
  animation: orb-turn 13.8s linear infinite;
}
.orb-lay[data-i="1"] {
  opacity: calc(0.85 * var(--extra));
  animation-duration: 16.9s;
  animation-direction: reverse;
}
.orb-lay[data-i="2"] {
  opacity: calc(0.85 * var(--extra));
  animation-duration: 10.3s;
}
.orb-boost {
  animation: orb-turn 6s linear infinite paused;
}
.orb-lay[data-i="1"] .orb-boost {
  animation-duration: 7.3s;
  animation-direction: reverse;
}
.orb-lay[data-i="2"] .orb-boost {
  animation-duration: 4.4s;
}
.orb:is([data-state="listening"], [data-state="thinking"], [data-state="speaking"]) .orb-boost {
  animation-play-state: running;
}
/* Думает: ленты крутятся быстрее и раскрываются. */
.orb-rush {
  scale: 1;
  transition: scale 0.5s cubic-bezier(0.2, 0.9, 0.25, 1);
  animation: orb-turn 2.4s linear infinite paused;
}
.orb-lay[data-i="1"] .orb-rush {
  animation-duration: 2.9s;
  animation-direction: reverse;
}
.orb-lay[data-i="2"] .orb-rush {
  animation-duration: 1.8s;
}
.orb[data-state="thinking"] .orb-rush {
  scale: 1.07;
  animation-play-state: running;
}
.orb-morph {
  animation: orb-morph-a 1.6s ease-in-out infinite alternate;
}
.orb-lay[data-i="1"] .orb-morph {
  animation: orb-morph-b 1.1s ease-in-out infinite alternate;
}
.orb-lay[data-i="2"] .orb-morph {
  animation: orb-morph-c 0.85s ease-in-out infinite alternate;
}
/* Вторая и третья ленты по очереди проступают и тают. */
.orb-lay[data-i="1"] .orb-svg {
  animation: orb-fade 1.1s ease-in-out infinite alternate;
}
.orb-lay[data-i="2"] .orb-svg {
  animation: orb-fade 1.35s ease-in-out 0.4s infinite alternate;
}
.orb-core {
  position: absolute;
  left: 27%;
  top: 27%;
  width: 46%;
  height: 46%;
  border-radius: 9999px;
  mix-blend-mode: screen;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--orb-white), color-mix(in srgb, var(--orb-mist) 75%, transparent) 35%, transparent);
  opacity: calc(0.25 + 0.75 * var(--lv, 0) + 0.25 * var(--busy));
  transition: opacity 0.15s linear;
}
.orb[data-state="thinking"] .orb-lift {
  animation: orb-pulse 0.23s ease-in-out infinite alternate;
}
.orb[data-state="speaking"] .orb-lift {
  animation: orb-talk 0.42s ease-in-out infinite alternate;
}
.orb[data-state="error"] .orb-lift {
  filter: saturate(0.3);
  opacity: 0.7;
}
@keyframes orb-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes orb-morph-a {
  from {
    transform: scale(1.05, 0.96);
  }
  to {
    transform: scale(0.95, 1.04);
  }
}
@keyframes orb-morph-b {
  from {
    transform: scale(1.07, 0.95);
  }
  to {
    transform: scale(0.93, 1.05);
  }
}
@keyframes orb-morph-c {
  from {
    transform: scale(0.95, 1.07);
  }
  to {
    transform: scale(1.05, 0.93);
  }
}
@keyframes orb-fade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.12;
  }
}
@keyframes orb-pulse {
  to {
    transform: scale(1.025);
  }
}
@keyframes orb-talk {
  to {
    transform: scale(1.05);
  }
}


@media (prefers-reduced-motion: reduce) {
  .orb, .orb * { animation: none !important; transition: none !important; }
}
