
.parallax-title {
  position: relative;
}

.hero {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.hero::after {
  content: '';
  display: block;
  width: 100%;
  padding-top: 40%;
  max-height: calc(100vh - 80px);
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: absolute;
  left: 4.5%;
  bottom: 5%;
  z-index: 2;
  color: #fff;
  /* font-family: gothamprobold, GothamProBold, sans-serif; */
  font-family: 'GothamProRegular', gothamproregular, GothamProRegular, Arial, sans-serif;
  font-size: clamp(1.5rem, 4vw, 4rem);
  font-weight: 400;
  text-shadow: 0 0 6px rgba(0, 0, 0, .5);
}

.sest,
.sest *,
.sest *::before,
.sest *::after {
  box-sizing: border-box;
}

.sest {
  --sest-blue: #030059;
  --sest-text: #333333;
  --sest-site-bg: #ffffff;
  --sest-site-border: rgba(0, 0, 0, .055);
  --sest-user-bg: #ddddef;
  --sest-user-border: rgba(3, 0, 89, .08);
  --sest-note-bg: #ffffff;
  --sest-shadow: 0 12px 30px rgba(0, 0, 0, .052);
  --sest-radius: 24px;
  --sest-corner: 4.5px;
  --sest-font-size: clamp(17px, 1.28vw, 22px);
  --sest-avatar: 42px;
  --sest-avatar-gap: 12px;
  /* background: #fff; */
  color: var(--sest-text);
  font-family: 'GothamProRegular', gothamproregular, GothamProRegular, Arial, sans-serif;
  font-weight: 400;
  overflow: visible;
  /* background: url(https://viimiracula.ru/wp-content/uploads/bg-chat.jpg) repeat; */
  background: url(https://viimiracula.ru/wp-content/uploads/bg-stones.jpg) repeat;
  /* background: url(https://viimiracula.ru/wp-content/uploads/bg-chat2.jpg) repeat;  */
  /* background: url(https://viimiracula.ru/wp-content/uploads/bg-chat3.jpg) repeat;  */
  background: url(https://viimiracula.ru/wp-content/uploads/bg-chat7.jpg) repeat; 
  background-attachment: fixed;
  padding-bottom: 80px;
}

footer {margin-top: 0 !important;}
.sest img {
  display: block;
  max-width: 100%;
}

.sest a {
  color: #1368c4;
  text-decoration: none;
  transition: background-color .18s ease, text-decoration-color .18s ease;
}

.sest a:hover {
  color: #1368c4;
  text-decoration: underline;
}

.sest-wrap {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
}

.sest-chat {
  position: relative;
  padding: clamp(52px, 7vw, 104px) 0 clamp(60px, 8vw, 120px);
  /* background:
    radial-gradient(circle at 13% 8%, rgba(3, 0, 89, .045), transparent 30%),
    radial-gradient(circle at 86% 38%, rgba(0, 0, 0, .035), transparent 34%),
    linear-gradient(180deg, #fff 0%, #fafafa 48%, #fff 100%); */
}

.sest-chat__thread {
  display: grid;
  gap: 8px;
}

.sest-chat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 0;
  align-items: end;
  justify-content: start;
  width: 100%;
}

.sest-chat-row--user {
  grid-template-columns: minmax(0, 1fr);
}

.sest-chat-row + .sest-chat-row {
  margin-top: 8px;
}

.sest-chat-row--sender-change {
  margin-top: clamp(14px, 2vw, 24px) !important;
}

.sest-chat-row[id^="stone-"] {
  scroll-margin-top: clamp(72px, 14vh, 140px);
}

.sest-avatar {
  grid-column: 1;
  width: var(--sest-avatar);
  height: var(--sest-avatar);
  align-self: end;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  user-select: none;
  opacity: 0;
  transform: translateY(4px) scale(.96);
  transition: opacity .28s ease, transform .34s cubic-bezier(.24, .68, .24, 1);
  display: none !important;
}

.sest-chat-row--user .sest-avatar {
  grid-column: 1;
  grid-row: 1;
}

.sest-chat-row--initial .sest-avatar,
.sest-chat-row.is-visible .sest-avatar {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sest-chat-row--avatar-hidden .sest-avatar {
  visibility: hidden;
  opacity: 0 !important;
  transform: scale(.96) !important;
}

.sest-avatar__site,
.sest-avatar__user {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.sest-avatar__site {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .065);
}

.sest-avatar__site img {
  width: 26px;
  height: auto;
  max-height: 26px;
  object-fit: contain;
}

.sest-avatar__user {
  background: var(--sest-blue);
  color: #fff;
  font-family: gothamprobold, GothamProBold, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .045em;
  box-shadow: 0 7px 20px rgba(3, 0, 89, .18);
}

.sest-msg {
  position: relative;
  grid-column: 1;
  width: fit-content;
  max-width: min(70%, 900px);
  margin: 0;
  padding: clamp(12px, 1.25vw, 18px) 88px clamp(12px, 1.25vw, 18px) clamp(16px, 1.55vw, 24px);
  color: var(--sest-text);
  font-family: 'GothamProRegular', gothamproregular, GothamProRegular, Arial, sans-serif;
  font-size: var(--sest-font-size);
  font-weight: 400;
  line-height: 1.36;
  letter-spacing: -.01em;
  box-shadow: var(--sest-shadow);
  transform-origin: left bottom;
}

.sest-chat-row--user .sest-msg {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  transform-origin: right bottom;
}

.sest-msg--site {
  background: var(--sest-site-bg);
  border: 1px solid var(--sest-site-border);
  border-radius: var(--sest-radius) var(--sest-radius) var(--sest-radius) var(--sest-corner);
}

.sest-msg--user {
  background: var(--sest-user-bg);
  border: 1px solid var(--sest-user-border);
  border-radius: var(--sest-radius) var(--sest-radius) var(--sest-corner) var(--sest-radius);
  padding-right: 92px;
}

.sest-msg--note {
  background: var(--sest-note-bg);
  border-color: rgba(0, 0, 0, .055);
  color: #555;
}

.sest-msg--stone-gallery {
  width: min(70%, 760px);
  max-width: min(70%, 760px);
  padding: 4px !important;
  overflow: hidden;
}

.sest-stone-gallery {
  display: grid;
  gap: 4px;
  overflow: hidden;
  border-radius: calc(var(--sest-radius) - 6px);
}

.sest-stone-gallery__row {
  display: grid;
  gap: 4px;
}

.sest-stone-gallery__row--top {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sest-stone-gallery__row--bottom {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sest-stone-gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff !important;
  text-decoration: none !important;
  background: #ececec;
  aspect-ratio: 1 / .78;
}

.sest-stone-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  padding: 0 !important;
  transition: transform .22s ease, filter .22s ease;
}

.sest-stone-gallery__item span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: block;
  padding: 5px 7px;
  color: #fff;
  background: rgba(3, 0, 89, .68);
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.sest-stone-gallery__item:hover img,
.sest-stone-gallery__item:focus-visible img {
  filter: brightness(.86);
  transform: scale(1.025);
}

.sest-stone-gallery__item:hover span,
.sest-stone-gallery__item:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.sest-stone-gallery__item:focus-visible {
  outline: 2px solid rgba(19, 104, 196, .72);
  outline-offset: -2px;
}

.sest-msg--link-card {
  max-width: min(70%, 720px);
  padding-bottom: clamp(20px, 1.6vw, 24px);
}

.sest-inline-link {
  color: #1368c4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.sest-inline-link:hover {
  text-decoration: underline;
}

.sest-link-preview {
  display: block;
  margin-top: 9px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #1368c4;
  border-left: 3px solid rgb(3 0 89);
  border-radius: 4px 10px 10px 4px;
  transition: all .18s ease;
}

.sest .sest-link-preview:hover {
  color: #fff;
  text-decoration: none;
  background: #1369c4db;
}

.sest-link-preview__body {
  display: grid;
  gap: 4px;
  padding: 9px 10px 8px;
}

.sest-link-preview__title,
.sest-link-preview__description {
  display: block;
  font-family: 'GothamProRegular', gothamproregular, GothamProRegular, Arial, sans-serif;
  letter-spacing: 0;
}

.sest-link-preview__title {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.sest-link-preview__description {
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}

.sest-link-preview__media {
  display: block;
  padding: 0 10px 10px;
}

.sest-link-preview__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0 !important;
  padding: 0 !important;
  background: #ececec;
  border-radius: 5px;
}

.sest-msg p,
.sest-msg strong,
.sest-msg__content,
.sest-msg__caption {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

.sest-msg p,
.sest-msg__content,
.sest-msg__caption {
  font-family: 'GothamProRegular', gothamproregular, GothamProRegular, Arial, sans-serif !important;
  font-weight: 400 !important;
  text-transform: none !important;
}

.sest-msg strong {
  font-family: gothamprobold, GothamProBold, 'GothamProRegular', Arial, sans-serif !important;
  font-weight: 700 !important;
}

.sest-msg p + p {
  margin-top: .75em;
}

.sest-msg__meta {
  position: absolute;
  right: 13px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(51, 51, 51, .48);
  font-family: 'GothamProRegular', gothamproregular, GothamProRegular, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.sest-msg--user .sest-msg__meta {
  color: rgba(3, 0, 89, .56);
}

.sest-msg__checks {
  position: relative;
  display: inline-flex;
  width: 18px;
  height: 12px;
  color: rgba(3, 0, 89, .58);
  font-size: 13px;
  line-height: 12px;
}

.sest-msg__check {
  position: absolute;
  top: 0;
  transition: opacity .2s ease, transform .2s ease;
}

.sest-msg__check--one {
  left: 1px;
}

.sest-msg__check--two {
  left: 7px;
  opacity: 0;
  transform: translateX(-2px);
}

.sest-chat-row.is-read .sest-msg__check--two {
  opacity: 1;
  transform: translateX(0);
}

.sest-msg--image,
.sest-msg--media-text:not(.sest-msg--stone) {
  width: min(70%, 920px);
  max-width: min(70%, 920px);
  padding: 4px !important;
  overflow: hidden;
}

.sest-msg--image.sest-msg--portrait {
  width: min(54%, 560px);
  max-width: min(54%, 560px);
}

.sest-msg--image.sest-msg--square {
  width: min(62%, 680px);
  max-width: min(62%, 680px);
}

.sest-msg--image img,
.sest-msg--media-text:not(.sest-msg--stone) img {
  width: 100%;
  height: auto;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: calc(var(--sest-radius) - 6px);
  background: #ececec;
}

.sest-msg--image .sest-msg__meta,
.sest-msg--media-text:not(.sest-msg--stone) .sest-msg__meta {
  right: 13px;
  bottom: 8px;
  padding: 3px 7px;
  color: rgba(51, 51, 51, .68);
  background: rgba(255, 255, 255, .78);
  border-radius: 999px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .06);
}

.sest-msg--landscape img {
  object-fit: contain;
}

.sest-msg--stone {
  width: min(70%, 760px);
  max-width: min(70%, 760px);
  padding: 0 !important;
  overflow: hidden;
}

.sest-msg--stone img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  padding: 0 !important;
  margin: 0 !important;
  background: #ededed;
  border-radius: var(--sest-radius) var(--sest-radius) 0 0;
}

.sest-msg--stone .sest-msg__caption {
  display: block;
  padding: clamp(12px, 1.25vw, 18px) 88px clamp(12px, 1.25vw, 18px) clamp(16px, 1.55vw, 24px) !important;
}

.sest-stone-choice {
  display: block !important;
  grid-column: 1;
  justify-self: start;
  width: min(70%, 760px) !important;
  max-width: min(70%, 760px) !important;
  min-height: 48px !important;
  margin: 8px 0 3rem !important;
  padding: 12px 18px !important;
  border: 1px solid rgba(3, 0, 89, .08) !important;
  border-radius: 12px !important;
  background: rgba(98, 119, 139, .46) !important;
  color: rgba(255, 255, 255, .96) !important;
  font-family: 'GothamProRegular', gothamproregular, GothamProRegular, Arial, sans-serif !important;
  font-size: clamp(15px, 1.05vw, 18px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.sest-stone-choice:hover,
.sest-stone-choice:focus-visible {
  background: rgba(80, 101, 123, .68) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.sest-stone-choice:focus-visible {
  outline: 2px solid rgba(19, 104, 196, .45);
  outline-offset: 2px;
}

.sest-msg--stone .sest-msg__meta {
  right: 13px;
  bottom: 8px;
}

html.sest-js-ready .sest-msg:not(.sest-msg--initial),
html.sest-js-ready [data-sest-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(.90);
}

html.sest-js-ready .sest-msg.sest-msg--initial,
html.sest-js-ready .sest-msg.is-visible,
html.sest-js-ready [data-sest-reveal].is-visible {
  opacity: 1;
}

html.sest-js-ready .sest-msg.is-visible:not(.sest-msg--initial),
html.sest-js-ready [data-sest-reveal].is-visible {
  animation: sestBubbleSoftPop 440ms cubic-bezier(.2, .72, .22, 1) var(--sest-delay, 0ms) both;
}

@keyframes sestBubbleSoftPop {
  0% {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(.90);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.sest-contact {
  padding: 0;
  margin: 0;
  /* background: #fff; */
}

.sest-contact .sest-wrap {
  width: 100%;
  max-width: 960px;
}

.sest-contact .wpcf7 {
  width: 100%;
}

form.wpcf7-form {
  max-width: 100%;
}

.sest-chat-form {
  width: 100%;
  margin: 0 auto;
  padding: 32px;
  background: #f1f3f6;
  border: 1px solid rgba(0, 0, 0, .055);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .08);
  font-family: 'GothamProRegular', gothamproregular, GothamProRegular, Arial, sans-serif;
  font-weight: 400;
  transition: box-shadow .28s ease, transform .28s ease;
}

.sest-chat-form > p,
.sest-chat-form .sest-chat-form__bar p,
.sest-chat-form .sest-chat-form__extra p {
  margin: 0 !important;
  padding: 0 !important;
}

.sest-chat-form br {
  display: none !important;
}

.sest-chat-form .wpcf7-form-control-wrap {
  display: block;
  min-width: 0;
}

.sest-chat-form:focus-within,
.sest-chat-form.is-open {
  box-shadow: 0 22px 58px rgba(0, 0, 0, .11);
}

.sest-chat-form__extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: max-height .34s ease, opacity .24s ease, transform .34s ease, margin-bottom .34s ease;
}

.sest-chat-form.is-open .sest-chat-form__extra,
.sest-chat-form:focus-within .sest-chat-form__extra {
  max-height: 120px;
  margin-bottom: 8px;
  opacity: 1;
  transform: translateY(0);
}

.sest-chat-form__field {
  display: grid;
  gap: 5px;
  margin: 0;
}

.sest-chat-form__field span {
  color: rgba(51, 51, 51, .56);
  font-size: 12px;
  line-height: 1;
}

.sest-chat-form__field input {
  width: 100%;
  min-height: 44px;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(0, 0, 0, .075) !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--sest-text) !important;
  font: inherit !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.sest-chat-form .wpcf7-not-valid-tip,
.wpcf7 .wpcf7-not-valid-tip {
  margin: 0 8px !important;
  padding: 6px 9px !important;
  background: #fff !important;
  border-radius: 10px !important;
  color: #8e2727 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.wpcf7 .wpcf7-not-valid-tip:after {
  border-bottom-color: #fff !important;
}

.sest-chat-form__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 6px 6px 6px 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .055);
  border-radius: 18px;
}

.sest-chat-form__bar .wpcf7-form-control-wrap {
  min-width: 0;
}

.sest-chat-form__message {
  width: 100%;
  min-height: 42px;
  margin: 0 !important;
  padding: 11px 8px 9px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--sest-text) !important;
  font: inherit !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.sest-chat-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-height: 0;
  margin: 0 8px !important;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  color: rgba(51, 51, 51, .62);
  font-size: 12px;
  line-height: 1.35;
  transition: max-height .28s ease, opacity .2s ease, transform .28s ease, margin-top .28s ease;
}

.sest-chat-form.is-started .sest-chat-form__consent {
  max-height: 80px;
  margin-top: 10px !important;
  opacity: 1;
  transform: translateY(0);
}

.sest-chat-form__consent .wpcf7-form-control-wrap,
.sest-chat-form__consent .wpcf7-form-control,
.sest-chat-form__consent .wpcf7-list-item,
.sest-chat-form__consent label {
  display: contents;
}

.sest-chat-form__consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  margin: 1px 0 0 !important;
  accent-color: var(--sest-blue);
}

.sest-chat-form__consent .wpcf7-acceptance label,
.wpcf7-acceptance label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sest-chat-form__consent a {
  color: #1368c4;
  text-decoration: none;
}

.sest-chat-form__consent a:hover {
  color: #1368c4;
  text-decoration: underline;
}

.sest-chat-form__message::placeholder,
.sest-chat-form__field input::placeholder {
  color: rgba(51, 51, 51, .46);
}

.sest-chat-form__submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--sest-blue) !important;
  color: #fff !important;
  font-size: 19px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, opacity .18s ease;
}

