/* intro v27 — Evangelion cascade: organic blob, wide banner, diagonal steps, slide-in L/R, word reveal */

/* Organic blob */
.intro-eva__blob {
    width: 24rem;
    height: 24rem;
    filter: blur(60px);
    opacity: 0.4;
    border-radius: 38% 62% 55% 45% / 55% 42% 58% 45%;
    animation: intro-eva-morph 12s ease-in-out infinite;
}
@keyframes intro-eva-morph {
    50% { border-radius: 55% 45% 42% 58% / 42% 58% 45% 55%; }
}

/* Single wide banner */
.intro-eva__banner-img {
    display: block;
    width: 100%;
    height: 12rem;
    object-fit: cover;
}
@media (min-width: 768px) {
    .intro-eva__banner-img { height: 16rem; }
}

/* Stepped diagonal cascade + asymmetric mixed sizes */
.intro-eva__row { margin-left: 0; }
.intro-eva__cell { max-width: 46rem; }
@media (min-width: 768px) {
    .intro-eva__row:nth-child(1) .intro-eva__cell { margin-left: 0;    max-width: 40rem; }
    .intro-eva__row:nth-child(2) .intro-eva__cell { margin-left: 3rem; max-width: 34rem; }
    .intro-eva__row:nth-child(3) .intro-eva__cell { margin-left: 6rem; max-width: 44rem; }
    .intro-eva__row:nth-child(4) .intro-eva__cell { margin-left: 9rem; max-width: 30rem; }
}

/* Slide-in from L / R on scroll — hidden only once JS arms it (no-JS content stays visible) */
.intro-eva.is-armed .intro-eva__row {
    opacity: 0;
    transition: opacity 560ms ease, transform 560ms ease;
}
.intro-eva.is-armed .intro-eva__row:nth-child(odd)  { transform: translateX(-2.5rem); }
.intro-eva.is-armed .intro-eva__row:nth-child(even) { transform: translateX(2.5rem); }
.intro-eva.is-armed .intro-eva__row.is-in { opacity: 1; transform: translateX(0); }

/* Letterpress-ish press using the element's own colour */
.intro-eva__press { text-shadow: 0 1px 0 currentColor; }

/* Word-by-word reveal */
.intro-eva__word { display: inline-block; }
.intro-eva.is-armed .intro-eva__word {
    opacity: 0;
    transform: translateY(0.6em);
    transition: opacity 420ms ease, transform 420ms ease;
}
.intro-eva.is-armed .intro-eva__reveal.is-in .intro-eva__word { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .intro-eva__blob { animation: none; }
    .intro-eva__row { opacity: 1; transform: none; }
    .intro-eva__word { opacity: 1; transform: none; }
}

/* Hover — поза @sem */
.services__tile--lift {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.services__tile--lift:hover {
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

@media (min-width: 640px) {
  .services__tile--lift:hover {
    transform: scale(1.05);
  }
}

.services__cta--lift {
  transition: filter 0.2s ease, transform 0.2s ease;
}

@media (min-width: 640px) {
  .services__cta--lift:hover {
    transform: scale(1.05);
  }
}

.services__cta--lift:hover {
  filter: brightness(0.92);
}

/* process glassmorphism — fog blobs, backdrop blur, rune decor, num sizing */
.process-glass__fog {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.process-glass__fog::before {
    content: '';
    position: absolute;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    filter: blur(5rem);
    opacity: 0.1;
    top: -10rem;
    left: -5rem;
    background: var(--bs-primary);
}

.process-glass__fog::after {
    content: '';
    position: absolute;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    filter: blur(5rem);
    opacity: 0.07;
    bottom: -8rem;
    right: -5rem;
    background: var(--bs-primary);
}

.process-glass__card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.process-glass__card-hov:hover,
.process-glass__card-hov:focus-within {
    transform: translateY(-0.35rem);
    box-shadow: var(--bs-box-shadow-lg);
}

.process-glass__detail {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 280ms ease, opacity 220ms ease, margin-top 220ms ease;
}

.process-glass__card-hov:hover .process-glass__detail,
.process-glass__card-hov:focus-within .process-glass__detail {
    max-height: 12rem;
    opacity: 1;
    margin-top: 0.25rem;
}

.process-glass__rune {
    position: absolute;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.04;
    bottom: -0.5rem;
    right: 1rem;
    pointer-events: none;
    user-select: none;
}

.process-glass__num {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .process-glass__card,
    .process-glass__detail {
        transition: none;
    }

    .process-glass__card-hov:hover,
    .process-glass__card-hov:focus-within {
        transform: none;
    }

    .process-glass__detail {
        max-height: none;
        opacity: 1;
        overflow: visible;
    }
}

/* faq magazine-spread — layout + motion (no colors) */
.faq-magazine-spread__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.faq-magazine-spread__logo-float {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(28rem, 72vw);
  height: min(28rem, 72vw);
  transform: translate(-50%, -50%);
  color: var(--bs-primary);
  animation: faq-magazine-spread-logo-drift 20s ease-in-out infinite;
}

.faq-magazine-spread__logo-float svg,
.faq-magazine-spread__logo-float svg * {
  fill: currentColor;
  color: inherit;
}

.faq-magazine-spread__logo-float > * {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: faq-magazine-spread-logo-pulse 9s ease-in-out infinite;
}

@keyframes faq-magazine-spread-logo-drift {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-4deg) scale(1);
  }

  33% {
    transform: translate(-48%, -54%) rotate(3deg) scale(1.04);
  }

  66% {
    transform: translate(-52%, -48%) rotate(-2deg) scale(1.02);
  }
}

@keyframes faq-magazine-spread-logo-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

.faq-magazine-spread__magazine {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.faq-magazine-spread__spread {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  opacity: 0;
  transform: translate3d(0, 2rem, 0);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-magazine-spread__spread--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.faq-magazine-spread__spread:nth-child(1) {
  transition-delay: 0.05s;
}

.faq-magazine-spread__spread:nth-child(2) {
  transition-delay: 0.12s;
}

.faq-magazine-spread__spread:nth-child(3) {
  transition-delay: 0.19s;
}

.faq-magazine-spread__spread:nth-child(4) {
  transition-delay: 0.26s;
}

.faq-magazine-spread__spread:nth-child(5) {
  transition-delay: 0.33s;
}

.faq-magazine-spread__spread:nth-child(6) {
  transition-delay: 0.4s;
}

.faq-magazine-spread__ornament {
  width: 1.25rem;
  height: 1.25rem;
}

.faq-magazine-spread__text-justify {
  text-align: justify;
}

@media (max-width: 1024px) {
  .faq-magazine-spread__spread {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .faq-magazine-spread__ornament {
    display: none;
  }

  .faq-magazine-spread__logo-float {
    width: min(20rem, 85vw);
    height: min(20rem, 85vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-magazine-spread__logo-float,
  .faq-magazine-spread__logo-float > * {
    animation: none;
  }

  .faq-magazine-spread__spread {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .faq-magazine-spread__spread:nth-child(n) {
    transition-delay: 0s;
  }
}

