/*
 * RuStud coursework experience v3.
 * Loaded after catalog-v2.css so the approved course-specific visual layer
 * can evolve without destabilising the shared dynamic catalog template.
 */

.rv3-coursework-shell {
    overflow: clip;
}

.rv3-sticky-order {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 220;
    border-bottom: 1px solid #dce3ef;
    color: var(--rv2-ink);
    background: rgba(247, 249, 254, .985);
    box-shadow: 0 14px 40px rgba(28, 51, 95, .12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-115%);
    transition: opacity .18s ease, transform .22s ease;
    backdrop-filter: blur(18px);
}

.rv3-sticky-order.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.rv3-sticky-order__inner {
    position: relative;
    min-height: 86px;
    display: grid;
    grid-template-columns: 118px minmax(220px, 1fr) minmax(190px, .76fr) minmax(170px, .68fr) auto;
    align-items: center;
    gap: 12px;
}

.rv3-sticky-order__logo {
    display: inline-flex;
    align-items: center;
}

.rv3-sticky-order__logo img {
    width: 112px;
    height: auto;
    display: block;
}

.rv3-sticky-field {
    position: relative;
    min-width: 0;
}

.rv3-sticky-field > span {
    position: absolute;
    top: 8px;
    left: 16px;
    z-index: 1;
    color: #8b97ab;
    font-size: 9px;
    font-weight: 800;
    pointer-events: none;
}

.rv3-sticky-field input {
    width: 100%;
    height: 58px;
    padding: 20px 16px 4px;
    border: 1px solid #cfd9eb;
    border-radius: 13px;
    outline: none;
    color: var(--rv2-ink);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.rv3-sticky-field input:focus {
    border-color: var(--rv2-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--rv2-accent) 13%, transparent);
}

.rv3-sticky-consent {
    min-width: 0;
    display: grid;
    grid-template-columns: 17px 1fr;
    align-items: start;
    gap: 8px;
    color: #70809a;
    font-size: 9px;
    line-height: 1.45;
}

.rv3-sticky-consent input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--rv2-accent);
}

.rv3-sticky-consent a {
    color: inherit;
    text-underline-offset: 2px;
}

.rv3-sticky-order__inner > .rv2-button {
    min-height: 58px;
    white-space: nowrap;
}

.rv3-sticky-order__inner > .rv2-button.is-loading {
    cursor: wait;
    opacity: .82;
}

.rv3-sticky-order__error {
    position: absolute;
    right: 0;
    bottom: 2px;
    margin: 0;
    color: #b42318;
    font-size: 9px;
    font-weight: 700;
}

.rv3-mobile-sticky-button {
    display: none;
}

.rv3-coursework-title {
    max-width: 680px !important;
    font-size: clamp(42px, 3.7vw, 56px) !important;
    line-height: .98 !important;
}

.rv3-coursework-title > span {
    display: block;
}

.rv3-coursework-subtitle {
    max-width: 660px;
    margin: -8px 0 18px;
    color: #25324a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 760;
    line-height: 1.06;
    letter-spacing: -.035em;
}

.rv3-coursework-hero .rv2-order-ghost {
    left: -36px;
    width: 226px;
}

.rv3-course-focus {
    background: #fff;
}

.rv3-focus-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr .85fr;
    gap: 18px;
}

.rv3-focus-card {
    position: relative;
    min-height: 360px;
    padding: 26px;
    overflow: hidden;
    border: 1px solid #dce4f0;
    border-radius: 18px;
    background: #f7f9fd;
}

