.otny, .otny *, .otny *::before { box-sizing: border-box; }
.otny [hidden], .otny[hidden] { display: none !important; }
.otny { font-family: Montserrat, "Segoe UI", Arial, sans-serif; }
.otny button { text-transform: none; letter-spacing: normal; min-height: 0; margin: 0; }

/* Гірлянда */
#otny-garland { position: absolute; top: 0; left: 0; width: 100%; height: 78px; overflow: hidden; pointer-events: none; z-index: 99980; }
body.admin-bar #otny-garland { top: 32px; }
#otny-garland svg { display: block; }
.otny-bulb { animation: otny-twinkle 2.4s ease-in-out infinite; }
@keyframes otny-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Санта */
#otny-ride { position: fixed; left: 50%; z-index: 99985; transform: translateX(calc(-50vw - 110%)); visibility: hidden; transition: transform 3.2s cubic-bezier(.2,.7,.25,1), visibility 0s 3.2s; pointer-events: none; }
#otny-ride.otny-in { transform: translateX(-50%); visibility: visible; transition: transform 3.2s cubic-bezier(.2,.7,.25,1); }
.otny-team { display: flex; align-items: flex-end; position: relative; width: max-content; }
.otny-santa { width: 300px; height: 150px; flex: none; overflow: visible; filter: drop-shadow(0 6px 8px rgba(8,24,46,.3)); animation: otny-bob 1.8s ease-in-out infinite; }
.otny-rope { width: 52px; height: 36px; flex: none; margin: 0 -6px 14px -4px; }
.otny .otny-pull { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 290px; margin-bottom: 12px; padding: 14px 22px; border: 3px solid #f5c451; border-radius: 999px; background: linear-gradient(180deg, #e5203a, #b30f24); color: #fff; font: 800 15px/1.3 Montserrat, Arial, sans-serif; text-align: left; cursor: pointer; box-shadow: 0 8px 22px rgba(179,15,36,.45); animation: otny-pulse 2.2s ease-in-out infinite; }
.otny .otny-pull:hover, .otny .otny-pull:focus-visible { background: linear-gradient(180deg, #f0304a, #c9132b); color: #fff; }
.otny-pull-icon { font-size: 24px; line-height: 1; }
.otny .otny-hide { pointer-events: auto; position: absolute; top: 52px; left: -8px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #0b2341; color: #fff; font: 400 18px/28px Arial, sans-serif; cursor: pointer; }
.otny .otny-hide:hover { background: #163a66; color: #fff; }
.otny-wave { transform-origin: 104px 76px; animation: otny-wave 1.3s ease-in-out infinite; }
.otny-nose { animation: otny-twinkle 1.4s infinite; }
.otny-leg-a, .otny-leg-b { transform-box: fill-box; transform-origin: 50% 0; }
.otny-driving .otny-leg-a { animation: otny-run .4s ease-in-out infinite alternate; }
.otny-driving .otny-leg-b { animation: otny-run .4s ease-in-out infinite alternate-reverse; }
@keyframes otny-run { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@keyframes otny-bob { 50% { transform: translateY(-5px); } }
@keyframes otny-wave { 50% { transform: rotate(-16deg); } }
@keyframes otny-pulse { 50% { transform: scale(1.045); box-shadow: 0 10px 30px rgba(245,196,81,.75); } }

.otny#otny-mini { position: fixed; left: 16px; z-index: 99985; width: 56px; height: 56px; padding: 0; border: 3px solid #f5c451; border-radius: 50%; background: #c9132b; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.3); }

/* Модальне вікно */
#otny-modal { position: fixed; inset: 0; z-index: 100000; display: flex; padding: 16px; overflow-y: auto; background: rgba(5,18,36,.72); backdrop-filter: blur(3px); }
.otny-dialog { position: relative; width: 100%; max-width: 480px; margin: auto; border-radius: 22px; overflow: hidden; background: #fff; text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,.45); animation: otny-pop .35s ease-out; }
@keyframes otny-pop { from { opacity: 0; transform: translateY(30px) scale(.95); } }
.otny-head { padding: 26px 0 16px; line-height: 0; border-bottom: 4px solid #f5c451; background-color: #0b2341; background-image: radial-gradient(#fff 1.4px, transparent 2px), radial-gradient(rgba(255,255,255,.6) 1px, transparent 1.6px); background-size: 70px 62px, 43px 47px; background-position: 8px 12px, 30px 30px; }
.otny .otny-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font: 400 24px/36px Arial, sans-serif; cursor: pointer; }
.otny .otny-close:hover { background: rgba(255,255,255,.32); color: #fff; }
.otny-body { padding: 24px 28px 26px; }
.otny .otny-body h2 { margin: 0 0 12px; padding: 0; color: #0b2341; font: 800 25px/1.3 Montserrat, Arial, sans-serif; text-transform: none; letter-spacing: normal; }
.otny .otny-body p { margin: 0 0 22px; color: #44536a; font: 500 16px/1.6 Montserrat, Arial, sans-serif; }
.otny a.otny-cta { display: block; padding: 17px 20px; border-radius: 12px; background: linear-gradient(180deg, #e5203a, #bd1027); color: #fff; font: 800 17px/1.3 Montserrat, Arial, sans-serif; text-decoration: none; box-shadow: 0 8px 20px rgba(201,19,43,.38); transition: transform .15s; }
.otny a.otny-cta:hover, .otny a.otny-cta:focus-visible { color: #fff; transform: translateY(-2px); }
.otny ul.otny-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid #e6eaf0; list-style: none; }
.otny ul.otny-trust li { margin: 0; padding: 0; list-style: none; color: #14532d; font: 600 12px/1.4 Montserrat, Arial, sans-serif; }
.otny ul.otny-trust li::before { content: "✓ "; font-weight: 800; }
.otny button:focus-visible, .otny a:focus-visible { outline: 3px solid #4da3ff; outline-offset: 2px; }

@media (max-width: 782px) { body.admin-bar #otny-garland { top: 46px; } }
@media (max-width: 700px) {
	#otny-garland { height: 56px; }
	.otny-team { flex-direction: column-reverse; align-items: center; width: min(340px, 94vw); }
	.otny-santa { width: 220px; height: 110px; }
	.otny-rope { display: none; }
	.otny .otny-pull { max-width: 100%; margin: 6px 0 0; padding: 11px 18px; font-size: 14px; }
	.otny .otny-hide { left: 4px; top: 20px; }
	.otny-body { padding: 20px 18px 22px; }
	.otny .otny-body h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
	.otny, .otny *, #otny-ride.otny-in { animation: none !important; transition: none !important; }
}
@media print { .otny { display: none !important; } }
