/* Эффекты используют цвета и шрифты выбранного дизайна. */
html.motion-enabled .reveal-pending{opacity:0;transform:translateY(18px)}
html.motion-enabled .reveal-ready{transition:opacity .55s ease,transform .55s ease;opacity:1;transform:none}
/* Пробная объёмная карусель: лёгкая адаптация Curved Lens к нашим карточкам. */
html.motion-enabled .catalog-track.catalog-lens{
 --lens-width:clamp(245px,24vw,292px);
 position:relative;align-items:flex-start;gap:24px;
 padding:18px 4px 38px;
 scroll-padding-inline:4px;
 scroll-snap-type:x mandatory;cursor:grab;
}
html.motion-enabled .catalog-lens .catalog-card{
 flex:0 0 var(--lens-width);scroll-snap-align:center;
 transform:perspective(1100px) translateY(var(--lens-rise,0px)) rotateY(var(--lens-turn,0deg)) scale(var(--lens-scale,1));
 transform-origin:50% 180px;backface-visibility:hidden;
 box-shadow:0 12px 24px -20px #39312670;
}
html.motion-enabled .catalog-lens.is-dragging{scroll-snap-type:none;cursor:grabbing;user-select:none}
html.motion-enabled .catalog-lens .catalog-card:focus-within{transform:none}
@media(max-width:760px){
 html.motion-enabled .catalog-track.catalog-lens{--lens-width:82%;gap:14px;padding-inline:9%;scroll-padding-inline:9%;padding-block:12px 32px}
}
@media(prefers-reduced-motion:reduce){
 html.motion-enabled .catalog-lens .catalog-card{transform:none;transition:none}
}

