/* Hero: "описали словами → получили платформу" */

.mos-nowrap {
  white-space: nowrap;
}

.mos-demo {
  z-index: 5;
  flex-flow: column;
  gap: 14px;
  width: 31%;
  max-width: 420px;
  display: flex;
  position: absolute;
  top: 3rem;
  right: 2rem;
}

.mos-card {
  background-color: var(--color-system--white);
  border: 1px solid #dfe6fa;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 12px 32px #1c64eb14;
  animation: mos-up .6s cubic-bezier(.2, .7, .2, 1) both;
}

.mos-card.request {
  color: var(--color-system--white);
  background-color: var(--color-system--primary-blue);
  border-color: var(--color-system--primary-blue);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  width: 86%;
  animation-delay: .2s;
}

.mos-card.answer {
  border-bottom-left-radius: 4px;
  width: 92%;
  animation-delay: .9s;
}

.mos-card.cabinet {
  align-self: flex-end;
  width: 88%;
  animation-delay: 1.6s;
}

.mos-meta {
  color: var(--color-system--gray-500);
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 16px;
  display: flex;
}

.mos-card.request .mos-meta {
  color: #ffffffb3;
}

.mos-ai-icon {
  background-color: var(--color-system--neutral-01);
  border-radius: 8px;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  display: flex;
}

.mos-ai-icon img {
  width: 14px;
}

