/* The original icon emits expanding contours; it stays physically anchored. */
.closing-box {
  --closing-ink: #272b33;
  --closing-copy: #606874;
  --closing-red: #d92332;
  padding: 78px 0 104px;
  color: var(--closing-ink);
}
.closing-box *, .closing-box *::before, .closing-box *::after { box-sizing: border-box; }
.closing-box__panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 28px;
  width: min(1240px, calc(100% - 96px));
  min-height: 456px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 32px;
  background: linear-gradient(120deg, #f0f3f7 0%, #f7f8fa 44%, #fafbfc 73%, #f7f8fa 100%);
  box-shadow: inset 0 2px 2px #fff, inset 0 -2px 3px #cbd2dc45, 0 24px 44px -32px #66748b52;
}
.closing-box__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid #fff8;
  border-radius: inherit;
  z-index: 2;
}
.closing-box__copy { position: relative; z-index: 1; padding: 60px 62px 62px 0; }
.closing-box__copy h2 {
  max-width: 510px;
  margin: 0;
  font-family: Archivo, Arial, sans-serif;
  font-size: clamp(35px, 3.55vw, 49px);
  line-height: 1.09;
  letter-spacing: -.035em;
  font-weight: 460;
  text-wrap: balance;
}
.closing-box__copy > p { max-width: 385px; margin: 23px 0 29px; font-size: 16px; line-height: 1.7; color: var(--closing-copy); text-wrap: pretty; }
.closing-box__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.closing-box__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 26px;
  border: 1px solid #c51b2c;
  border-radius: 14px;
  background: linear-gradient(155deg, #df3041, var(--closing-red) 65%, #c51b2c);
  box-shadow: inset 0 1px 2px #ffacb57a, inset 0 -2px 3px #a71a2738, 0 4px 9px #a81d3126;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(.16, 1, .3, 1), box-shadow 220ms cubic-bezier(.16, 1, .3, 1);
}
.closing-box__primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 2px #ffacb57a, inset 0 -2px 3px #a71a2738, 0 8px 20px #a81d3136; }
.closing-box__primary:active { transform: translateY(0); }
.closing-box__secondary { min-height: 44px; display: inline-flex; align-items: center; padding-block: 11px; color: #454d58; font-size: 13px; line-height: 1.5; font-weight: 500; text-decoration: underline; text-decoration-color: #a8b0bb; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.closing-box__secondary:hover { color: #a81928; text-decoration-color: #d92332; }
.closing-box__primary:focus-visible, .closing-box__secondary:focus-visible { outline: 3px solid #d92332; outline-offset: 5px; }
.closing-box__art { position: relative; width: 100%; height: 456px; perspective: 900px; pointer-events: none; overflow: hidden; mask-image: linear-gradient(transparent, #000 8%, #000 86%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 86%, transparent); }
.closing-box__waves {position:absolute;width:590px;height:470px;left:50%;top:50%;transform:translate(-50%,-50%);max-width:none;overflow:visible}
.closing-box__wave {stroke:#ce3449;stroke-width:1.5;transform-origin:295px 235px;animation:closing-emission 5.4s linear infinite;animation-play-state:paused;opacity:0}
.closing-box__wave--second {animation-delay:-1.8s;stroke:#879aac;stroke-width:1.3}
.closing-box__wave--third {animation-delay:-3.6s}
@keyframes closing-emission {0%{transform:scale(.76);opacity:0}15%{opacity:.7}65%{opacity:.45}100%{transform:scale(1.85);opacity:0}}
.closing-box__ground { position: absolute; width: 227px; height: 36px; left: 50%; top: 50%; margin: 131px 0 0 -102px; transform: rotate(-10deg); border-radius: 50%; background: #8c9caf2b; filter: blur(17px); }
.closing-box__tile {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 211px;
  height: 211px;
  margin: -111px 0 0 -101px;
  transform: rotateX(7deg) rotateY(-12deg) rotateZ(-11deg);
  transform-style: preserve-3d;
  border-radius: 51px;
  box-shadow: 8px 11px 1px #d2d8e2, 9px 12px 0 #fff, 18px 26px 24px -9px #6b799342;
}
.closing-box__face {
  position: absolute;
  inset: 0;
  border: 1px solid #fff;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(138deg, #fff 13%, #f7f8fa 47%, #dde2e9 94%);
  box-shadow: inset 3px 3px 5px #fff, inset -3px -3px 5px #b2bdcd57;
}
.closing-box__face::before { content: ''; position: absolute; inset: 3px; border: 1px solid #ffffffe6; border-radius: 48px; pointer-events: none; }
.closing-box__face::after { content: ''; position: absolute; inset: -35%; background: linear-gradient(110deg, transparent 28%, #fff0 34%, #fff3 46%, #fff5 50%, #fff2 58%, transparent 72%); transform: translateX(-75%); animation: closing-reflection 14s cubic-bezier(.45, 0, .55, 1) infinite alternate; animation-delay: -5s; animation-play-state: paused; }
.closing-box__face img { display: block; width: 100%; height: 100%; object-fit: contain; }
.closing-box__art[data-closing-running] .closing-box__wave,
.closing-box__art[data-closing-running] .closing-box__face::after { animation-play-state: running; }
@keyframes closing-reflection { from { transform: translateX(-75%); } to { transform: translateX(75%); } }
@media (max-width: 1050px) {
  .closing-box { padding: 62px 0 80px; }
  .closing-box__panel { width: calc(100% - 64px); gap: 20px; min-height: 412px; grid-template-columns: .95fr 1.1fr; }
  .closing-box__copy { padding: 46px 39px 48px 0; }
  .closing-box__copy h2 { font-size: clamp(34px, 4.05vw, 43px); }
  .closing-box__copy > p { font-size: 15px; margin-block: 21px 25px; }
  .closing-box__art { height: 412px; }
  .closing-box__waves { width: 515px; height: 410px; }
  .closing-box__tile { width: 181px; height: 181px; margin: -97px 0 0 -87px; border-radius: 44px; }
  .closing-box__face::before { border-radius: 41px; }
  .closing-box__ground { width: 190px; margin-left: -89px; margin-top: 111px; }
  .closing-box__actions { gap: 7px 18px; }
  .closing-box__primary { padding-inline: 23px; font-size: 13px; }
  .closing-box__secondary { font-size: 12px; }
}
@media (max-width: 720px) {
  .closing-box { padding: 43px 0 63px; }
  .closing-box__panel { display: flex; flex-direction: column; width: calc(100% - 40px); gap: 0; border-radius: 27px; }
  .closing-box__art { height: 266px; flex: none; }
  .closing-box__waves { width: 495px; height: 394px; }
  .closing-box__tile { width: 150px; height: 150px; margin: -78px 0 0 -73px; border-radius: 38px; box-shadow: 6px 9px 1px #d2d8e2, 7px 10px 0 #fff, 15px 21px 22px -9px #6b799342; }
  .closing-box__face::before { border-radius: 35px; }
  .closing-box__ground { width: 160px; height: 22px; margin-top: 89px; margin-left: -74px; filter: blur(13px); }
  .closing-box__copy { width: 100%; text-align: center; padding: 7px 30px 43px; }
  .closing-box__copy h2 { font-size: clamp(33px, 8.4vw, 43px); max-width: 490px; margin-inline: auto; }
  .closing-box__copy > p { max-width: 330px; margin: 20px auto 25px; line-height: 1.7; }
  .closing-box__actions { justify-content: center; gap: 8px 19px; }
}
@media (max-width: 370px) {
  .closing-box__panel { width: calc(100% - 32px); }
  .closing-box__copy { padding-inline: 22px; padding-bottom: 35px; }
  .closing-box__copy h2 { font-size: 31px; }
  .closing-box__copy > p { font-size: 14px; }
  .closing-box__actions { flex-direction: column; gap: 3px; }
  .closing-box__art { height: 245px; }
}
@media (prefers-reduced-motion: reduce) {
  .closing-box__wave, .closing-box__face::after { animation: none; }
  .closing-box__wave {opacity:.22;transform:scale(1.2)}
  .closing-box__wave--second,.closing-box__wave--third{display:none}
  .closing-box__face::after { display: none; }
  .closing-box__primary { transition: none; }
  .closing-box__primary:hover, .closing-box__primary:active { transform: none; }
}
.keyboard-input .closing-box__primary { transition: none; }
@media (forced-colors: active) {
  .closing-box__panel, .closing-box__primary { border: 1px solid CanvasText; }
  .closing-box__art { display: none; }
  .closing-box__panel { display: block; }
  .closing-box__copy { padding: 45px; }
}
