/* Стили оформления «plan» — ktodarit.ru. Общие — /t/core.css. */
:is(.th-plan, .th-boxes, .th-cozy, .th-nordic, .th-keys, .th-loft) .tt { --tt-l: 2; }
:is(.th-plan, .th-boxes, .th-cozy, .th-nordic, .th-keys, .th-loft) .ph:has(.gift-img) { display: block; overflow: hidden; }
:is(.th-plan, .th-boxes, .th-cozy, .th-nordic, .th-keys, .th-loft) .hero { position: relative; text-align: center; overflow: hidden; }
:is(.th-plan, .th-boxes, .th-cozy, .th-nordic, .th-keys, .th-loft) h1 { position: relative; overflow-wrap: anywhere; }
:is(.th-plan, .th-boxes, .th-cozy, .th-nordic, .th-keys, .th-loft) .greet { position: relative; max-width: 560px; margin: 18px auto 0; line-height: 1.55; white-space: pre-line; }
:is(.th-plan, .th-boxes, .th-cozy, .th-nordic, .th-keys, .th-loft) .sec-sub { text-align: center; max-width: 580px; margin: 0 auto 40px; padding: 0 20px; line-height: 1.5; }
:is(.th-plan, .th-boxes, .th-cozy, .th-nordic, .th-keys, .th-loft) .list { max-width: 1120px; margin: 0 auto; padding: 0 20px 70px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 32px 26px; }
:is(.th-plan, .th-boxes, .th-cozy, .th-nordic, .th-keys, .th-loft) .card { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
:is(.th-plan, .th-boxes, .th-cozy, .th-nordic, .th-keys, .th-loft) .card h3 { width: 100%; overflow-wrap: anywhere; }
:is(.th-plan, .th-boxes, .th-cozy, .th-nordic, .th-keys, .th-loft) .card .btn { margin-top: auto; }
:is(.th-plan, .th-boxes, .th-cozy, .th-nordic, .th-keys, .th-loft) .taken .btn { padding-left: 18px; padding-right: 18px; white-space: nowrap; }
.th-plan { --bg: #1f4f8a; --ink: #eaf2ff; --y: #ffd166; background: var(--bg); color: var(--ink); font-family: "Manrope", sans-serif;
  background-image: linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px; }
.th-plan .hero { padding: clamp(50px, 8vh, 90px) 20px 40px; }
.th-plan .pre { margin: 0; font: 400 14px "JetBrains Mono", monospace; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.th-plan .hero, .th-loft .panel { container-type: inline-size; }
.th-plan h1 { margin: 12px 0 0; font: 800 min(calc(clamp(52px, 10vw, 120px) * max(var(--k, 1), .5)), calc(100cqi / var(--w, 1) / 1.02))/1.05 "Unbounded", sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.th-plan .date { margin: 12px 0 0; font: 400 16px "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.th-plan .greet { font-size: 17px; opacity: .9; }
.th-plan .cd { display: inline-block; margin: 18px 0 0; padding: 7px 16px; border: 1.5px dashed var(--y); font: 800 16px "JetBrains Mono", monospace; color: var(--y); }
.th-plan .sheet { position: relative; max-width: 860px; margin: 36px auto 0; padding: 20px 20px 0; border: 2px solid rgba(234, 242, 255, .8); box-shadow: inset 0 0 0 6px var(--bg), inset 0 0 0 7px rgba(234, 242, 255, .35); }
.th-plan .plan { display: block; width: 100%; color: var(--ink); }
.th-plan .plan .walls path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: pl-draw 2.4s ease-out .3s forwards; }
@keyframes pl-draw { to { stroke-dashoffset: 0; } }
.th-plan .plan .t, .th-plan .plan .lb text { font: 400 13px "JetBrains Mono", monospace; fill: var(--ink); letter-spacing: .08em; }
.th-plan .plan .lb tspan { fill: var(--y); font-size: 11px; }
.th-plan .plan .in { fill: var(--y); }
.th-plan .plan .heart { animation: pl-beat 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pl-beat { 50% { transform: scale(1.18); } }
.th-plan .stamp { display: grid; grid-template-columns: repeat(4, auto); margin: 6px -20px 0 auto; width: max-content; max-width: calc(100% + 20px); border-top: 2px solid rgba(234, 242, 255, .8); border-left: 2px solid rgba(234, 242, 255, .8); text-align: left; }
.th-plan .stamp div { padding: 6px 12px; border-right: 1px solid rgba(234, 242, 255, .5); min-width: 0; }
.th-plan .stamp span { display: block; font: 400 10px "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.th-plan .stamp b { display: block; font: 800 13px "JetBrains Mono", monospace; overflow-wrap: anywhere; }
.th-plan .sec { text-align: center; margin: 40px 0 8px; font: 800 clamp(28px, 4.4vw, 46px) "Unbounded", sans-serif; text-transform: uppercase; }
.th-plan .sec-sub { opacity: .85; }
.th-plan .bp { padding: 18px 20px 22px; border: 1.5px solid rgba(234, 242, 255, .8); background: rgba(10, 40, 80, .35);
  background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink));
  background-size: 14px 2px, 2px 14px, 14px 2px, 2px 14px; background-position: -4px 8px, 8px -4px, calc(100% + 4px) calc(100% - 8px), calc(100% - 8px) calc(100% + 4px); background-repeat: no-repeat; }
.th-plan .pos { align-self: flex-start; margin: 0 0 10px; font: 400 12px "JetBrains Mono", monospace; letter-spacing: .2em; color: var(--y); }
.th-plan .ph { width: 100%; height: 150px; display: grid; place-items: center; font-size: 62px; border: 1px dashed rgba(234, 242, 255, .6); background: rgba(255, 255, 255, .06); }
.th-plan .ph .gift-img { padding: 8px; background: #fff; }
.th-plan .bp h3 { margin: 14px 0 0; font: 700 18px/1.3 "Manrope", sans-serif; }
.th-plan .pr { margin: 6px 0 14px; font: 400 15px "JetBrains Mono", monospace; color: var(--y); }
.th-plan .btn { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 800 14px "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; padding: 10px 22px; }
.th-plan .btn:hover { background: var(--ink); color: var(--bg); }
.th-plan .taken .ph { opacity: .45; }
.th-plan .taken .btn { border-style: dashed; opacity: .85; }
.th-plan .ok { display: none; position: absolute; top: 70px; left: 50%; transform: translateX(-50%) rotate(-8deg); padding: 6px 14px; border: 3px double var(--y); color: var(--y); background: rgba(31, 79, 138, .9); font: 800 15px "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.th-plan .taken .ok { display: block; animation: bb-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.th-plan footer:not(.ktd-foot) { text-align: center; padding: 10px 16px 40px; font: 400 13px "JetBrains Mono", monospace; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
@media (max-width: 640px) {
  .th-plan .stamp { grid-template-columns: repeat(2, minmax(0, 1fr)); width: auto; margin-right: -20px; }
  .th-plan .sheet { padding: 10px 10px 0; }
  .th-plan .stamp { margin-right: -10px; }
  .th-plan .sec { font-size: 24px; padding: 0 12px; }
}