/* Спокойная бегущая строка вместо переворота отдельных букв. */
html.motion-enabled .hero-title-band{position:relative;margin-bottom:35px}
html.motion-enabled .display.hero-marquee{overflow:hidden;margin:0;padding-block:8px 16px}
html.motion-enabled .display .hero-marquee-track{display:flex;width:max-content;min-width:200%;animation:hero-marquee 48s linear infinite}
html.motion-enabled .hero-marquee-group{display:flex;flex:none;align-items:center;justify-content:space-around;min-width:50%;gap:1em;padding-right:1em}
html.motion-enabled .hero-marquee-group>span{display:block;white-space:nowrap}
html.motion-enabled .hero-marquee-toggle{display:grid;place-items:center;position:absolute;right:0;bottom:-28px;width:44px;height:44px;border:1px solid #f9f0e15c;border-radius:50%;background:var(--ink);color:var(--light);font-size:16px;z-index:1}
html.motion-enabled .hero-title-band:is(.is-paused,.is-held,.is-offscreen,.is-hidden) .hero-marquee-track{animation-play-state:paused}
@media(hover:hover){html.motion-enabled .hero-title-band:hover .hero-marquee-track{animation-play-state:paused}}
@keyframes hero-marquee{to{transform:translateX(-50%)}}
@media(max-width:760px){
 html.motion-enabled .hero-title-band{margin-bottom:30px}
 html.motion-enabled .display .hero-marquee-track{display:flex;animation-duration:35s}
}
@media(prefers-reduced-motion:reduce){
 html.motion-enabled .display .hero-marquee-track{animation:none;transform:none;min-width:0;width:auto;display:block}
 html.motion-enabled .hero-marquee-group{display:block;min-width:0;padding:0}
 html.motion-enabled .hero-marquee-group:nth-child(2),html.motion-enabled .hero-marquee-group>span:nth-child(2),html.motion-enabled .hero-marquee-toggle{display:none}
 html.motion-enabled .display.hero-marquee{font-size:clamp(29px,8vw,148px)}
}

/* Движение в блоках запросов, системы и истории. */
html.motion-enabled .pain-button.motion-arrived{
 animation:nervana-card-arrive 440ms cubic-bezier(.2,.75,.3,1) var(--arrival-delay,0ms) backwards;
}
html.motion-enabled .pain-button{transition:background-color 180ms ease,box-shadow 180ms ease}
html.motion-enabled .pain-button .pain-plus{transition:transform 180ms ease,background-color 180ms ease}
html.motion-enabled .pain-button:focus-visible .pain-plus{transform:translateX(3px)}
@media(hover:hover){
 html.motion-enabled .pain-button:hover{background:var(--paper);box-shadow:inset 0 -2px 0 var(--accent)}
 html.motion-enabled .pain-button:hover .pain-plus{transform:translateX(3px)}
}
html.motion-enabled .pain-button:active .pain-plus{transform:scale(.92)}
html.motion-enabled .pain-dialog[open]{animation:nervana-soft-appear 200ms ease-out}
html.motion-enabled .system-venn.motion-arrived .venn-fields>circle,
html.motion-enabled .system-venn.motion-arrived .venn-outlines>circle,
html.motion-enabled .system-venn.motion-arrived .venn-link{
 animation:nervana-soft-appear 500ms ease-out var(--circle-delay,0ms) backwards;
}
html.motion-enabled .system-venn.motion-arrived .venn-overlaps{animation:nervana-soft-appear 450ms ease-out 400ms backwards}
html.motion-enabled .system-venn.motion-arrived .venn-heart,
html.motion-enabled .system-venn.motion-arrived .venn-sprout{animation:nervana-soft-appear 500ms ease-out 600ms backwards}
html.motion-enabled .founder-photo-panel:not([hidden]){animation:nervana-soft-appear 260ms ease-out}
@keyframes nervana-card-arrive{from{opacity:.25;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes nervana-soft-appear{from{opacity:0}to{opacity:1}}
@media(max-width:760px){
 html.motion-enabled .pain-button.motion-arrived{animation-duration:300ms;animation-delay:0ms}
 html.motion-enabled .founder-photo-panel:not([hidden]){animation-duration:180ms}
}
@media(prefers-reduced-motion:reduce){
 html.motion-enabled .pain-button.motion-arrived,html.motion-enabled .pain-dialog[open],
 html.motion-enabled .system-venn.motion-arrived *,html.motion-enabled .founder-photo-panel:not([hidden]){animation:none}
 html.motion-enabled .pain-button,html.motion-enabled .pain-button .pain-plus{transition:none}
 html.motion-enabled .pain-button:is(:hover,:focus-visible,:active) .pain-plus{transform:none}
}

/* Тарифы: однократное появление и спокойный отклик на наведение. */
html.motion-enabled .access-card{transition:transform 240ms ease,box-shadow 240ms ease}
html.motion-enabled .access-card.motion-arrived{animation:nervana-card-arrive 500ms cubic-bezier(.2,.75,.3,1) var(--arrival-delay,0ms) backwards}
html.motion-enabled .access-card .action i{transition:transform 240ms ease}
@media(hover:hover) and (pointer:fine){
 html.motion-enabled .access-card:hover{transform:translateY(-6px);box-shadow:0 14px 28px #39312612}
 html.motion-enabled .access-card .action:hover i{transform:translate(3px,-3px)}
}
html.motion-enabled .access-card:focus-within{box-shadow:0 0 0 2px var(--accent)}
html.motion-enabled .access-card .action:focus-visible i{transform:translate(3px,-3px)}
@media(max-width:760px){html.motion-enabled .access-card.motion-arrived{animation-duration:350ms;animation-delay:0ms}}
@media(prefers-reduced-motion:reduce){
 html.motion-enabled .access-card.motion-arrived{animation:none}
 html.motion-enabled .access-card,html.motion-enabled .access-card .action i{transition:none}
 html.motion-enabled .access-card:hover,html.motion-enabled .access-card .action:hover i,html.motion-enabled .access-card .action:focus-visible i{transform:none}
}

/* Underlined step titles are the invitation to open an example. */
html.motion-enabled .immersion-example-trigger{text-decoration-line:underline;text-decoration-thickness:1px;text-underline-offset:.2em;text-decoration-color:currentColor;text-decoration-skip-ink:auto;transition:text-decoration-color 180ms ease}
html.motion-enabled .immersion-example-trigger.step-invitation{animation:immersion-link-hint 900ms ease-in-out 2}
html.motion-enabled .immersion-example-step:hover .immersion-example-trigger,html.motion-enabled .immersion-example-trigger:focus-visible{text-decoration-thickness:2px;animation:none}
@keyframes immersion-link-hint{0%,100%{text-decoration-color:currentColor}50%{text-decoration-color:transparent}}
@media(prefers-reduced-motion:reduce){html.motion-enabled .immersion-example-trigger.step-invitation{animation:none}html.motion-enabled .immersion-example-trigger{transition:none}}


html.motion-enabled .hero-title-band{min-width:0;max-width:100%}
html.motion-enabled .display.hero-marquee{max-width:100%;line-height:1.12}
html.motion-enabled .hero-marquee-toggle{background:var(--dark);color:var(--light);border-color:currentColor}
html.motion-enabled .catalog-lens .catalog-card{box-shadow:0 12px 24px -20px #0005}
html.motion-enabled .action i{transition:transform 220ms ease}
@media(hover:hover) and (pointer:fine){html.motion-enabled .action:hover i{transform:translate(3px,-3px)}}
html.motion-enabled .action:focus-visible i{transform:translate(3px,-3px)}
/* Без анимации: только декоративное движение отключено, элементы работают. */
html.motion-static,html.motion-static *,html.motion-static *::before,html.motion-static *::after,html.motion-static ::backdrop{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.motion-static .reveal-pending{opacity:1;transform:none}
html.motion-static .pain-plus,html.motion-static .access-card:hover,html.motion-static .action i{transform:none!important}
@media(prefers-reduced-motion:reduce){
 html.motion-enabled,html.motion-enabled *,html.motion-enabled *::before,html.motion-enabled *::after,html.motion-enabled ::backdrop{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 html.motion-enabled .reveal-pending{opacity:1;transform:none}
 html.motion-enabled .hero-marquee-group>span{white-space:normal}
 html.motion-enabled .pain-plus,html.motion-enabled .access-card:hover,html.motion-enabled .action i{transform:none!important}
}