.rv3-focus-card--large {
    background: linear-gradient(145deg, #f6f8ff, #edf3ff);
}

.rv3-focus-card__number {
    color: #99a6bb;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
}

.rv3-focus-card h3 {
    margin: 26px 0 10px;
    color: var(--rv2-ink);
    font-size: 23px;
    line-height: 1.13;
    letter-spacing: -.025em;
}

.rv3-focus-card p {
    margin: 0;
    color: var(--rv2-muted);
    font-size: 13px;
    line-height: 1.65;
}

.rv3-focus-art {
    position: relative;
    height: 155px;
    margin-top: 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 16px 30px rgba(37, 65, 112, .08);
}

.rv3-focus-art i {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3d4c65;
    background: var(--rv2-accent-soft);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.rv3-focus-art--outline {
    padding: 22px 32px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
}

.rv3-focus-art--outline::before {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 18px;
    width: 3px;
    border-radius: 3px;
    background: var(--rv2-accent);
}

.rv3-focus-art--outline i {
    width: 72%;
    height: 22px;
    padding-inline: 10px;
    border-radius: 5px;
    justify-content: flex-start;
}

.rv3-focus-art--outline i:nth-child(2) { width: 92%; }
.rv3-focus-art--outline i:nth-child(3) { width: 84%; }
.rv3-focus-art--outline i:nth-child(4) { width: 66%; }

.rv3-focus-art--sources {
    gap: 9px;
}

.rv3-focus-art--sources i {
    width: 64px;
    height: 82px;
    border-radius: 7px 7px 3px 3px;
    box-shadow: 4px 5px 0 color-mix(in srgb, var(--rv2-accent) 18%, transparent);
}

.rv3-focus-art--sources i:nth-child(2) {
    color: #087884;
    background: #e3f7f8;
    transform: translateY(-12px);
}

.rv3-focus-art--comments {
    padding: 25px;
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
}

.rv3-focus-art--comments i {
    min-height: 37px;
    padding: 0 13px;
    border-radius: 10px 10px 10px 2px;
}

.rv3-focus-art--comments i:last-child {
    align-self: flex-end;
    color: #087884;
    border-radius: 10px 10px 2px 10px;
    background: #e3f7f8;
}

.rv3-process-section {
    overflow: hidden;
    background:
        linear-gradient(rgba(103, 134, 186, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 134, 186, .08) 1px, transparent 1px),
        #f4f7fd;
    background-size: 55px 55px;
}

.rv3-process-layout {
    display: grid;
    grid-template-columns: .76fr 1.24fr;
    align-items: center;
    gap: 82px;
}

.rv3-process-copy h2 {
    max-width: 520px;
    margin: 14px 0 0;
    color: var(--rv2-ink);
    font-size: clamp(38px, 4vw, 54px);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.rv3-process-list {
    margin: 36px 0;
    padding: 0;
    display: grid;
    gap: 0;
    list-style: none;
}

.rv3-process-list li {
    position: relative;
    padding: 0 0 24px;
    display: flex;
    gap: 15px;
}

.rv3-process-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 29px;
    bottom: 0;
    left: 14px;
    width: 1px;
    background: #cfd9e8;
}

.rv3-process-list li > span {
    position: relative;
    z-index: 1;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--rv2-accent);
    font-size: 11px;
    font-weight: 900;
}

.rv3-process-list strong {
    color: var(--rv2-ink);
    font-size: 17px;
}

.rv3-process-list p {
    margin: 5px 0 0;
    color: var(--rv2-muted);
    font-size: 12px;
}

.rv3-article-aside {
    position: sticky;
    top: 24px;
}

body.rv3-sticky-active .rv3-article-aside {
    top: 110px;
}

.rv3-article-toc {
    max-height: 330px;
    margin: 18px 0 22px;
    padding-top: 12px;
    border-top: 1px solid #dce3ee;
    display: grid;
    gap: 2px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.rv3-article-toc a,
.rv3-article-toc > span {
    padding: 8px 0;
    color: #52617a;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
}

.rv3-article-toc a {
    border-bottom: 1px solid rgba(220, 227, 238, .72);
    transition: color .16s ease, transform .16s ease;
}

.rv3-article-toc a:hover,
.rv3-article-toc a.is-active {
    color: var(--rv2-accent-dark);
    transform: translateX(3px);
}

.rv3-article-toc a[data-level="3"] {
    padding-left: 12px;
    font-size: 11px;
}

.rv3-article-reading {
    margin: 0 0 18px;
    padding: 13px 14px;
    border-radius: 9px;
    display: grid;
    gap: 4px;
    color: #4a5870;
    background: #fff;
}

.rv3-article-reading span {
    color: #8a95a7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rv3-article-reading strong {
    font-size: 12px;
}

.rv2-article h2,
.rv2-article h3 {
    scroll-margin-top: 116px;
}

@media (max-width: 1100px) {
    .rv3-sticky-order__inner {
        grid-template-columns: 98px minmax(190px, 1fr) minmax(170px, .72fr) minmax(145px, .58fr) auto;
        gap: 9px;
    }

    .rv3-sticky-order__logo img {
        width: 94px;
    }

    .rv3-sticky-order__inner > .rv2-button {
        padding-inline: 14px;
        font-size: 12px;
    }

    .rv3-process-layout {
        gap: 44px;
        grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
    }
}

@media (max-width: 900px) {
    .rv3-focus-grid {
        grid-template-columns: 1fr;
    }

    .rv3-process-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .rv3-process-copy {
        max-width: 620px;
    }
}

@media (max-width: 820px) {
    .rv3-sticky-order {
        top: auto;
        bottom: 0;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid #d8e1ee;
        border-bottom: 0;
        transform: translateY(120%);
    }

    .rv3-sticky-order__inner {
        display: none;
    }

    .rv3-mobile-sticky-button {
        width: 100%;
        min-height: 52px;
        border: 0;
        border-radius: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        color: #fff;
        background: linear-gradient(135deg, var(--rv2-accent), var(--rv2-accent-dark));
        box-shadow: 0 10px 28px rgba(68, 97, 213, .32);
        font-size: 13px;
        font-weight: 900;
    }

    body.rv3-sticky-active {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    body.rv3-sticky-active .rv3-article-aside {
        top: 24px;
    }
}

@media (max-width: 620px) {
    .rv3-coursework-title {
        font-size: 40px !important;
    }

    .rv3-coursework-subtitle {
        margin-top: -4px;
        font-size: 23px;
        line-height: 1.12;
    }

    .rv3-focus-card {
        min-height: 330px;
        padding: 22px;
    }

    .rv3-process-copy h2 {
        font-size: 37px;
    }
}

.rv3-process-visual {
  position: relative;
  min-height: 640px;
}

.rv3-motion-browser {
  position: relative;
  z-index: 2;
  width: min(590px, 100%);
  min-height: 590px;
  margin: 14px auto 0;
  overflow: hidden;
  border: 1px solid #d7e0ef;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 38px 95px rgba(32, 57, 103, 0.2);
}

.rv3-motion-toolbar {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid #e6ebf3;
  color: #66758d;
  background: #fff;
  font-size: 9px;
}

.rv3-motion-toolbar b {
  color: var(--rv2-ink);
  font-size: 11px;
  text-align: center;
}

.rv3-motion-toolbar > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rv3-motion-toolbar > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #32b77a;
  box-shadow: 0 0 0 3px rgba(50, 183, 122, 0.12);
}

.rv3-motion-dots {
  display: flex;
  gap: 5px;
}

.rv3-motion-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dce3ee;
}

.rv3-motion-viewport {
  position: relative;
  height: 468px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 6%, rgba(109, 143, 255, 0.14), transparent 27%),
    linear-gradient(135deg, #f8faff, #f2f6fc);
}

.rv3-motion-scene {
  position: absolute;
  inset: 26px 58px 24px;
  padding: 24px;
  border: 1px solid #e0e7f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(39, 67, 118, 0.12);
  will-change: opacity, transform;
}

.rv3-motion-task {
  animation: motion-scene-task 16s ease infinite;
}

.rv3-motion-offers {
  opacity: 0;
  animation: motion-scene-offers 16s ease infinite;
}

.rv3-motion-chat {
  opacity: 0;
  animation: motion-scene-chat 16s ease infinite;
}

@keyframes motion-scene-task {
  0%, 28% { opacity: 1; transform: translateY(0) scale(1); }
  31%, 96% { opacity: 0; transform: translateY(-8px) scale(0.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes motion-scene-offers {
  0%, 29% { opacity: 0; transform: translateY(10px) scale(0.985); }
  33%, 63% { opacity: 1; transform: translateY(0) scale(1); }
  67%, 100% { opacity: 0; transform: translateY(-8px) scale(0.985); }
}

@keyframes motion-scene-chat {
  0%, 64% { opacity: 0; transform: translateY(10px) scale(0.985); }
  68%, 96% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-8px) scale(0.985); }
}

.rv3-motion-card-head p,
.rv3-motion-offer-title p {
  margin: 0 0 6px;
  color: var(--rv2-accent-dark);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.rv3-motion-card-head b,
.rv3-motion-card-head span {
  display: block;
}

.rv3-motion-card-head b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
}

.rv3-motion-card-head span {
  margin-top: 5px;
  color: #7c899e;
  font-size: 9px;
}

.rv3-motion-field {
  margin-top: 20px;
}

.rv3-motion-field label,
.rv3-motion-choices small {
  display: block;
  margin-bottom: 7px;
  color: #35445d;
  font-size: 9px;
  font-weight: 800;
}

.rv3-motion-textarea {
  position: relative;
  min-height: 82px;
  padding: 13px 14px;
  overflow: hidden;
  border: 1px solid #cbd6e8;
  border-radius: 10px;
  color: #46556e;
  background: #fff;
  font-size: 10px;
  line-height: 1.55;
  animation: motion-field-focus 16s ease infinite;
}

.rv3-motion-typed {
  display: block;
  max-width: 310px;
  clip-path: inset(0 100% 0 0);
  animation: motion-type 16s steps(34, end) infinite;
}

.rv3-motion-caret {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 1px;
  height: 15px;
  background: var(--rv2-accent-dark);
  animation: motion-caret 16s steps(1, end) infinite;
}

@keyframes motion-type {
  0%, 3% { clip-path: inset(0 100% 0 0); }
  17%, 100% { clip-path: inset(0 0 0 0); }
}

@keyframes motion-caret {
  0%, 3% { left: 14px; opacity: 1; }
  6% { left: 74px; opacity: 0; }
  9% { left: 138px; opacity: 1; }
  12% { left: 224px; opacity: 0; }
  15%, 18% { left: 325px; opacity: 1; }
  19%, 100% { opacity: 0; }
}

@keyframes motion-field-focus {
  0%, 2%, 20%, 100% { border-color: #cbd6e8; box-shadow: none; }
  4%, 18% { border-color: var(--rv2-accent); box-shadow: 0 0 0 4px rgba(109, 143, 255, 0.12); }
}

.rv3-motion-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.rv3-motion-choices > div {
  position: relative;
  min-height: 51px;
  padding: 9px 34px 8px 12px;
  border: 1px solid #d5dfed;
  border-radius: 9px;
  background: #fbfcff;
}

.rv3-motion-choices small {
  margin: 0 0 4px;
  color: #8a96aa;
  font-size: 7px;
}

.rv3-motion-choices b {
  display: block;
  font-size: 10px;
}

.rv3-motion-choices span {
  position: absolute;
  top: 17px;
  right: 13px;
  color: var(--rv2-accent-dark);
  font-size: 10px;
}

.rv3-motion-submit {
  width: 100%;
  min-height: 43px;
  margin-top: 14px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--rv2-accent);
  box-shadow: 0 10px 22px rgba(80, 112, 238, 0.22);
  font-size: 10px;
  font-weight: 900;
  animation: motion-submit-press 16s ease infinite;
}

@keyframes motion-submit-press {
  0%, 22%, 26%, 100% { transform: scale(1); filter: brightness(1); }
  24% { transform: scale(0.985); filter: brightness(0.92); }
}

.rv3-motion-order-status {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #d7e9e2;
  border-radius: 12px;
  background: #f1fbf7;
}

.rv3-motion-order-status > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: #31b77b;
  font-weight: 900;
}

.rv3-motion-order-status b,
.rv3-motion-order-status small {
  display: block;
}

.rv3-motion-order-status b {
  margin-bottom: 3px;
  font-size: 10px;
}

.rv3-motion-order-status small,
.rv3-motion-order-status i {
  color: #789087;
  font-size: 7px;
  font-style: normal;
}

.rv3-motion-offer-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 18px 0 10px;
}

