/* Стили оформления «valentine» — ktodarit.ru. Общие — /t/core.css. */
:is(.th-valentine, .th-neon, .th-candy, .th-cupid, .th-secret) .tt { --tt-l: 2; }
:is(.th-valentine, .th-neon, .th-candy, .th-cupid, .th-secret) .ph:has(.gift-img) { display: block; overflow: hidden; }
:is(.th-valentine, .th-neon, .th-candy, .th-cupid, .th-secret) .hero { position: relative; overflow: hidden; }
:is(.th-valentine, .th-neon, .th-candy, .th-cupid, .th-secret) h1 { position: relative; overflow-wrap: anywhere; }
:is(.th-valentine, .th-neon, .th-candy, .th-cupid, .th-secret) .greet { position: relative; white-space: pre-line; overflow-wrap: anywhere; }
:is(.th-valentine, .th-neon, .th-candy, .th-cupid, .th-secret) .sec-sub { text-align: center; max-width: 580px; margin: 0 auto 40px; padding: 0 20px; line-height: 1.5; }
:is(.th-valentine, .th-neon, .th-candy, .th-cupid, .th-secret) .list { max-width: 1120px; margin: 0 auto; padding: 14px 20px 70px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 40px 26px; }
:is(.th-valentine, .th-neon, .th-candy, .th-cupid, .th-secret) .card { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
:is(.th-valentine, .th-neon, .th-candy, .th-cupid, .th-secret) .card h3 { width: 100%; overflow-wrap: anywhere; }
:is(.th-valentine, .th-neon, .th-candy, .th-cupid, .th-secret) .card .btn { margin-top: auto; cursor: pointer; }
:is(.th-valentine, .th-neon, .th-candy, .th-cupid, .th-secret) .taken .btn { padding-left: 16px; padding-right: 16px; white-space: nowrap; }
.th-valentine .ht, .th-neon .txt, .th-candy .card0, .th-cupid .txt, .th-secret .in { container-type: inline-size; }
.th-valentine { color: #590d22; font-family: "Nunito", sans-serif; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 100 92'%3E%3Cpath transform='translate(10 10) scale(.22)' d='M50 88 C 20 66 4 48 4 30 C 4 14 16 4 30 4 C 40 4 47 10 50 18 C 53 10 60 4 70 4 C 84 4 96 14 96 30 C 96 48 80 66 50 88Z' fill='%23ffc2d1'/%3E%3Cpath transform='translate(60 55) scale(.14)' d='M50 88 C 20 66 4 48 4 30 C 4 14 16 4 30 4 C 40 4 47 10 50 18 C 53 10 60 4 70 4 C 84 4 96 14 96 30 C 96 48 80 66 50 88Z' fill='%23ffb3c6'/%3E%3C/svg%3E") 0 0 / 80px 80px, linear-gradient(#fff0f3, #ffe5ec); }
.th-valentine .hero { padding: 110px 20px 60px; }
.th-valentine .gar { position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none; }
.th-valentine .gar .str { position: absolute; inset: 0 0 auto; width: 100%; height: 60px; }
.th-valentine .gar i { position: absolute; width: 34px; margin-left: -17px; transform-origin: 50% 0; animation: vl-sw 3s var(--d) ease-in-out infinite alternate; }
.th-valentine .gar i::before { content: ""; position: absolute; left: 50%; top: -8px; width: 1.5px; height: 10px; background: #b5838d; }
.th-valentine .gar svg:not(.str) { display: block; width: 100%; filter: drop-shadow(0 3px 2px rgba(89, 13, 34, .25)); }
@keyframes vl-sw { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.th-valentine .fh { position: absolute; bottom: -40px; left: var(--x); width: var(--s); opacity: .7; animation: vl-up var(--t) var(--d) linear infinite; pointer-events: none; }
.th-valentine .fh svg { display: block; width: 100%; }
@keyframes vl-up { to { transform: translate(40px, -900px) rotate(25deg); opacity: 0; } }
.th-valentine .in { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.th-valentine .vh { position: relative; width: min(560px, 100%); aspect-ratio: 1; display: grid; place-items: center; animation: v14-in .8s backwards; }
.th-valentine .doily { position: absolute; inset: 0; width: 100%; filter: drop-shadow(0 12px 18px rgba(89, 13, 34, .15)); animation: vl-rot 90s linear infinite; }
@keyframes vl-rot { to { transform: rotate(360deg); } }
.th-valentine .bh { position: absolute; left: 10%; top: 13%; width: 80%; filter: drop-shadow(0 18px 18px rgba(164, 22, 26, .35)); animation: v14-beat 2.4s 1s ease-in-out infinite; }
.th-valentine .ht { position: absolute; left: 24%; right: 24%; top: 28%; height: 42%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; }
.th-valentine .pre { margin: 0; font: 400 clamp(20px, 3.4vw, 28px)/1.1 "Marck Script", cursive; color: #ffe5ec; }
.th-valentine h1 { margin: 4px 0 0; font: 400 min(calc(clamp(44px, 7vw, 76px) * max(var(--k, 1), .7)), calc(100cqi / var(--w, 1) / .6))/1.05 "Lobster", cursive; color: #fff; text-shadow: 0 3px 0 #a4161a, 0 6px 14px rgba(89, 13, 34, .4); }
.th-valentine .note { position: relative; z-index: 3; width: min(520px, 100%); margin-top: -20px; padding: 22px 26px; text-align: center; background: #fff; border-radius: 6px; box-shadow: 0 14px 28px rgba(89, 13, 34, .15); transform: rotate(-1deg); animation: v14-in .8s .3s backwards; }
.th-valentine .note::before { content: ""; position: absolute; left: 50%; top: -12px; width: 90px; height: 24px; margin-left: -45px; background: rgba(255, 143, 171, .55); transform: rotate(-3deg); }
.th-valentine .greet { margin: 0 0 14px; font: 400 25px/1.3 "Marck Script", cursive; color: #590d22; }
.th-valentine .cd { display: inline-block; margin: 0; padding: 8px 18px; background: #e5383b; color: #fff; border-radius: 999px; font-weight: 800; font-size: 15px; box-shadow: 0 4px 0 #a4161a; }
.th-valentine .xo { position: absolute; z-index: 3; padding: 6px 14px; border: 3px solid #e5383b; border-radius: 8px; color: #e5383b; font: 400 26px "Lobster", cursive; background: rgba(255, 255, 255, .7); }
.th-valentine .x1 { left: 2%; top: 30%; transform: rotate(-14deg); }
.th-valentine .x2 { right: 3%; top: 58%; transform: rotate(10deg); border-color: #ff8fab; color: #ff8fab; }
.th-valentine .sec { text-align: center; margin: 40px 0 8px; font: 400 clamp(40px, 6vw, 60px)/1.1 "Lobster", cursive; color: #c9184a; text-shadow: 0 3px 0 #ffd6e0; }
.th-valentine .sec-sub { color: #8a4a5a; }
.th-valentine .vc { transform: rotate(var(--r)); transition: transform .25s; filter: drop-shadow(0 10px 14px rgba(89, 13, 34, .18)); }
.th-valentine .vc:hover { transform: rotate(0) translateY(-5px); }
.th-valentine .lace { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; padding: 30px 22px 28px; background: #fff;
  -webkit-mask: radial-gradient(circle 9px at 50% 50%, #000 98%, transparent) 0 0 / 18px 18px round, linear-gradient(#000 0 0) center / calc(100% - 18px) calc(100% - 18px) no-repeat;
  mask: radial-gradient(circle 9px at 50% 50%, #000 98%, transparent) 0 0 / 18px 18px round, linear-gradient(#000 0 0) center / calc(100% - 18px) calc(100% - 18px) no-repeat; }
.th-valentine .no { margin: 0; font: 400 20px "Lobster", cursive; color: #e5383b; }
.th-valentine .vc .ph { position: relative; width: 80%; aspect-ratio: 100 / 92; margin-top: 6px; display: grid; place-items: center; padding-bottom: 8%; font-size: 60px; background: radial-gradient(circle at 40% 35%, #fff, var(--hc));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 88 C 20 66 4 48 4 30 C 4 14 16 4 30 4 C 40 4 47 10 50 18 C 53 10 60 4 70 4 C 84 4 96 14 96 30 C 96 48 80 66 50 88Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 88 C 20 66 4 48 4 30 C 4 14 16 4 30 4 C 40 4 47 10 50 18 C 53 10 60 4 70 4 C 84 4 96 14 96 30 C 96 48 80 66 50 88Z'/%3E%3C/svg%3E") center / contain no-repeat; transition: opacity .3s, filter .3s; }
.th-valentine .vc .ph .gift-img { padding: 14% 18% 22%; background: transparent; }
.th-valentine .vc h3 { margin: 12px 0 6px; font: 800 18px/1.3 "Nunito", sans-serif; color: #590d22; }
.th-valentine .vc .pr { margin: 0 0 16px; font: 400 21px "Lobster", cursive; color: #c9184a; }
.th-valentine .btn { border: 0; border-radius: 999px; padding: 11px 30px; background: #e5383b; color: #fff; font: 800 15px "Nunito", sans-serif; box-shadow: 0 4px 0 #a4161a; transition: transform .15s; }
.th-valentine .btn:hover:not(:disabled) { transform: translateY(-2px); }
.th-valentine .taken .btn { background: #590d22; box-shadow: 0 4px 0 #2b0510; }
.th-valentine .taken .ph { opacity: .5; filter: grayscale(.6); }
.th-valentine .seal { --sr: 10deg; display: none; position: absolute; z-index: 3; right: 4px; top: 44px; width: 100px; pointer-events: none; }
.th-valentine .seal svg { display: block; width: 100%; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); }
.th-valentine .seal b { position: absolute; left: 0; right: 0; top: 24%; text-align: center; color: #fff; font: 800 15px/1.1 "Nunito", sans-serif; text-transform: uppercase; }
.th-valentine .taken .seal { display: block; animation: v14-slam .45s cubic-bezier(.3, 1.4, .5, 1) both; }
.th-valentine footer:not(.ktd-foot) { text-align: center; padding: 10px 16px 50px; font: 400 32px "Lobster", cursive; color: #c9184a; }
@media (max-width: 640px) {
  .th-valentine .hero { padding: 90px 10px 40px; }
  .th-valentine .gar i { width: 24px; margin-left: -12px; }
  .th-valentine .gar i:nth-child(2n+1):not(:first-child) { display: none; }
  .th-valentine .xo { display: none; }
  .th-valentine .list { padding-left: 26px; padding-right: 26px; }
  .th-valentine .note { padding: 18px 16px; }
  .th-valentine .greet { font-size: 22px; }
  .th-valentine .ht { left: 22%; right: 22%; }
}
