/* Стили оформления «romance» — ktodarit.ru. Общие — /t/core.css. */
:is(.th-romance, .th-polaroid, .th-years, .th-sealed, .th-lines) .tt { --tt-l: 2; }
:is(.th-romance, .th-polaroid, .th-years, .th-sealed, .th-lines) .ph:has(.gift-img) { display: block; overflow: hidden; }
:is(.th-romance, .th-polaroid, .th-years, .th-sealed, .th-lines) .hero { position: relative; text-align: center; overflow: hidden; }
:is(.th-romance, .th-polaroid, .th-years, .th-sealed, .th-lines) h1 { position: relative; overflow-wrap: anywhere; }
:is(.th-romance, .th-polaroid, .th-years, .th-sealed, .th-lines) .greet { position: relative; max-width: 560px; margin: 16px auto 0; line-height: 1.5; white-space: pre-line; }
:is(.th-romance, .th-polaroid, .th-years, .th-sealed, .th-lines) .sec-sub { text-align: center; max-width: 580px; margin: 0 auto 40px; padding: 0 20px; line-height: 1.5; }
:is(.th-romance, .th-polaroid, .th-years, .th-sealed, .th-lines) .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: 36px 26px; }
:is(.th-romance, .th-polaroid, .th-years, .th-sealed, .th-lines) .card { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
:is(.th-romance, .th-polaroid, .th-years, .th-sealed, .th-lines) .card h3 { width: 100%; overflow-wrap: anywhere; }
:is(.th-romance, .th-polaroid, .th-years, .th-sealed, .th-lines) .card .btn { margin-top: auto; }
:is(.th-romance, .th-polaroid, .th-years, .th-sealed, .th-lines) .taken .btn { padding-left: 16px; padding-right: 16px; white-space: nowrap; }
.th-romance .in, .th-polaroid .note, .th-years .in, .th-sealed .letter, .th-lines .in { container-type: inline-size; }
.th-romance { --rose: #f2b8a2; --gold: #d9a05b; background: #2a0410; color: #f8e9e1; font-family: "Cormorant Garamond", serif; }
.th-romance .hero { min-height: 92vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 70px 20px 0; background: radial-gradient(ellipse at 50% 38%, #6b0f27 0%, #3b0716 45%, #1d020a 100%); }
.th-romance .bokeh i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, rgba(255, 190, 150, .32), rgba(255, 190, 150, 0) 70%); animation: rm-bk 7s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
@keyframes rm-bk { 50% { transform: translateY(-18px) scale(1.15); opacity: .45; } }
.th-romance .petals i { position: absolute; top: -30px; width: 16px; height: 12px; background: var(--c); border-radius: 0 70% 0 70%; opacity: .85; animation: rm-pet var(--t) linear infinite; animation-delay: calc(var(--d) * -1); }
@keyframes rm-pet { 0% { transform: translate(0, 0) rotate(0) rotateX(0); } 100% { transform: translate(var(--x), 105vh) rotate(420deg) rotateX(720deg); } }
.th-romance .in { position: relative; z-index: 1; width: 100%; max-width: 900px; margin: auto 0; padding: 30px 0 10px; }
.th-romance .hl { position: absolute; left: 50%; top: 50%; width: min(520px, 96%); transform: translate(-50%, -50%); color: rgba(242, 184, 162, .3); z-index: -1; overflow: visible; }
.th-romance .hl path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: rm-draw 3s .3s ease forwards; }
@keyframes rm-draw { to { stroke-dashoffset: 0; } }
.th-romance .pre { margin: 0; font: italic 600 clamp(20px, 2.4vw, 26px) "Cormorant Garamond", serif; letter-spacing: .12em; color: var(--rose); }
.th-romance h1 { margin: 6px 0 0; font: 400 min(calc(clamp(60px, 12vw, 150px) * max(var(--k, 1), .7)), calc(100cqi / var(--w, 1) / .58))/1.12 "Marck Script", cursive; color: #fff3ea; text-shadow: 0 0 30px rgba(255, 160, 130, .45), 0 3px 0 #7a0c22; }
.th-romance .date { margin: 8px 0 0; font: 600 18px "Cormorant Garamond", serif; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }
.th-romance .greet { font-size: 21px; }
.th-romance .cd { display: inline-block; margin: 20px 0 0; padding: 6px 24px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); font: italic 600 22px "Cormorant Garamond", serif; color: #ffd9a0; }
.th-romance .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: #2a0610; }
.th-romance .table { position: relative; display: block; width: min(1000px, 100%); height: auto; aspect-ratio: 5; margin-top: 10px; }
.th-romance .table .fl { transform-box: fill-box; transform-origin: 50% 100%; animation: rm-fl .9s ease-in-out infinite alternate; }
.th-romance .table .cdl:nth-child(2n) .fl { animation-duration: .7s; animation-delay: -.3s; }
.th-romance .table .cdl:nth-child(3n) .fl { animation-duration: 1.1s; }
@keyframes rm-fl { 0% { transform: scale(1, 1) rotate(-3deg); } 100% { transform: scale(.9, 1.12) rotate(3deg); } }
.th-romance .table .glow { animation: rm-glow 1.6s ease-in-out infinite alternate; }
@keyframes rm-glow { to { opacity: .55; } }
.th-romance .table .gl { transform-box: fill-box; transform-origin: 50% 100%; animation: rm-clink 5s ease-in-out infinite; }
@keyframes rm-clink { 0%, 30%, 70%, 100% { transform: rotate(0); } 42%, 50% { transform: rotate(9deg); } }
.th-romance .table .spark { transform-box: fill-box; transform-origin: center; opacity: 0; animation: rm-spark 5s ease-in-out infinite; }
@keyframes rm-spark { 0%, 40%, 60%, 100% { opacity: 0; transform: scale(.3); } 47% { opacity: 1; transform: scale(1.2) rotate(45deg); } }
.th-romance .sec { text-align: center; margin: 50px 0 8px; font: 400 clamp(40px, 6vw, 64px) "Marck Script", cursive; color: #ffd9c9; }
.th-romance .sec-sub { font-size: 19px; opacity: .85; }
.th-romance .rc { padding: 40px 22px 26px; border-radius: 200px 200px 18px 18px; background: linear-gradient(165deg, #5e0d24, #3b0716 70%); box-shadow: inset 0 0 0 1px rgba(217, 160, 91, .65), inset 0 0 0 7px #3f0818, inset 0 0 0 8px rgba(217, 160, 91, .3), 0 26px 40px -24px #000; }
.th-romance .ph { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; font-size: 64px; background: radial-gradient(circle at 40% 35%, #fff3ea, #f2d2c4); box-shadow: 0 0 0 4px rgba(217, 160, 91, .75), 0 0 30px rgba(255, 160, 130, .3); }
.th-romance .ph .gift-img { border-radius: 50%; padding: 12%; }
.th-romance .rc h3 { margin: 18px 0 0; font: 600 23px/1.2 "Cormorant Garamond", serif; }
.th-romance .pr { margin: 6px 0 16px; color: var(--gold); font: 700 20px "Cormorant Garamond", serif; }
.th-romance .btn { border: 0; background: linear-gradient(180deg, #f8d3c3, #d98a78); color: #3b0716; font: 800 14px "Manrope", sans-serif; letter-spacing: .14em; text-transform: uppercase; padding: 13px 30px; border-radius: 999px; box-shadow: 0 8px 22px -8px rgba(242, 184, 162, .7); }
.th-romance .taken .btn { background: transparent; color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); }
.th-romance .taken .ph { opacity: .5; }
.th-romance .rose { position: absolute; top: 112px; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 2px; transform: translateX(-50%) scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.th-romance .rose svg { width: 56px; filter: drop-shadow(0 4px 10px rgba(229, 72, 77, .6)); animation: rm-beat 1.4s ease-in-out infinite; }
.th-romance .rose span { padding: 2px 14px; border-radius: 999px; background: #a3172b; color: #fff; font: italic 700 19px "Cormorant Garamond", serif; white-space: nowrap; }
.th-romance .taken .rose { transform: translateX(-50%) scale(1); }
@keyframes rm-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
.th-romance footer:not(.ktd-foot) { text-align: center; padding: 10px 16px 44px; font: 400 34px "Marck Script", cursive; color: var(--rose); }
@media (max-width: 640px) {
  .th-romance .hero { min-height: 0; padding-top: 50px; }
  .th-romance .table { height: 170px; aspect-ratio: auto; }
}