.rv3-motion-offer-title b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.rv3-motion-offer-title > span {
  padding: 5px 7px;
  border-radius: 12px;
  color: var(--rv2-accent-dark);
  background: var(--rv2-accent-soft);
  font-size: 7px;
  font-weight: 900;
}

.rv3-motion-offer-window {
  position: relative;
  height: 236px;
  overflow: hidden;
}

.rv3-motion-offer-track {
  display: grid;
  gap: 7px;
  padding-right: 11px;
  animation: motion-offer-scroll 16s ease infinite;
}

@keyframes motion-offer-scroll {
  0%, 43% { transform: translateY(0); }
  51%, 63%, 100% { transform: translateY(-63px); }
}

.rv3-motion-offer {
  display: grid;
  grid-template-columns: 38px 1fr auto 58px;
  align-items: center;
  min-height: 58px;
  gap: 9px;
  padding: 8px;
  border: 1px solid #e0e7f1;
  border-radius: 11px;
  background: #fff;
  opacity: 0;
  transform: translateY(9px);
}

.rv3-motion-offer.offer-1 { animation: motion-offer-in 16s ease infinite 5.25s; }
.rv3-motion-offer.offer-2 { animation: motion-offer-in 16s ease infinite 5.7s; }
.rv3-motion-offer.offer-3 { animation: motion-offer-in 16s ease infinite 6.15s; }
.rv3-motion-offer.offer-4 { animation: motion-offer-in 16s ease infinite 6.6s; }

