/* Стартовая заставка живёт отдельно от страниц и использует их общие цвет и шрифт подписи. */
.site-intro {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  overflow: hidden;
  background: var(--color-surface-page);
}

.has-site-intro .site-intro {
  display: block;
  animation: site-intro-safety-hide 0s 7s forwards;
}

.site-intro__drawing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.site-intro__path {
  fill: none;
  stroke: var(--color-editorial-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.site-intro__path--soft {
  stroke: color-mix(in srgb, var(--color-editorial-blue) 38%, transparent);
  stroke-width: 1.2;
}

.site-intro__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-brand-lime);
  box-shadow: 0 0 35px color-mix(in srgb, var(--color-brand-lime) 75%, transparent);
  translate: -50% -50%;
}

.site-intro__signature {
  position: absolute;
  top: 55%;
  right: clamp(24px, 6vw, 120px);
  width: clamp(220px, 29vw, 430px);
  overflow: visible;
  fill: none;
  font-family: var(--font-family-page-handwritten);
  font-size: 58px;
  font-weight: 400;
}

.site-intro__signature-stroke {
  stroke: var(--color-brand-navy);
  stroke-width: 1.1;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.site-intro__signature-fill {
  fill: var(--color-brand-navy);
  opacity: 0;
}

.site-intro__caption {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 36px);
  color: var(--color-text-tertiary);
  font-family: var(--font-family-page-sans);
  font-size: 10px;
  letter-spacing: .24em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  translate: -50% 0;
}

@media (max-width: 640px) {
  /* На узком экране сохраняем пропорции рисунка, обрезая только его боковые края. */
  .site-intro__drawing {
    inset: auto;
    top: 44%;
    left: 50%;
    width: calc(100vw + 170px);
    height: auto;
    aspect-ratio: 16 / 9;
    translate: -50% -50%;
  }

  .site-intro__signature {
    top: 63%;
    right: 50%;
    width: min(280px, calc(100vw - 36px));
    translate: 50% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-site-intro .site-intro { display: none; }
}

@keyframes site-intro-safety-hide {
  to { visibility: hidden; pointer-events: none; }
}