.sest-chat-form__submit:hover {
  background: #0800a3 !important;
  transform: translateY(-1px);
}

.sest-chat-form.is-sending .sest-chat-form__submit {
  opacity: .58;
  pointer-events: none;
}

.sest-chat-form .wpcf7-spinner {
  position: absolute;
  right: 22px;
  bottom: 22px;
  margin: 0 !important;
}

.sest-chat-form__status {
  min-height: 0;
  margin: 12px 8px 0;
  color: rgba(51, 51, 51, .62);
  font-size: 14px;
  line-height: 1.35;
}

.sest-chat-form__status:empty,
.sest-chat-form__status[hidden] {
  display: none !important;
}

.sest-chat-form.is-sent .sest-chat-form__status {
  color: #216a38;
}

.sest-chat-form.is-error .sest-chat-form__status {
  color: #8e2727;
}

.sest-chat-form .wpcf7-response-output {
  margin: 12px 8px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: rgba(51, 51, 51, .62);
  font-size: 14px;
  line-height: 1.35;
}

.sest-chat-form.sent .wpcf7-response-output,
.sest-chat-form.is-sent .wpcf7-response-output {
  color: #216a38;
}

.sest-chat-form.invalid .wpcf7-response-output,
.sest-chat-form.failed .wpcf7-response-output,
.sest-chat-form.spam .wpcf7-response-output,
.sest-chat-form.is-error .wpcf7-response-output {
  color: #8e2727;
}