@keyframes motion-offer-in {
  0% { opacity: 0; transform: translateY(9px); }
  3%, 48% { opacity: 1; transform: translateY(0); }
  51%, 100% { opacity: 0; transform: translateY(0); }
}

.rv3-motion-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #6d8fff, #8c72db);
  font-size: 8px;
  font-weight: 900;
}

.rv3-motion-avatar i {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #31b77b;
}

.rv3-motion-offer > div b,
.rv3-motion-offer > div small {
  display: block;
}

.rv3-motion-offer > div b {
  margin-bottom: 3px;
  font-size: 9px;
}

.rv3-motion-offer > div small {
  color: #7d8ba2;
  font-size: 7px;
}

.rv3-motion-offer strong {
  font-size: 9px;
}

.rv3-motion-offer button {
  min-height: 28px;
  border: 1px solid #b9c9ef;
  border-radius: 7px;
  color: var(--rv2-accent-dark);
  background: #fff;
  font-size: 7px;
  font-weight: 900;
}

.rv3-motion-offer.offer-2 {
  animation-name: motion-offer-in, motion-offer-select !important;
  animation-duration: 16s, 16s !important;
  animation-delay: 5.7s, 0s !important;
  animation-iteration-count: infinite, infinite !important;
}

@keyframes motion-offer-select {
  0%, 54%, 61%, 100% { border-color: #e0e7f1; background: #fff; box-shadow: none; }
  56%, 59% { border-color: var(--rv2-accent); background: #f8faff; box-shadow: 0 0 0 3px rgba(109, 143, 255, 0.12); }
}

.rv3-motion-scroll {
  position: absolute;
  top: 4px;
  right: 1px;
  bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: #e8edf4;
}

.rv3-motion-scroll i {
  display: block;
  width: 3px;
  height: 66px;
  border-radius: 3px;
  background: var(--rv2-accent);
  animation: motion-scroll-thumb 16s ease infinite;
}

@keyframes motion-scroll-thumb {
  0%, 43% { transform: translateY(0); }
  51%, 100% { transform: translateY(135px); }
}

.rv3-motion-chat {
  padding: 0;
  overflow: hidden;
}

.rv3-motion-chat-head {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid #e6ebf3;
}

.rv3-motion-chat-head b,
.rv3-motion-chat-head small {
  display: block;
}

.rv3-motion-chat-head b {
  margin-bottom: 3px;
  font-size: 10px;
}

.rv3-motion-chat-head small,
.rv3-motion-chat-head em {
  color: #7f8da2;
  font-size: 7px;
  font-style: normal;
}

.rv3-motion-messages {
  display: flex;
  min-height: 236px;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
  background: #f6f8fc;
}

.rv3-motion-messages p {
  max-width: 80%;
  margin: 0;
  padding: 10px 11px;
  border-radius: 11px 11px 11px 2px;
  color: #46556d;
  background: #fff;
  box-shadow: 0 8px 20px rgba(43, 66, 108, 0.08);
  font-size: 8px;
  line-height: 1.45;
  opacity: 0;
}

.rv3-motion-messages p:first-child {
  animation: motion-message-one 16s ease infinite;
}

.rv3-motion-messages p.rv3-motion-own {
  align-self: flex-end;
  border-radius: 11px 11px 2px 11px;
  color: #294db6;
  background: var(--rv2-accent-soft);
  animation: motion-message-two 16s ease infinite;
}

@keyframes motion-message-one {
  0%, 69% { opacity: 0; transform: translateY(8px); }
  72%, 96% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; }
}

@keyframes motion-message-two {
  0%, 76% { opacity: 0; transform: translateY(8px); }
  79%, 96% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; }
}

