/* 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; }
}

.services__panel--lift {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

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

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

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

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

/* v25 - chat bubble speech tail (border-triangle trick has no TW/BS utility) */
[data-chat-bubble] {
    position: relative;
}

[data-bubble-side="left"] [data-chat-bubble]::before {
    content: "";
    position: absolute;
    top: 1.25rem;
    left: -0.5rem;
    width: 0;
    height: 0;
    border-top: 0.5rem solid transparent;
    border-bottom: 0.5rem solid transparent;
    border-right: 0.5rem solid currentColor;
    color: inherit;
    opacity: 0.15;
}

[data-bubble-side="right"] [data-chat-bubble]::before {
    content: "";
    position: absolute;
    top: 1.25rem;
    right: -0.5rem;
    width: 0;
    height: 0;
    border-top: 0.5rem solid transparent;
    border-bottom: 0.5rem solid transparent;
    border-left: 0.5rem solid currentColor;
    color: inherit;
    opacity: 0.15;
}

/* advantages ticker — seamless horizontal marquee (layout/motion only, no colors) */

.advantages-ticker__chip {
    width: 20rem;
}

/* track holds two identical copies; -50% scroll makes the loop seamless */
.advantages-ticker__track {
    width: max-content;
    animation: advantages-ticker-scroll 40s linear infinite;
}

.advantages-ticker__track.is-paused {
    animation-play-state: paused;
}

@keyframes advantages-ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .advantages-ticker__track {
        animation: none;
    }
}

/* quote v12 — bookshelf shelf, velvet (SVG in template), smoke rise, extrude title, blur icon, clip reveal, gradient border spin */

.quote-shelf__velvet {
    animation: quoteShelfVelvetShimmer 8s ease-in-out infinite alternate;
}
@keyframes quoteShelfVelvetShimmer {
    0% { opacity: 0.35; }
    100% { opacity: 0.55; }
}

.quote-shelf__extrude {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1.2;
}

.quote-shelf__extrude--back {
    transform: translate(3px, 3px);
}
.quote-shelf__extrude--mid {
    transform: translate(6px, 6px);
}

.quote-shelf__smoke {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    bottom: 10%;
    animation: quoteShelfSmokeRise 5s ease-out infinite;
}
.quote-shelf__smoke--a { left: 12%; animation-delay: 0s; }
.quote-shelf__smoke--b { left: 28%; animation-delay: 1.1s; width: 0.375rem; height: 0.375rem; }
.quote-shelf__smoke--c { left: 52%; animation-delay: 2.4s; }
.quote-shelf__smoke--d { left: 71%; animation-delay: 0.7s; width: 0.625rem; height: 0.625rem; }
.quote-shelf__smoke--e { left: 88%; animation-delay: 3.2s; }
@keyframes quoteShelfSmokeRise {
    0% { transform: translateY(0) scale(0.6); opacity: 0; }
    12% { opacity: 0.75; }
    100% { transform: translateY(-9rem) scale(1.5); opacity: 0; }
}

.quote-shelf__pair {
    margin-left: -1rem;
    margin-right: -1rem;
}
@media (min-width: 768px) {
    .quote-shelf__pair {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
    }
}

.quote-shelf__stage {
    perspective: 900px;
}

.quote-shelf__book-inner {
    height: 100%;
}
.quote-shelf__book-inner > article,
.quote-shelf__book-inner > div {
    height: 100%;
}

.quote-shelf__book:nth-child(odd) .quote-shelf__book-inner {
    transform: rotateY(-2deg);
}
.quote-shelf__book:nth-child(even) .quote-shelf__book-inner {
    transform: rotateY(2deg);
}
.quote-shelf__book-inner {
    transition: transform 250ms ease;
}
.quote-shelf__book-inner:hover,
.quote-shelf__book-inner:focus-within {
    transform: rotateY(0deg) translateY(-0.35rem);
}

.quote-shelf__border-wrap {
    position: relative;
    padding: 2px;
}
.quote-shelf__border-spin {
    position: absolute;
    inset: -1px;
    animation: quoteShelfBorderPulse 3.5s ease-in-out infinite;
}
@keyframes quoteShelfBorderPulse {
    0%, 100% { transform: scale(1); opacity: 0.45; }
    50% { transform: scale(1.015); opacity: 1; }
}

