.seo-visual.seo-serp-ready > .seo-window,
.seo-visual.seo-serp-ready > .seo-search-card {
  display: none !important;
}

.yandex-serp-demo {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin: auto;
  perspective: 1100px;
}

.ys-window {
  overflow: hidden;
  width: 100%;
  border: 5px solid #292e2a;
  border-radius: 22px;
  background: #f7f7f5;
  color: #202420;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .42);
  transform: rotateY(-2deg);
}

.ys-browser {
  height: 38px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 12px;
  color: #8f9690;
  background: #1c211d;
  font-size: 10px;
}

.ys-browser em {
  color: #b8ff5a;
  font-style: normal;
  font-weight: 800;
}

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

.ys-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff7067;
}

.ys-dots i:nth-child(2) { background: #ffd05a; }
.ys-dots i:nth-child(3) { background: #7bd85a; }

.ys-page {
  padding: 18px 20px 14px;
  background:
    radial-gradient(circle at 98% 0, rgba(255, 214, 63, .12), transparent 27%),
    #f7f7f5;
}

.ys-head {
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: center;
  gap: 14px;
}

.ys-brand {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ys-brand > b {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #ff3d32;
  font: 800 18px Manrope, sans-serif;
}

.ys-brand strong {
  font-size: 17px;
  letter-spacing: -.04em;
}

.ys-brand strong span { color: #ff3d32; }

.ys-search {
  height: 42px;
  padding: 0 7px 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 2px solid #ffcf32;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(62, 53, 20, .07);
  font-size: 12px;
  font-weight: 700;
}

.ys-search i {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #ffcf32;
  font-style: normal;
  font-size: 17px;
}

.ys-meta {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #e4e7e2;
  color: #818982;
  font-size: 10px;
}

.ys-rank {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 9px;
  background: #edf7e6;
  color: #4f6c46;
  font-weight: 800;
}

.ys-rank i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #69ad38;
  box-shadow: 0 0 0 4px rgba(105, 173, 56, .12);
}

.ys-rank b {
  min-width: 25px;
  color: #4f9224;
  font: 600 16px Unbounded, sans-serif;
  text-align: center;
}

.ys-results {
  --row-step: 78px;
  position: relative;
  height: 314px;
  margin-top: 9px;
  overflow: hidden;
  transition: opacity .36s ease, transform .36s ease;
}

.ys-result {
  position: absolute;
  inset: 0 0 auto;
  height: 70px;
  padding: 9px 13px;
  border: 1px solid #e1e5df;
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  transform: translateY(calc(var(--slot) * var(--row-step)));
  transition: transform .82s cubic-bezier(.2, .78, .22, 1), border-color .5s ease, box-shadow .5s ease;
}

.ys-result small,
.ys-result b,
.ys-result p {
  display: block;
  max-width: calc(100% - 88px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ys-result small {
  color: #69766d;
  font-size: 8px;
}

.ys-result b {
  margin-top: 3px;
  color: #4055b8;
  font-size: 12px;
}

.ys-result p {
  margin: 3px 0 0;
  color: #737b74;
  font-size: 9px;
}

.ys-rumarket {
  z-index: 3;
  border-color: #9ecf7b;
  background: linear-gradient(110deg, #fff, #f4ffe9);
  box-shadow: 0 12px 30px rgba(77, 132, 39, .15), inset 3px 0 0 #8bc84f;
}

.ys-rumarket small { color: #4f9028; }
.ys-rumarket b { color: #4935b0; }

.ys-ai-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 7px;
  border-radius: 8px;
  color: #426f28;
  background: #e6f8d8;
  font-size: 8px;
  font-weight: 900;
}

.ys-progress {
  min-height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dfe7da;
  border-radius: 10px;
  color: #59665c;
  background: #fff;
  font-size: 9px;
}

.ys-progress span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ys-progress i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #83c34f;
  animation: ysPulse 1.5s ease-in-out infinite;
}

.ys-progress b {
  color: #568f31;
  font: 600 11px Unbounded, sans-serif;
}

.ys-top-chip {
  position: absolute;
  z-index: 6;
  right: -17px;
  top: 54px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(184, 255, 90, .3);
  border-radius: 13px;
  color: #eef5eb;
  background: rgba(24, 31, 25, .94);
  box-shadow: 0 16px 35px rgba(0, 0, 0, .28);
}

.ys-top-chip > i {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #23321e;
  background: #b8ff5a;
  font-style: normal;
}

.ys-top-chip small,
.ys-top-chip b { display: block; }
.ys-top-chip small { color: #9ca79e; font-size: 8px; }
.ys-top-chip b { margin-top: 2px; font-size: 10px; }

.yandex-serp-demo[data-rank="1"] .ys-rumarket {
  border-color: #79bb46;
  box-shadow: 0 17px 38px rgba(77, 132, 39, .23), inset 3px 0 0 #79bb46;
}

.yandex-serp-demo.ys-instant .ys-result {
  transition: none !important;
}

.yandex-serp-demo.ys-resetting .ys-results {
  opacity: 0;
  transform: translateY(5px);
}

@keyframes ysPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(131, 195, 79, .25); }
  50% { box-shadow: 0 0 0 6px rgba(131, 195, 79, 0); }
}

@media (max-width: 650px) {
  .ys-window { transform: none; border-width: 3px; border-radius: 17px; }
  .ys-page { padding: 13px 11px 11px; }
  .ys-head { grid-template-columns: 1fr; gap: 9px; }
  .ys-brand { display: none; }
  .ys-results { --row-step: 72px; height: 290px; }
  .ys-result { height: 65px; padding: 8px 9px; }
  .ys-result small,.ys-result b,.ys-result p { max-width: calc(100% - 66px); }
  .ys-result b { font-size: 10px; }
  .ys-ai-badge { right: 7px; top: 8px; font-size: 7px; }
  .ys-top-chip { display: none; }
  .ys-meta > span { display: none; }
  .ys-meta { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .ys-result,
  .ys-results { transition: none !important; }
  .ys-progress i { animation: none; }
}