@media screen and (max-width: 1000px) {
  .hero::after {
    padding-top: 66%;
  }

  .sest {
    --sest-font-size: clamp(16px, 2.05vw, 20px);
  }
}

@media screen and (max-width: 780px) {
  .hero::after {
    padding-top: 100%;
  }

  .sest {
    --sest-avatar: 38px;
    --sest-avatar-gap: 10px;
  }

  .sest-wrap {
    width: 94%;
    max-width: 680px;
  }

  .sest-msg,
  .sest-msg--image,
  .sest-msg--media-text:not(.sest-msg--stone),
  .sest-msg--stone-gallery,
  .sest-msg--stone {
    max-width: min(88%, 680px);
  }

  .sest-msg--image,
  .sest-msg--media-text:not(.sest-msg--stone),
  .sest-msg--stone-gallery,
  .sest-msg--stone {
    width: min(88%, 680px);
  }

  .sest-msg--image.sest-msg--portrait {
    width: min(66%, 460px);
    max-width: min(66%, 460px);
  }

  .sest-msg--image.sest-msg--square {
    width: min(76%, 560px);
    max-width: min(76%, 560px);
  }

  .sest-chat {
    padding-top: 42px;
  }

  .sest-chat-form__extra {
    grid-template-columns: 1fr;
  }

  .sest-chat-form.is-open .sest-chat-form__extra,
  .sest-chat-form:focus-within .sest-chat-form__extra {
    max-height: 180px;
  }
}