.quote-shelf__icon-stage {
    width: 5.5rem;
    height: 5.5rem;
    overflow: hidden;
}
.quote-shelf__icon-blur {
    position: absolute;
    top: 50%;
    left: 50%;
    filter: blur(10px);
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1.35);
    line-height: 1;
}
.quote-shelf__icon-sharp {
    line-height: 1;
}

.quote-shelf__reveal {
    clip-path: inset(0 0 100% 0);
    max-height: 0;
    overflow: hidden;
    transition: clip-path 280ms ease, max-height 280ms ease;
}
.quote-shelf__book-inner:hover .quote-shelf__reveal,
.quote-shelf__book-inner:focus-within .quote-shelf__reveal {
    clip-path: inset(0 0 0 0);
    max-height: 5rem;
}

.quote-shelf__rail {
    height: 0.5rem;
}
/* hover + focus affordances (layout/outline via theme token) */
@media (hover: hover) {
    .quote-shelf-root [role="listitem"]:hover,
    .quote-shelf-root article:hover,
    .quote-shelf-root [class*="quote-shelf__card"]:hover,
    .quote-shelf-root .quote-shelf__book:hover,
    .quote-shelf-root .quote-shelf__step:hover,
    .quote-shelf-root .quote-shelf__index-card:hover,
    .quote-shelf-root .quote-shelf__pill:hover,
    .quote-shelf-root .quote-shelf__item:hover {
        transform: translateY(-0.125rem);
    }
}

.quote-shelf-root [role="listitem"],
.quote-shelf-root article,
.quote-shelf-root [class*="quote-shelf__card"],
.quote-shelf-root .quote-shelf__book,
.quote-shelf-root .quote-shelf__step,
.quote-shelf-root .quote-shelf__index-card,
.quote-shelf-root .quote-shelf__pill {
    transition: transform 200ms ease;
}

.quote-shelf-root a:focus-visible,
.quote-shelf-root button:focus-visible,
.quote-shelf-root [tabindex="0"]:focus-visible,
.quote-shelf-root input:focus-visible,
.quote-shelf-root summary:focus-visible,
.quote-shelf-root [role="slider"]:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

@media (hover: hover) {
    .quote-shelf-root button:hover,
    .quote-shelf-root a:hover,
    .quote-shelf-root summary:hover {
        opacity: 0.92;
    }
}


.lift-signup__section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.lift-signup__inner {
    max-width: 56rem;
}

@keyframes lift-signup-spark-beat-cycle {
    0%, 100% { opacity: 1; }
    50%       { opacity: .5; }
}
.lift-signup__spark--beat {
    animation: lift-signup-spark-beat-cycle 2s cubic-bezier(.4,0,.6,1) infinite;
}

.lift-signup__action--lift:hover { transform: scale(1.05); transition: transform .2s ease; }

.lift-signup__button--lift:hover { transform: scale(1.05); transition: transform .2s ease; }

.lift-signup__story--lift:hover { transform: scale(1.05); transition: transform .2s ease; }

/* Bootstrap only (.w-100 on grid) — не перебивать TW display:grid */
.lift-signup__feature-grid-bs.w-100 {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.lift-signup__feature-grid-bs.w-100 > .lift-signup__story--lift {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (min-width: 576px) {
    .lift-signup__feature-grid-bs.w-100:not(.lift-signup__feature-grid-bs--cols-1) > .lift-signup__story--lift {
        flex: 1 1 calc((100% - 1.5rem) / 2);
        max-width: calc((100% - 1.5rem) / 2);
        min-width: min(100%, 11rem);
    }
}

@media (min-width: 992px) {
    .lift-signup__feature-grid-bs.w-100.lift-signup__feature-grid-bs--cols-3 > .lift-signup__story--lift {
        flex: 1 1 calc((100% - 3rem) / 3);
        max-width: calc((100% - 3rem) / 3);
    }
}