.mos-text {
  color: var(--color-system--gray-800);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.mos-card.request .mos-text {
  color: var(--color-system--white);
}

.mos-preview {
  background-color: var(--color-system--gray-100);
  border: 1px solid var(--color-system--gray-300);
  border-radius: 10px;
  grid-template-columns: 22% 1fr;
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
  display: grid;
}

.mos-preview-side {
  flex-flow: column;
  gap: 5px;
  display: flex;
}

.mos-preview-side span {
  background-color: var(--color-system--gray-300);
  border-radius: 3px;
  height: 6px;
}

.mos-preview-side span:first-child {
  background-color: var(--color-system--primary-blue);
}

.mos-preview-main {
  flex-flow: column;
  gap: 6px;
  display: flex;
}

.mos-preview-tiles {
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  display: grid;
}

.mos-preview-tiles span {
  background-color: var(--color-system--white);
  border: 1px solid var(--color-system--gray-300);
  border-radius: 5px;
  height: 22px;
}

.mos-preview-bars {
  align-items: flex-end;
  gap: 4px;
  height: 26px;
  display: flex;
}

.mos-preview-bars span {
  background-image: linear-gradient(#1c64eb, #6ea2ff);
  border-radius: 3px 3px 0 0;
  flex: 1;
}

.mos-bonus {
  background-color: #ecfdf3;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  display: flex;
}

.mos-bonus-sum {
  color: #079455;
  flex: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
}

.mos-bonus-text {
  color: var(--color-system--gray-700);
  font-size: 12px;
  line-height: 16px;
}

.mos-tree {
  flex-flow: column;
  gap: 6px;
  margin-top: 10px;
  display: flex;
}

.mos-partner {
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  display: flex;
}

.mos-partner.line-2 {
  padding-left: 18px;
}

.mos-avatar {
  color: var(--color-system--primary-blue);
  background-color: var(--color-system--neutral-01);
  border-radius: 99px;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}

.mos-partner-info {
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
  overflow: hidden;
}

.mos-partner-name {
  color: var(--color-system--gray-800);
  font-weight: 600;
}

.mos-partner-line {
  color: var(--color-system--gray-500);
}

.mos-rank {
  border-radius: 99px;
  margin-left: auto;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
}

.mos-rank.silver {
  color: #475467;
  background-color: #eaecf0;
}

.mos-rank.bronze {
  color: #b54708;
  background-color: #fef0c7;
}

.mos-rank.start {
  color: var(--color-system--primary-blue);
  background-color: var(--color-system--neutral-01);
}

@keyframes mos-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

@media screen and (min-width: 1440px) {
  .mos-demo {
    top: 4rem;
    right: 3rem;
  }
}

@media screen and (max-width: 991px) {
  .mos-demo {
    width: 100%;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    position: static;
  }
}

@media screen and (max-width: 479px) {
  .mos-card.request, .mos-card.answer, .mos-card.cabinet {
    width: 100%;
  }
}

/* Hero: lead phrase in the subheading */

.mos-lead {
  color: var(--color-system--gray-800);
  font-weight: 500;
}

/* Hero: three facts in a full-width row under the hero */

.top-left-hero {
  border-bottom-width: 0;
}

.mos-stats {
  grid-template-columns: repeat(3, 1fr);
  padding: 3.5rem 0 0;
  display: grid;
}

.mos-stat {
  flex-flow: column;
  align-items: flex-start;
  padding: 0 2.5rem;
  display: flex;
  animation: mos-stat-in .6s ease-out both;
}

.mos-stat + .mos-stat {
  border-left: 1px solid #dfe6fa;
}

.mos-stat:nth-child(2) {
  animation-delay: .12s;
}

.mos-stat:nth-child(3) {
  animation-delay: .24s;
}

.mos-stat-icon {
  color: var(--color-system--white);
  background-image: linear-gradient(135deg, #368df7, #0251ff);
  border-radius: 16px;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  display: flex;
  box-shadow: 0 14px 28px -10px #0251ff8c;
}

.mos-stat-icon svg {
  width: 26px;
  height: 26px;
}

.mos-stat-title {
  color: var(--color-system--gray-900);
  letter-spacing: -.02em;
  margin: 1.75rem 0 .75rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 110%;
}

.mos-stat-accent {
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(90deg, #0251ff, #368df7);
  -webkit-background-clip: text;
  background-clip: text;
}

.mos-stat-text {
  color: var(--color-system--gray-500);
  letter-spacing: .02em;
  max-width: 300px;
  margin: 0;
  font-size: 1rem;
  line-height: 150%;
}

@keyframes mos-stat-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

@media screen and (min-width: 992px) and (max-width: 1439px) {
  .mos-stat {
    padding: 0 1.75rem;
  }

  .mos-stat-title {
    font-size: 2rem;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .mos-stats {
    padding-top: 2.5rem;
  }

  .mos-stat {
    padding: 0 1.25rem;
  }

  .mos-stat-icon {
    border-radius: 14px;
    width: 48px;
    height: 48px;
  }

  .mos-stat-icon svg {
    width: 22px;
    height: 22px;
  }

  .mos-stat-title {
    margin-top: 1.25rem;
    font-size: 1.6rem;
  }

  .mos-stat-text {
    font-size: .9rem;
  }
}

@media screen and (max-width: 767px) {
  .mos-stats {
    grid-template-columns: 1fr;
    padding: .5rem 1.25rem 0;
  }

  .mos-stat {
    grid-column-gap: 16px;
    grid-template-columns: 48px 1fr;
    align-items: center;
    padding: 1.25rem 0;
    display: grid;
  }

  .mos-stat + .mos-stat {
    border-top: 1px solid #dfe6fa;
    border-left-width: 0;
  }

  .mos-stat-icon {
    border-radius: 14px;
    grid-row: span 2;
    align-self: start;
    width: 48px;
    height: 48px;
  }

  .mos-stat-icon svg {
    width: 22px;
    height: 22px;
  }

  .mos-stat-title {
    margin: 0 0 4px;
    font-size: 1.5rem;
  }

  .mos-stat-text {
    max-width: none;
    font-size: .95rem;
  }
}

/* Hero grid keeps room for the demo cards now that the facts row sits below it */
@media screen and (min-width: 992px) {
  .hero-grid-container {
    min-height: 640px;
  }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
  .hero-grid-container {
    min-height: 690px;
  }
}
