.sovetnik-form-feedback {
  width: min(38rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100svh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  overflow: visible;
  color: #202426;
  background: transparent;
}

.sovetnik-form-feedback.is-open {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.sovetnik-form-feedback::backdrop {
  background: rgba(24, 27, 28, 0.56);
  backdrop-filter: blur(6px);
}

.sovetnik-form-feedback__panel {
  position: relative;
  display: grid;
  padding: clamp(2.2rem, 5.5vw, 4.2rem);
  border: 1px solid rgba(184, 141, 71, 0.34);
  background:
    radial-gradient(circle at 88% 8%, rgba(216, 187, 123, 0.2), transparent 34%),
    linear-gradient(138deg, #fff 0%, #fbf7ee 58%, #fff 100%);
  box-shadow: 0 2rem 6rem rgba(25, 27, 28, 0.28);
  gap: 1.35rem;
}

.sovetnik-form-feedback__panel::before,
.sovetnik-form-feedback__panel::after {
  position: absolute;
  width: clamp(4rem, 18vw, 8rem);
  height: 1px;
  content: '';
  background: linear-gradient(90deg, rgba(139, 98, 36, 0.72), transparent);
}

.sovetnik-form-feedback__panel::before {
  top: 1.15rem;
  left: -0.55rem;
}

.sovetnik-form-feedback__panel::after {
  right: -0.55rem;
  bottom: 1.15rem;
  transform: rotate(180deg);
}

.sovetnik-form-feedback__mark {
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(139, 98, 36, 0.52);
  border-radius: 50%;
  background: radial-gradient(circle, #b88d47 0 0.3rem, transparent 0.34rem);
  box-shadow: 0 0 0 0.55rem rgba(216, 187, 123, 0.1);
}

.sovetnik-form-feedback h2 {
  margin: 0;
  color: #8b6224;
  font-family: Prata, Georgia, serif;
  font-size: clamp(2.35rem, 6vw, 4.25rem);
  font-weight: 400;
  line-height: 1.02;
  outline: 0;
}

.sovetnik-form-feedback p {
  max-width: 29ch;
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.5;
}

.sovetnik-form-feedback__close {
  width: fit-content;
  min-height: 3.25rem;
  margin-top: 0.35rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(139, 98, 36, 0.56);
  color: #5f431c;
  background: rgba(255, 255, 255, 0.72);
  font: 600 0.78rem/1.2 Manrope, Arial, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sovetnik-form-feedback__close:focus-visible {
  outline: 2px solid #8b6224;
  outline-offset: 0.3rem;
}

@media (max-width: 720px) {
  .sovetnik-form-feedback {
    width: calc(100vw - 1.25rem);
    max-height: calc(100svh - 1.25rem);
  }

  .sovetnik-form-feedback__panel {
    min-height: min(31rem, calc(100svh - 1.25rem));
    align-content: center;
    padding: 2.2rem 1.65rem;
  }

  .sovetnik-form-feedback__close {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sovetnik-form-feedback::backdrop {
    backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .sovetnik-form-feedback__panel,
  .sovetnik-form-feedback__close {
    border: 1px solid CanvasText;
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
  }
}
