/* Главная: splash и тихий фон. Только body.page-home. Внутренние страницы файл не подключают. */

html.ps-splash-skip #ps-splash {
  display: none !important;
}

#ps-splash {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  background: rgba(246, 243, 251, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

html:not(.ps-splash-skip):not(.ps-motion-off) #ps-splash {
  animation: psSplashLife 1.2s ease forwards;
}

@keyframes psSplashLife {
  0%,
  72% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

.ps-splash__mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ps-splash__mesh span {
  position: absolute;
  width: min(46vw, 520px);
  height: min(46vw, 520px);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}

html:not(.ps-motion-off) .ps-splash__mesh span {
  animation: psMesh 7s ease-in-out infinite alternate;
}

.ps-splash__mesh span:nth-child(1) {
  background: #875FDD;
  left: -8%;
  top: -12%;
}

.ps-splash__mesh span:nth-child(2) {
  background: #ad39a0;
  right: -12%;
  top: 6%;
  animation-delay: -2.2s;
}

.ps-splash__mesh span:nth-child(3) {
  background: #5eb3f7;
  left: 18%;
  bottom: -20%;
  animation-delay: -4s;
}

.ps-splash__mesh span:nth-child(4) {
  background: #f17933;
  right: 8%;
  bottom: -14%;
  opacity: 0.38;
  animation-delay: -3s;
}

@keyframes psMesh {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(22px, -16px, 0) scale(1.06); }
}

.ps-splash__mark {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 16px;
}

.ps-splash__logo {
  display: block;
  height: 104px;
  width: auto;
  max-width: min(480px, 88vw);
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(135, 95, 221, 0.35));
  opacity: 0;
}

.ps-splash__name {
  margin: 16px 0 0;
  font-size: clamp(16px, 2.1vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  color: #1a1240;
  opacity: 0;
}

.ps-splash__accent {
  color: #5b2db8;
  font-style: normal;
}

html:not(.ps-splash-skip):not(.ps-motion-off) .ps-splash__logo {
  animation: psSplashIn 0.45s ease 0.05s forwards;
}

html:not(.ps-splash-skip):not(.ps-motion-off) .ps-splash__name {
  animation: psSplashIn 0.4s ease 0.22s forwards;
}

@keyframes psSplashIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

html.ps-motion-off .ps-splash__logo,
html.ps-motion-off .ps-splash__name {
  opacity: 1;
  transform: none;
}

html.ps-motion-off #ps-splash.is-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

@media (max-width: 600px) {
  .ps-splash__logo { height: 72px; }
}

/* Цветные пятна за контентом убраны: фон страницы остаётся белым. */
body.page-home .ps-viz-bg {
  display: none;
}

html[data-design='new'] body.page-home .ps-home-hero {
  position: relative;
  border-top: none;
  padding: 28px 0 32px;
  background: transparent;
}

html[data-design='new'] body.page-home .ps-home-hero__box {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 28px 40px;
  align-items: center;
  background: #F3F0F8;
  border: 1px solid #ece7f5;
  border-radius: 20px;
  box-shadow: none;
  overflow: visible;
  padding: 32px 36px;
}

html[data-design='new'] body.page-home .ps-home-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}

html[data-design='new'] body.page-home .ps-home-hero__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  width: auto;
  max-width: 16em;
  font-weight: 700;
  text-align: left;
  color: #2e2560;
}

html[data-design='new'] body.page-home .ps-home-hero__role {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.15;
  color: #2e2560;
}

html[data-design='new'] body.page-home .ps-home-hero__where {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.3;
  color: #5c5670;
}

html[data-design='new'] body.page-home .ps-home-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 280px);
  gap: 10px;
  margin-top: 22px;
}

html[data-design='new'] body.page-home .ps-home-hero__book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #ad39a0;
  color: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: none;
  padding: 12px 26px;
}