.rv3-motion-typing {
  display: flex;
  width: 42px;
  gap: 4px;
  padding: 9px 11px;
  border-radius: 11px 11px 11px 2px;
  background: #fff;
  opacity: 0;
  animation: motion-typing 16s ease infinite;
}

.rv3-motion-typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #92a0b5;
  animation: motion-typing-dot 700ms ease-in-out infinite alternate;
}

.rv3-motion-typing i:nth-child(2) { animation-delay: 140ms; }
.rv3-motion-typing i:nth-child(3) { animation-delay: 280ms; }

@keyframes motion-typing {
  0%, 80%, 88%, 100% { opacity: 0; }
  82%, 86% { opacity: 1; }
}

@keyframes motion-typing-dot {
  to { transform: translateY(-3px); }
}

.rv3-motion-file-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: 42px 1fr 28px;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid #d7e3ef;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(42, 66, 107, 0.12);
  opacity: 0;
  animation: motion-file-in 16s ease infinite;
}

.rv3-motion-file-card > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  color: #fff;
  background: var(--rv2-accent);
  font-size: 7px;
  font-weight: 900;
}

.rv3-motion-file-card b,
.rv3-motion-file-card small {
  display: block;
}

.rv3-motion-file-card b {
  margin-bottom: 5px;
  font-size: 9px;
}

