/* Темы открыток. Размеры в cqw — открытка масштабируется под любой экран. */
.card {
  container-type: inline-size; width: 100%; aspect-ratio: 4 / 5; position: relative; overflow: hidden;
  border-radius: 18px; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 7cqw 7cqw 4cqw; font-family: 'Montserrat', sans-serif;
}
.card > * { position: relative; z-index: 2; }
.card .deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.card .kicker { font-size: 3.1cqw; letter-spacing: .3em; text-transform: uppercase; font-weight: 700; }
.card h2 { font-size: 10cqw; line-height: 1.05; margin: 1.6cqw 0 3cqw; font-weight: 400; }
.card .panel { border-radius: 3cqw; padding: 3.6cqw 5cqw; width: 100%; }
.card .poem { font-family: 'Lora', serif; font-size: 3.6cqw; line-height: 1.42; white-space: pre-line; }
.card .foot { font-size: 2.1cqw; letter-spacing: .1em; margin-top: auto; opacity: .8; }
.card .wm { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; pointer-events: none;
  font: 800 9cqw 'Montserrat', sans-serif; color: #ffffff38; transform: rotate(-28deg); letter-spacing: .1em; text-shadow: 0 0 1cqw #0002; }
.card .sp { position: absolute; }

/* winter */
.t-winter { background: linear-gradient(175deg, #142049 0%, #2d3f82 45%, #6d7fc8 85%, #a9b5ea 100%); color: #fff; }
.t-winter .kicker { color: #cfe0ff; }
.t-winter h2 { font-family: 'Marck Script', cursive; font-size: 12cqw; }
.t-winter .panel { background: #ffffff14; border: .25cqw solid #ffffff38; }
.t-winter .deco::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -12cqw; height: 24cqw; background: #eef2ff; border-radius: 50% 50% 0 0; }
.t-winter .foot { color: #24305e; }

/* christmas */
.t-christmas { background: radial-gradient(circle at 50% 12%, #3b7d58 0%, #1a4530 50%, #0d2418 100%); color: #fdf6e3; }
.t-christmas .kicker { color: #f2cd6b; }
.t-christmas h2 { font-family: 'Marck Script', cursive; font-size: 12cqw; color: #f8dd8c; }
.t-christmas .panel { background: #0d241888; border: .25cqw solid #f2cd6b55; }
.t-christmas .deco::before { content: ""; position: absolute; inset: 2.5cqw; border: .4cqw solid #f2cd6b99; border-radius: 2cqw; }
.t-christmas .foot { color: #f8dd8c; }

/* neon */
.t-neon { background: radial-gradient(circle at 50% -10%, #4a2196 0%, #1a1238 55%, #0b0a18 100%); color: #eae6ff; }
.t-neon .kicker { color: #4de1ff; }
.t-neon h2 { font-family: 'Russo One', sans-serif; color: #fff; text-shadow: 0 0 2cqw #8b5cff, 0 0 6cqw #4de1ff88; }
.t-neon .panel { background: #0b0a18cc; border: .35cqw solid #8b5cff; box-shadow: 0 0 3cqw #8b5cff66; }
.t-neon .poem { font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 3.3cqw; }
.t-neon .deco::after { content: ""; position: absolute; left: -20%; right: -20%; bottom: 0; height: 35%;
  background: linear-gradient(#8b5cff55 .2cqw, transparent .2cqw) 0 0/100% 5cqw, linear-gradient(90deg, #4de1ff44 .2cqw, transparent .2cqw) 0 0/6cqw 100%;
  transform: perspective(40cqw) rotateX(55deg); transform-origin: bottom; }

/* cinema */
.t-cinema { background: linear-gradient(165deg, #1e0d17 0%, #4f1d37 45%, #9c3f63 80%, #d06d8c 100%); color: #fff3f6; padding-top: 10cqw; padding-bottom: 9cqw; }
.t-cinema .kicker { color: #ffd38a; }
.t-cinema h2 { font-family: 'Lora', serif; font-style: italic; font-weight: 600; color: #ffe7b0; }
.t-cinema .panel { background: #1e0d1799; border: .3cqw solid #ffd38a66; }
.t-cinema .deco::before, .t-cinema .deco::after { content: ""; position: absolute; left: 0; right: 0; height: 6.5cqw;
  background: repeating-linear-gradient(90deg, #120a0f 0 1.6cqw, #f5e1c8 1.6cqw 4.2cqw, #120a0f 4.2cqw 5.8cqw); background-size: 100% 2.9cqw; background-repeat: repeat-x; background-position: 0 1.8cqw; background-color: #120a0f; }
.t-cinema .deco::before { top: 0; } .t-cinema .deco::after { bottom: 0; }

/* sunny */
.t-sunny { background: linear-gradient(170deg, #ffd66b 0%, #ffab4c 50%, #f2703a 100%); color: #2b1606; }
.t-sunny .kicker { color: #5a2a0a; }
.t-sunny h2 { font-family: 'Russo One', sans-serif; }
.t-sunny .panel { background: #fff7e6d9; border: .35cqw solid #2b1606; }
.t-sunny .poem { font-weight: 600; }
.t-sunny .deco::before { content: ""; position: absolute; left: 50%; top: 10cqw; width: 170cqw; height: 170cqw; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(#ffffff26 0 8deg, transparent 8deg 20deg); border-radius: 50%; }

/* official */
.t-official { background: #fffdf6; color: #1f2430;
  background-image: repeating-linear-gradient(transparent 0 4.7cqw, #c9d6e866 4.7cqw 4.85cqw); }
.t-official .kicker { font-family: 'PT Mono', monospace; letter-spacing: .15em; color: #5a6070; }
.t-official h2 { font-family: 'Lora', serif; font-weight: 600; font-size: 8cqw; }
.t-official .panel { border-left: .6cqw solid #1f2430; border-radius: 0; text-align: center; }
.t-official .deco::before { content: "УТВЕРЖДАЮ"; position: absolute; right: 5cqw; bottom: 9cqw; width: 20cqw; height: 20cqw; border: .7cqw solid #c62f2fcc;
  border-radius: 50%; color: #c62f2fcc; font: 800 2.2cqw 'Montserrat'; display: flex; align-items: center; justify-content: center; transform: rotate(-16deg); }
