.plEmailSignupBlock {
  position: relative;
  margin: 0 0 2.6rem;
  padding: 1.15rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(24, 24, 36, 0.12);
  background:
    radial-gradient(150% 175% at 0% 0%, rgba(248, 241, 228, 0.78), transparent 58%),
    radial-gradient(150% 175% at 100% 0%, rgba(227, 236, 250, 0.65), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(255, 255, 255, 0.95));
  box-shadow: 0 16px 35px rgba(14, 20, 40, 0.1);
}

@media (min-width: 768px) {
  .plEmailSignupBlock {
    padding: 1.4rem 1.5rem;
    border-radius: 1.5rem;
  }
}

.plEmailSignupBlock__title {
  margin: 0 0 0.45rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.16rem, 2.7vw, 1.55rem);
  line-height: 1.25;
  color: #181824;
}

.plEmailSignupBlock__text {
  margin: 0 0 1.05rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(24, 24, 36, 0.78);
}

.plEmailSignupBlock__form {
  display: grid;
  gap: 0.8rem;
}

.plEmailSignupBlock__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(24, 24, 36, 0.74);
  margin-bottom: 0.32rem;
}

.plEmailSignupBlock__input,
.plEmailSignupBlock__email {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(24, 24, 36, 0.2);
  border-radius: 0.95rem;
  padding: 0.78rem 0.92rem;
  font-size: 1rem;
  color: #181824;
  background: rgba(255, 255, 255, 0.94);
}

.plEmailSignupBlock__input:focus-visible,
.plEmailSignupBlock__email:focus-visible,
.plEmailSignupBlock__consent input:focus-visible,
.plEmailSignupBlock__button:focus-visible {
  outline: 2px solid rgba(184, 154, 84, 0.65);
  outline-offset: 2px;
}

.plEmailSignupBlock__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(24, 24, 36, 0.76);
}

.plEmailSignupBlock__consent input {
  margin-top: 0.1rem;
}

.plEmailSignupBlock__consent a {
  color: #181824;
}

.plEmailSignupBlock__button {
  appearance: none;
  border: 1px solid rgba(24, 24, 36, 0.18);
  border-radius: 999px;
  padding: 0.78rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #181824, #1d2436);
  color: #fff;
  cursor: pointer;
  justify-self: start;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
  box-shadow: 0 14px 30px rgba(14, 20, 40, 0.28);
}

.plEmailSignupBlock__button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.plEmailSignupBlock__button[aria-busy="true"] {
  opacity: 0.8;
  pointer-events: none;
}

.plEmailSignupBlock__feedback {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.85rem;
  color: rgba(24, 24, 36, 0.48);
}

.plEmailSignupBlock__feedbackNote {
  min-height: 0;
  margin-top: -0.2rem;
  font-size: 0.78rem;
  color: rgba(24, 24, 36, 0.44);
}

.plEmailSignupBlock--withFan {
  overflow: hidden;
}

.plEmailSignupBlock__content {
  position: relative;
  z-index: 2;
}

.plEmailSignupBlock__fan {
  display: none;
}

@media (max-width: 1079px) {
  .plEmailSignupBlock--withFan {
    display: grid;
    gap: 1rem;
  }

  .plEmailSignupBlock__fan {
    position: relative;
    display: block;
    width: 142px;
    height: 198px;
    margin: 0 auto;
    pointer-events: none;
    filter: drop-shadow(0 12px 20px rgba(14, 20, 40, 0.16));
    order: -1;
  }

  .plEmailSignupBlock__fanCard {
    position: absolute;
    width: 98px;
    border-radius: 0.6rem;
    border: 1px solid rgba(24, 24, 36, 0.12);
    background: #fff;
    transform-origin: bottom center;
    backface-visibility: hidden;
  }

  .plEmailSignupBlock__fanCard--letter {
    top: 10px;
    right: 10px;
    z-index: 2;
    transform: rotate(10deg) translateY(0);
    animation: plEmailCardFloatLetterMobile 5.4s ease-in-out infinite;
  }

  .plEmailSignupBlock__fanCard--book {
    top: 36px;
    left: 14px;
    z-index: 1;
    transform: rotate(-11deg) translateY(0);
    animation: plEmailCardFloatBookMobile 5.4s ease-in-out infinite;
  }
}

@media (min-width: 1080px) {
  .plEmailSignupBlock--withFan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(172px, 190px);
    gap: 1.2rem;
    align-items: center;
  }

  .plEmailSignupBlock--withFan .plEmailSignupBlock__text,
  .plEmailSignupBlock--withFan .plEmailSignupBlock__form {
    max-width: 66ch;
  }

  .plEmailSignupBlock__fan {
    position: relative;
    display: block;
    width: 182px;
    height: 250px;
    justify-self: center;
    pointer-events: none;
    filter: drop-shadow(0 22px 34px rgba(14, 20, 40, 0.22));
  }

  .plEmailSignupBlock__fanCard {
    position: absolute;
    width: 138px;
    border-radius: 0.7rem;
    border: 1px solid rgba(24, 24, 36, 0.1);
    background: #fff;
    transform-origin: bottom center;
    backface-visibility: hidden;
  }

  .plEmailSignupBlock__fanCard--letter {
    top: 14px;
    right: 24px;
    z-index: 2;
    transform: rotate(10deg) translateY(0);
    animation: plEmailCardFloatLetter 6s ease-in-out infinite;
  }

  .plEmailSignupBlock__fanCard--book {
    top: 58px;
    right: 56px;
    z-index: 1;
    transform: rotate(-8deg) translateY(0);
    animation: plEmailCardFloatBook 6s ease-in-out infinite;
  }
}

@keyframes plEmailCardFloatLetter {
  0%, 100% { transform: rotate(10deg) translateY(0); }
  50% { transform: rotate(12deg) translateY(-8px); }
}

@keyframes plEmailCardFloatBook {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-10deg) translateY(-10px); }
}

@keyframes plEmailCardFloatLetterMobile {
  0%, 100% { transform: rotate(10deg) translateY(0); }
  50% { transform: rotate(13deg) translateY(-6px); }
}

@keyframes plEmailCardFloatBookMobile {
  0%, 100% { transform: rotate(-11deg) translateY(0); }
  50% { transform: rotate(-13deg) translateY(-7px); }
}