html[data-design='new'] body.page-home .ps-home-hero__book:hover,
html[data-design='new'] body.page-home .ps-home-hero__book:focus {
  background: #922c88;
  color: #fff;
  box-shadow: none;
}

html[data-design='new'] body.page-home .ps-home-hero__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #fff;
  color: #2e2560;
  border: 1px solid #ad39a0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
}

html[data-design='new'] body.page-home .ps-home-hero__call:hover,
html[data-design='new'] body.page-home .ps-home-hero__call:focus {
  color: #ad39a0;
  border-color: #ad39a0;
  background: #fff;
}

html[data-design='new'] body.page-home .ps-home-hero__facts {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html[data-design='new'] body.page-home .ps-home-hero__facts li {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  min-width: 0;
  text-align: center;
}

html[data-design='new'] body.page-home .ps-home-hero__facts li::before {
  content: none;
  display: none;
}

html[data-design='new'] body.page-home .ps-home-hero__icon {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  border: none;
  border-radius: 0;
  color: #875FDD;
  background: transparent;
}

html[data-design='new'] body.page-home .ps-home-hero__icon img {
  width: 104px;
  height: 104px;
  display: block;
}

html[data-design='new'] body.page-home .ps-home-hero__icon:has(svg) {
  border: 1.5px solid #875FDD;
  border-radius: 50%;
}

html[data-design='new'] body.page-home .ps-home-hero__icon svg {
  width: 28px;
  height: 28px;
}

html[data-design='new'] body.page-home .ps-home-hero__fact {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: #2e2560;
}

html[data-design='new'] body.page-home .ps-home-hero__fact a {
  color: #875FDD;
  text-decoration: none;
}

html[data-design='new'] body.page-home .ps-home-hero__fact a:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  html[data-design='new'] body.page-home .ps-home-hero {
    padding: 24px 0 20px;
  }

  html[data-design='new'] body.page-home .ps-home-hero__box {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px 18px;
  }

  html[data-design='new'] body.page-home .ps-home-hero__title {
    max-width: none;
  }

  html[data-design='new'] body.page-home .ps-home-hero__actions {
    width: 100%;
  }

  html[data-design='new'] body.page-home .ps-home-hero__book,
  html[data-design='new'] body.page-home .ps-home-hero__call {
    width: 100%;
  }

  html[data-design='new'] body.page-home .ps-home-hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html[data-design='new'] body.page-home .ps-home-hero__icon,
  html[data-design='new'] body.page-home .ps-home-hero__icon img {
    width: 80px;
    height: 80px;
  }

  html[data-design='new'] body.page-home .ps-home-hero__icon {
    flex-basis: 80px;
  }
}

@media (max-width: 560px) {
  html[data-design='new'] body.page-home .ps-home-hero__facts {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  html[data-design='new'] body.page-home .ps-home-hero__facts li {
    max-width: 240px;
  }
}

html.ps-splash-done body.page-home .ps-home-hero__title,
html.ps-splash-skip body.page-home .ps-home-hero__title,
html.ps-splash-done body.page-home .ps-home-hero__lead,
html.ps-splash-skip body.page-home .ps-home-hero__lead {
  animation: psFadeUp 0.5s ease both;
}

html.ps-splash-done body.page-home .ps-home-hero__lead,
html.ps-splash-skip body.page-home .ps-home-hero__lead {
  animation-delay: 0.08s;
}

@keyframes psFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (hover: hover) and (pointer: fine) {
  html[data-design='new'] body.page-home .slider-2__item-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  html[data-design='new'] body.page-home .slider-2__item-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px -16px rgba(135, 95, 221, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-design='new'] body.page-home .ps-home-hero__title,
  html[data-design='new'] body.page-home .ps-home-hero__lead,
  .ps-splash__mesh span {
    animation: none !important;
  }

  html[data-design='new'] body.page-home .slider-2__item-container:hover {
    transform: none;
  }
}