@media screen and (max-width: 550px) {
  .hero::after {
    height: calc(100vh - 100px);
    padding-top: 0;
  }

  .hero__content {
    bottom: 5%;
  }

  .sest {
    --sest-font-size: 16px;
    --sest-radius: 20px;
    --sest-avatar: 34px;
    --sest-avatar-gap: 8px;
  }

  .sest-chat__thread {
    gap: 9px;
  }

  .sest-avatar__site img {
    width: 21px;
    max-height: 21px;
  }

  .sest-avatar__user {
    font-size: 10px;
  }

  .sest-msg {
    max-width: 91%;
    padding: 11px 12px 24px 12px;
  }

  .sest-msg--user {
    padding-right: 15px;
  }

  .sest-msg--image,
  .sest-msg--media-text:not(.sest-msg--stone),
  .sest-msg--stone-gallery,
  .sest-msg--stone {
    width: 91%;
    max-width: 91%;
  }

  .sest-stone-gallery {
    gap: 3px;
  }

  .sest-stone-gallery__row {
    gap: 3px;
  }

  .sest-stone-gallery__item span {
    left: 5px;
    right: 5px;
    bottom: 5px;
    padding: 4px 5px;
    font-size: 10px;
  }

  .sest-msg--image.sest-msg--portrait {
    width: 76%;
    max-width: 76%;
  }

  .sest-msg--image.sest-msg--square {
    width: 84%;
    max-width: 84%;
  }

  .sest-msg--stone img {
    max-height: 340px;
  }

  .sest-msg--stone .sest-msg__caption {
    padding: 11px 72px 11px 12px !important;
  }

  .sest-stone-choice {
    width: 91% !important;
    max-width: 91% !important;
    min-height: 44px !important;
    margin-top: 7px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
  }

  .sest-chat-form {
    padding: 20px;
    border-radius: 20px;
  }

  .sest-chat-form__bar {
    grid-template-columns: minmax(0, 1fr) 44px;
    border-radius: 16px;
  }

  .sest-chat-form__submit {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.sest-js-ready .sest-msg,
  html.sest-js-ready [data-sest-reveal],
  html.sest-js-ready .sest-msg.is-visible,
  html.sest-js-ready [data-sest-reveal].is-visible,
  html.sest-js-ready .sest-msg.sest-msg--initial {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .sest-avatar {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