.rv3-motion-file-card small {
  color: #7d8ba1;
  font-size: 7px;
}

.rv3-motion-file-card > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: #31b77b;
  font-style: normal;
  font-weight: 900;
}

@keyframes motion-file-in {
  0%, 87% { opacity: 0; transform: translateY(12px); }
  90%, 96% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; }
}

.rv3-motion-cursor {
  position: absolute;
  z-index: 12;
  top: 0;
  left: 0;
  width: 25px;
  filter: drop-shadow(0 3px 3px rgba(13, 23, 42, 0.26));
  animation: motion-cursor-path 16s cubic-bezier(0.7, 0, 0.25, 1) infinite;
}

.rv3-motion-cursor svg {
  width: 25px;
  height: auto;
  overflow: visible;
}

.rv3-motion-cursor path {
  fill: #fff;
  stroke: #111a2c;
  stroke-linejoin: round;
  stroke-width: 2;
}

@keyframes motion-cursor-path {
  0%, 2% { top: 43%; left: 31%; }
  16% { top: 43%; left: 70%; }
  20% { top: 68%; left: 71%; }
  24%, 27% { top: 83%; left: 69%; }
  31% { top: 45%; left: 88%; }
  39% { top: 66%; left: 86%; }
  49% { top: 78%; left: 86%; }
  56%, 60% { top: 52%; left: 80%; }
  65% { top: 29%; left: 86%; }
  72% { top: 54%; left: 56%; }
  80% { top: 68%; left: 61%; }
  90%, 94% { top: 86%; left: 77%; }
  100% { top: 43%; left: 31%; }
}

.rv3-motion-click-ring {
  position: absolute;
  z-index: 11;
  width: 34px;
  height: 34px;
  border: 2px solid var(--rv2-accent);
  border-radius: 50%;
  opacity: 0;
  animation: motion-click-ring 16s ease infinite;
}

@keyframes motion-click-ring {
  0%, 23% { top: 82%; left: 68%; opacity: 0; transform: scale(0.3); }
  24% { opacity: 0.7; transform: scale(0.3); }
  26% { opacity: 0; transform: scale(1.35); }
  27%, 55% { top: 51%; left: 79%; opacity: 0; transform: scale(0.3); }
  56% { opacity: 0.7; transform: scale(0.3); }
  59% { opacity: 0; transform: scale(1.35); }
  60%, 89% { top: 85%; left: 76%; opacity: 0; transform: scale(0.3); }
  90% { opacity: 0.7; transform: scale(0.3); }
  93%, 100% { opacity: 0; transform: scale(1.35); }
}

