/* Стили оформления «tree» — ktodarit.ru. Общие — /t/core.css. */
.th-tree { color: #fff; background: radial-gradient(ellipse 120% 70% at 50% 0%, #1f5a43 0%, #0c2a1f 55%, #071711 100%) fixed; }
.th-tree .garland { display: flex; justify-content: space-around; padding: 0 10px; height: 46px; position: relative; }
.th-tree .garland::before { content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 50px; border-bottom: 2px solid #0a3a24; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.th-tree .garland i { position: relative; width: 12px; height: 18px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; margin-top: 16px; background: var(--c); box-shadow: 0 0 12px var(--c), 0 0 24px var(--c); animation: tr-blink 1.6s ease-in-out infinite; animation-delay: var(--dl); }
.th-tree .garland i:nth-child(odd) { margin-top: 22px; }
@keyframes tr-blink { 50% { opacity: .35; box-shadow: none; } }
.th-tree .hero { min-height: 84vh; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 20px; max-width: 1150px; margin: 0 auto; padding: 10px 20px 40px; }
.th-tree .yr { font: 800 14px "Unbounded", sans-serif; letter-spacing: .4em; color: #f3c860; text-transform: uppercase; }
.th-tree .hero > div:first-child { container-type: inline-size; }
.th-tree h1 { font: italic 900 calc(min(clamp(64px, 12vw, 160px), 23cqi) * var(--k, 1))/.9 "Playfair Display", serif; margin: 14px 0 0; overflow-wrap: anywhere;
  background: linear-gradient(170deg, #fff6d6 10%, #f3c860 45%, #b07a1c 70%, #f8dc8c 90%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 18px rgba(243, 200, 96, .35)); }
.th-tree .sub { font: 700 clamp(26px, 4vw, 40px) "Caveat", cursive; margin: 6px 0 0; color: #e6f5ec; }
.th-tree .greet { font-size: 18px; line-height: 1.55; color: #cfe5d8; max-width: 520px; margin: 22px 0 0; white-space: pre-line; }
.th-tree .ribbon { display: inline-flex; gap: 10px; align-items: center; margin-top: 28px; background: #c8202f; color: #fff; font: 800 15px "Unbounded", sans-serif; padding: 12px 22px; border-radius: 999px; box-shadow: 0 8px 24px rgba(200, 32, 47, .45), inset 0 -3px 0 rgba(0, 0, 0, .2); }
.th-tree .big-tree { width: 100%; max-width: 420px; justify-self: center; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .4)); }
.th-tree .big-tree .star { transform-box: fill-box; transform-origin: center; animation: tr-star 3s ease-in-out infinite; }
@keyframes tr-star { 50% { transform: scale(1.15) rotate(10deg); filter: drop-shadow(0 0 14px #ffd76a); } }
.th-tree .big-tree .bl { animation: tr-blink 2s ease-in-out infinite; }
.th-tree .sec { text-align: center; font: italic 900 clamp(34px, 6vw, 64px) "Playfair Display", serif; color: #f3c860; margin: 40px 0 6px; }
.th-tree .sec-sub { text-align: center; color: #a9cbb8; margin: 0 0 30px; padding: 0 16px; }
.th-tree .balls { max-width: 1150px; margin: 0 auto; padding: 0 16px 50px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px 26px; }
.th-tree .orn { --c1: #ff4d5e; --c2: #8a0f1d; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.th-tree .orn:nth-child(5n+2) { --c1: #ffe08a; --c2: #a8700f; }
.th-tree .orn:nth-child(5n+3) { --c1: #6ec3ff; --c2: #133f8c; }
.th-tree .orn:nth-child(5n+4) { --c1: #e8e8f2; --c2: #6a6c80; }
.th-tree .orn:nth-child(5n+5) { --c1: #c48bff; --c2: #4a1a8a; }
.th-tree .hang { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; animation: tr-swing 4s ease-in-out infinite; animation-delay: var(--dl); }
.th-tree .orn:nth-child(even) .hang::before { height: 46px; }
.th-tree .hang::before { content: ""; width: 1.5px; height: 24px; background: linear-gradient(#f3c860, #b07a1c); }
@keyframes tr-swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.th-tree .cap { width: 26px; height: 14px; border-radius: 4px 4px 2px 2px; background: linear-gradient(90deg, #8a6418, #f8dc8c, #8a6418); position: relative; z-index: 1; }
.th-tree .ball { width: 150px; height: 150px; margin-top: -3px; border-radius: 50%; display: grid; place-items: center; font-size: 62px; position: relative;
  background: radial-gradient(circle at 34% 28%, #fff 0 5%, transparent 22%), radial-gradient(circle at 40% 35%, var(--c1), var(--c2) 75%);
  box-shadow: inset -10px -14px 30px rgba(0, 0, 0, .35), 0 16px 30px rgba(0, 0, 0, .35); transition: transform .3s; }
.th-tree .ball::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-linear-gradient(-30deg, transparent 0 18px, rgba(255, 255, 255, .12) 18px 22px); }
.th-tree .orn:hover .ball { transform: scale(1.05); }
.th-tree .orn h3 { font: 800 18px/1.2 "Manrope", sans-serif; margin: 16px 0 4px; overflow-wrap: anywhere; }
.th-tree .pr { color: #f3c860; font-weight: 700; margin: 0 0 12px; }
.th-tree .btn { border: 2px solid #fff; background: transparent; color: #fff; font-weight: 800; padding: 10px 22px; border-radius: 999px; transition: background .2s, color .2s; }
.th-tree .btn:hover { background: #fff; color: #0c2a1f; }
.th-tree .taken .btn { border-color: #f3c860; color: #f3c860; }
.th-tree .tagz { display: none; position: absolute; top: 60px; right: calc(50% - 100px); background: #c8202f; color: #fff; font: 800 11px "Unbounded", sans-serif; letter-spacing: .12em; padding: 6px 9px; border-radius: 4px; transform: rotate(14deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .35); z-index: 2; }
.th-tree .tagz::before { content: ""; position: absolute; left: -6px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #071711; }
.th-tree .taken .tagz { display: block; animation: tr-tag .5s cubic-bezier(.2, 2, .4, 1); }
.th-tree .taken .ball { filter: saturate(.55) brightness(.85); }
@keyframes tr-tag { from { transform: rotate(60deg) scale(.4); opacity: 0; } }
.th-tree footer:not(.ktd-foot) { text-align: center; padding: 20px 16px; font: italic 700 26px "Playfair Display", serif; color: #f3c860; }
@media (max-width: 760px) {
  .th-tree .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 20px; }
  .th-tree .greet { margin-inline: auto; }
  .th-tree .big-tree { max-width: 220px; order: -1; }
}
.th-tree .ball .gift-img { width: 74%; height: 74%; border-radius: 50%; padding: 9%; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .6), 0 0 0 4px rgba(0, 0, 0, .12); }
.th-poster .tt, .th-party .tt, .th-news .tt, .th-tree .tt { --tt-l: 3; }
