/* ——— заставка-ролик «день вашего бизнеса» (assets/intro.js) ———
   Включает её скрипт в <head>: класс has-intro на <html>. Без него блока нет вовсе. */
.intro { display: none; }
html.has-intro { overflow: hidden; overscroll-behavior: none; }
html.has-intro .intro {
  display: block; position: fixed; inset: 0; z-index: 100;
  touch-action: none; overscroll-behavior: none;
  background: var(--paper);
  transition: background-color .35s ease;
}
.intro.is-night { background: var(--night); }
.intro__v {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  background: transparent; pointer-events: none;
}
.intro.is-contain .intro__v { object-fit: contain; }

/* «Пропустить»: правый верхний угол свободен в обоих форматах ролика */
.intro__skip {
  position: absolute; z-index: 2;
  top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right));
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; overflow: hidden;
  font: 500 14px/1 Geologica, system-ui, sans-serif; letter-spacing: .01em;
  color: var(--ink); background: rgba(243, 240, 232, .78);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: color .35s ease, background-color .35s ease, border-color .35s ease;
}
.intro__skip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.intro__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.intro__prog i { position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; }
.intro.is-night .intro__skip { color: var(--night-text); background: rgba(15, 15, 13, .6); border-color: var(--night-line); }
.intro.is-night .intro__prog i { background: var(--blue-night); }
@media (hover: hover) and (pointer: fine) {
  .intro__skip:hover { border-color: var(--stone); }
}

/* знак, который из последнего кадра перелетает в шапку */
.intro__mark { position: fixed; left: 0; top: 0; z-index: 101; transform-origin: 0 0; pointer-events: none; will-change: transform; }

/* пока идёт заставка: знак в шапке ждёт перелёта, строка первого экрана ждёт своей анимации */
html.has-intro .bar__mark img { opacity: 0; }
html.has-intro .hero .hero__dotxt { clip-path: inset(0 100% 0 0); }
html.has-intro .hero .pdot { animation: none; opacity: 0; }