.rv3-motion-toast {
  position: absolute;
  z-index: 10;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  color: #3e4e67;
  background: #fff;
  box-shadow: 0 13px 28px rgba(36, 60, 102, 0.14);
  font-size: 8px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-8px);
}

.rv3-motion-toast b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  color: #fff;
  background: #31b77b;
}

.rv3-motion-toast.toast-task { animation: motion-toast-task 16s ease infinite; }
.rv3-motion-toast.toast-offer { animation: motion-toast-offer 16s ease infinite; }
.rv3-motion-toast.toast-file { animation: motion-toast-file 16s ease infinite; }

@keyframes motion-toast-task {
  0%, 25% { opacity: 0; transform: translateY(-8px); }
  27%, 31% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes motion-toast-offer {
  0%, 42% { opacity: 0; transform: translateY(-8px); }
  44%, 53% { opacity: 1; transform: translateY(0); }
  56%, 100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes motion-toast-file {
  0%, 89% { opacity: 0; transform: translateY(-8px); }
  91%, 96% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

.rv3-motion-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 64px;
  padding: 0 24px;
  border-top: 1px solid #e6ebf3;
  background: #fff;
}

.rv3-motion-timeline span {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #7f8ca1;
  font-size: 8px;
  font-weight: 800;
}

.rv3-motion-timeline span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd4e1;
  animation: motion-timeline-dot 16s ease infinite;
}

.rv3-motion-timeline span:nth-child(2) i { animation-delay: -10.7s; }
.rv3-motion-timeline span:nth-child(3) i { animation-delay: -5.35s; }

@keyframes motion-timeline-dot {
  0%, 30% { background: var(--rv2-accent); box-shadow: 0 0 0 4px rgba(109, 143, 255, 0.12); }
  34%, 100% { background: #cbd4e1; box-shadow: none; }
}

.rv3-motion-timeline > b {
  position: absolute;
  top: 0;
  left: 0;
  width: 33.333%;
  height: 3px;
  background: var(--rv2-accent);
  animation: motion-timeline-progress 16s linear infinite;
}

@keyframes motion-timeline-progress {
  0% { width: 0; }
  31% { width: 33.333%; }
  64% { width: 66.666%; }
  100% { width: 100%; }
}

.rv3-motion-caption {
  position: absolute;
  right: -7px;
  bottom: 3px;
  z-index: 3;
  padding: 9px 12px;
  border: 1px solid #d9e3f0;
  border-radius: 20px;
  color: #53627a;
  background: #fff;
  box-shadow: 0 14px 32px rgba(37, 65, 114, 0.12);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rv3-process-visual:not(.is-playing) *,
.rv3-process-visual:not(.is-playing) *::before,
.rv3-process-visual:not(.is-playing) *::after {
    animation-play-state: paused !important;
}

@media (max-width: 620px) {
    .rv3-process-visual {
        min-height: 565px;
    }

    .rv3-motion-browser {
        min-height: 535px;
        border-radius: 20px;
    }

    .rv3-motion-toolbar {
        grid-template-columns: 48px 1fr;
        padding-inline: 14px;
    }

    .rv3-motion-toolbar > span {
        display: none;
    }

    .rv3-motion-viewport {
        height: 430px;
    }

    .rv3-motion-scene {
        inset: 16px 12px;
        padding: 18px;
    }

    .rv3-motion-card-head b,
    .rv3-motion-card-head strong {
        font-size: 20px;
    }

    .rv3-motion-textarea {
        min-height: 78px;
    }

    .rv3-motion-typed {
        max-width: 250px;
    }

    .rv3-motion-offer {
        grid-template-columns: 36px 1fr auto;
    }

    .rv3-motion-offer button {
        display: none;
    }

    .rv3-motion-chat {
        padding: 0;
    }

    .rv3-motion-timeline {
        height: 47px;
        padding-inline: 8px;
    }

    .rv3-motion-timeline span {
        font-size: 7px;
    }

    .rv3-motion-caption {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rv3-motion-task {
        opacity: 1 !important;
    }

    .rv3-motion-offers,
    .rv3-motion-chat,
    .rv3-motion-cursor,
    .rv3-motion-click-ring,
    .rv3-motion-toast {
        display: none !important;
    }
}
