/* =========================================================
   Temka Data — улирлын чимэглэл (promo.js-ийн html анги дээр ажиллана)
   html.halloween : 11/15-ныг дуустал
   html.newyear   : 11/16 – 12/31
   Брэнд өнгө хэвээр; чимэглэл нь зөвхөн нэмэлт.
   ========================================================= */

/* --- Үе шатаар харагдах элементүүд --- */
html:not(.halloween) .only-hw{display:none!important}
html:not(.newyear) .only-ny{display:none!important}
html:not(.promo) .only-promo{display:none!important}
html.promo .only-base{display:none!important}

/* --- Дээд зурвас --- */
.promo-bar{display:none;font-size:.88rem;font-weight:700;text-align:center;padding:9px 16px;text-decoration:none;color:#fff}
.promo-bar s{opacity:.65}
.promo-bar u{text-underline-offset:3px}
html.halloween .promo-bar.bar-hw{display:block;background:linear-gradient(90deg,#1E1030,#2B1240 50%,#1E1030)}
html.newyear .promo-bar.bar-ny{display:block;background:linear-gradient(90deg,#0B3D24,#107C41 50%,#0B3D24)}
html.newyear .promo-bar.bar-ny b{color:#FFE27A}
@media (max-width:560px){.promo-bar .hw-x{display:none}}

/* --- ШИНЭ шошго --- */
html.halloween .tag.new{background:#E8701A}
html.halloween .tag.new::before{content:"🎃 "}
html.newyear .tag.new::before{content:"🎄 "}

/* --- Чимэглэлийн суурь --- */
.hw{display:none}
html.halloween .hw,html.newyear .hw{display:block;position:absolute;pointer-events:none;background-repeat:no-repeat;background-position:center;background-size:contain;z-index:3}
html.halloween header,html.newyear header{position:relative}

/* --- Halloween --- */
  .hw-web{width:92px;height:92px;top:0;right:0;background-image:url('data:image/svg+xml;utf8,%3Csvg%20viewBox%3D%220%200%20100%20100%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M100%200L-30.0%200.0M100%200L-19.7%2050.8M100%200L8.1%2091.9M100%200L49.2%20119.7M100%200L100.0%20130.0M78.0%200.0Q82.3%203.6%2079.7%208.6Q85.0%2010.1%2084.4%2015.6Q89.9%2015.0%2091.4%2020.3Q96.4%2017.7%20100.0%2022.0M58.0%200.0Q66.3%206.9%2061.3%2016.4Q71.4%2019.3%2070.3%2029.7Q80.7%2028.6%2083.6%2038.7Q93.1%2033.7%20100.0%2042.0M36.0%200.0Q48.6%2010.5%2041.1%2025.0Q56.5%2029.3%2054.7%2045.3Q70.7%2043.5%2075.0%2058.9Q89.5%2051.4%20100.0%2064.0M12.0%200.0Q29.3%2014.4%2019.0%2034.4Q40.2%2040.4%2037.8%2062.2Q59.6%2059.8%2065.6%2081.0Q85.6%2070.7%20100.0%2088.0%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.8%22%20stroke-width%3D%221.1%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E')}
  .hw-web.l{right:auto;left:0;transform:scaleX(-1)}
  .hw-spider{width:28px;height:84px;top:-26px;right:44px;background-image:url('data:image/svg+xml;utf8,%3Csvg%20viewBox%3D%220%200%2040%20120%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cline%20x1%3D%2220%22%20y1%3D%220%22%20x2%3D%2220%22%20y2%3D%2292%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.85%22%20stroke-width%3D%221%22/%3E%3Cg%20stroke%3D%22%23111%22%20stroke-width%3D%222.2%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M14%2096%206%2088%202%2094M14%20100%204%2098%201%20104M14%20104%205%20108%203%20115M15%20107%209%20115%209%20119M26%2096%2034%2088%2038%2094M26%20100%2036%2098%2039%20104M26%20104%2035%20108%2037%20115M25%20107%2031%20115%2031%20119%22/%3E%3C/g%3E%3Cellipse%20cx%3D%2220%22%20cy%3D%22104%22%20rx%3D%228%22%20ry%3D%229.5%22%20fill%3D%22%23111%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.5%22/%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2293%22%20r%3D%225%22%20fill%3D%22%23111%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.5%22/%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2292.5%22%20r%3D%221.2%22%20fill%3D%22%23ff3b3b%22/%3E%3Ccircle%20cx%3D%2222%22%20cy%3D%2292.5%22%20r%3D%221.2%22%20fill%3D%22%23ff3b3b%22/%3E%3C/svg%3E');animation:hwdrop 4.5s ease-in-out infinite}
  .hw-spider.l{right:auto;left:46px;animation-delay:-2s}
  @keyframes hwdrop{0%,100%{transform:translateY(0)}50%{transform:translateY(16px)}}
  .hw-pump{width:46px;height:40px;bottom:8px;left:10px;background-image:url('data:image/svg+xml;utf8,%3Csvg%20viewBox%3D%220%200%2064%2056%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M31%2010c0-5%202-8%206-9%22%20stroke%3D%22%232F6B2A%22%20stroke-width%3D%224%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22/%3E%3Cellipse%20cx%3D%2220%22%20cy%3D%2233%22%20rx%3D%2215%22%20ry%3D%2220%22%20fill%3D%22%23E8701A%22/%3E%3Cellipse%20cx%3D%2244%22%20cy%3D%2233%22%20rx%3D%2215%22%20ry%3D%2220%22%20fill%3D%22%23E8701A%22/%3E%3Cellipse%20cx%3D%2232%22%20cy%3D%2233%22%20rx%3D%2214%22%20ry%3D%2221%22%20fill%3D%22%23F7871F%22/%3E%3Cpath%20d%3D%22M20%2027l6%206h-9zM44%2027l-6%206h9z%22%20fill%3D%22%233A1A05%22/%3E%3Cpath%20d%3D%22M19%2040q13%2010%2026%200l-4%201-2%203-3-3-4%203-3-3-3%203-2-3z%22%20fill%3D%22%233A1A05%22/%3E%3C/svg%3E');filter:drop-shadow(0 3px 4px rgba(0,0,0,.35))}
  .hw-pump.r{left:auto;right:12px}
  .hw-ghost{width:44px;height:53px;background-image:url('data:image/svg+xml;utf8,%3Csvg%20viewBox%3D%220%200%2060%2072%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M30%202C14%202%206%2014%206%2030v38l8-6%208%207%208-7%208%207%208-7%208%206V30C54%2014%2046%202%2030%202z%22%20fill%3D%22%23fff%22%20stroke%3D%22%231B2A23%22%20stroke-opacity%3D%22.18%22%20stroke-width%3D%222%22/%3E%3Cellipse%20cx%3D%2222%22%20cy%3D%2228%22%20rx%3D%224%22%20ry%3D%226%22%20fill%3D%22%231B2A23%22/%3E%3Cellipse%20cx%3D%2238%22%20cy%3D%2228%22%20rx%3D%224%22%20ry%3D%226%22%20fill%3D%22%231B2A23%22/%3E%3Cellipse%20cx%3D%2230%22%20cy%3D%2244%22%20rx%3D%225%22%20ry%3D%226%22%20fill%3D%22%231B2A23%22/%3E%3C/svg%3E');filter:drop-shadow(0 6px 10px rgba(27,42,35,.18));animation:hwfloat 5s ease-in-out infinite}
  @keyframes hwfloat{0%,100%{transform:translate(0,0) rotate(-5deg)}50%{transform:translate(-14px,-10px) rotate(5deg)}}
  @media (prefers-reduced-motion:reduce){.hw-spider,.hw-ghost{animation:none}}
.hw-ghost{animation:hwfloat 5s ease-in-out infinite}
.hw-spider{animation:hwdrop 4.5s ease-in-out infinite}

/* --- Шинэ жил --- */
.ny-flakes{width:86px;height:86px;top:4px;right:4px;background-image:url('data:image/svg+xml;utf8,%3Csvg%20viewBox%3D%220%200%20100%20100%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cg%20transform%3D%22translate%2852%202%29%20scale%28.42%29%22%3E%3Cpath%20d%3D%22M50%206v88M12%2028l76%2044M12%2072l76-44M50%206l-8%2010M50%206l8%2010M50%2094l-8-10M50%2094l8-10M12%2028l12%201M12%2028l5%2011M88%2072l-12-1M88%2072l-5-11M12%2072l12-1M12%2072l5-11M88%2028l-12%201M88%2028l-5%2011%22%20stroke%3D%22%23fff%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%2818%2030%29%20scale%28.26%29%22%20opacity%3D%22.85%22%3E%3Cpath%20d%3D%22M50%206v88M12%2028l76%2044M12%2072l76-44M50%206l-8%2010M50%206l8%2010M50%2094l-8-10M50%2094l8-10M12%2028l12%201M12%2028l5%2011M88%2072l-12-1M88%2072l-5-11M12%2072l12-1M12%2072l5-11M88%2028l-12%201M88%2028l-5%2011%22%20stroke%3D%22%23fff%22%20stroke-width%3D%228%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%2866%2052%29%20scale%28.2%29%22%20opacity%3D%22.7%22%3E%3Cpath%20d%3D%22M50%206v88M12%2028l76%2044M12%2072l76-44M50%206l-8%2010M50%206l8%2010M50%2094l-8-10M50%2094l8-10M12%2028l12%201M12%2028l5%2011M88%2072l-12-1M88%2072l-5-11M12%2072l12-1M12%2072l5-11M88%2028l-12%201M88%2028l-5%2011%22%20stroke%3D%22%23fff%22%20stroke-width%3D%229%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22/%3E%3C/g%3E%3C/svg%3E')}
.ny-bauble{width:26px;height:78px;top:-30px;right:54px;background-image:url('data:image/svg+xml;utf8,%3Csvg%20viewBox%3D%220%200%2040%20120%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cline%20x1%3D%2220%22%20y1%3D%220%22%20x2%3D%2220%22%20y2%3D%2280%22%20stroke%3D%22%23E9D9A6%22%20stroke-width%3D%221.2%22/%3E%3Crect%20x%3D%2215%22%20y%3D%2278%22%20width%3D%2210%22%20height%3D%228%22%20rx%3D%222%22%20fill%3D%22%23D4AF37%22/%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%22100%22%20r%3D%2216%22%20fill%3D%22%23C00000%22/%3E%3Cpath%20d%3D%22M6%2096q14%208%2028%200%22%20stroke%3D%22%23F6D77A%22%20stroke-width%3D%222.4%22%20fill%3D%22none%22/%3E%3Cpath%20d%3D%22M5%20104q15%208%2030%200%22%20stroke%3D%22%23F6D77A%22%20stroke-width%3D%221.6%22%20fill%3D%22none%22%20opacity%3D%22.8%22/%3E%3Cellipse%20cx%3D%2213.5%22%20cy%3D%2293%22%20rx%3D%224%22%20ry%3D%225.5%22%20fill%3D%22%23fff%22%20opacity%3D%22.45%22/%3E%3C/svg%3E');transform-origin:50% 0;animation:nyswing 3.6s ease-in-out infinite}
@keyframes nyswing{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(7deg)}}
.ny-tree{width:50px;height:62px;bottom:6px;right:10px;background-image:url('data:image/svg+xml;utf8,%3Csvg%20viewBox%3D%220%200%2080%20100%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Crect%20x%3D%2234%22%20y%3D%2282%22%20width%3D%2212%22%20height%3D%2214%22%20rx%3D%222%22%20fill%3D%22%237A4A22%22/%3E%3Cpath%20d%3D%22M40%2010%2064%2044H52L72%2068H58L78%2086H2L22%2068H8L28%2044H16Z%22%20fill%3D%22%230F7A3E%22/%3E%3Cpath%20d%3D%22M40%2010%2064%2044H52L72%2068H58L78%2086H40Z%22%20fill%3D%22%230B5C30%22/%3E%3Cpath%20d%3D%22M40%202l2.6%206%206.4.4-5%204%201.7%206.2L40%2015l-5.7%203.6%201.7-6.2-5-4%206.4-.4z%22%20fill%3D%22%23F5C518%22/%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%2240%22%20r%3D%223.4%22%20fill%3D%22%23C00000%22/%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2256%22%20r%3D%223.4%22%20fill%3D%22%23F5C518%22/%3E%3Ccircle%20cx%3D%2226%22%20cy%3D%2272%22%20r%3D%223.4%22%20fill%3D%22%23fff%22/%3E%3Ccircle%20cx%3D%2256%22%20cy%3D%2276%22%20r%3D%223.4%22%20fill%3D%22%23C00000%22/%3E%3Ccircle%20cx%3D%2242%22%20cy%3D%2266%22%20r%3D%223%22%20fill%3D%22%237CC4F2%22/%3E%3C/svg%3E');filter:drop-shadow(0 3px 4px rgba(0,0,0,.3))}
.ny-gift{width:46px;height:43px;background-image:url('data:image/svg+xml;utf8,%3Csvg%20viewBox%3D%220%200%2064%2060%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Crect%20x%3D%226%22%20y%3D%2222%22%20width%3D%2252%22%20height%3D%2236%22%20rx%3D%223%22%20fill%3D%22%23C00000%22/%3E%3Crect%20x%3D%222%22%20y%3D%2214%22%20width%3D%2260%22%20height%3D%2212%22%20rx%3D%223%22%20fill%3D%22%23E01E1E%22/%3E%3Crect%20x%3D%2228%22%20y%3D%2214%22%20width%3D%228%22%20height%3D%2244%22%20fill%3D%22%23F5C518%22/%3E%3Cpath%20d%3D%22M32%2014C24%202%2012%204%2016%2012c2%203%2010%203%2016%202zM32%2014c8-12%2020-10%2016-2-2%203-10%203-16%202z%22%20fill%3D%22none%22%20stroke%3D%22%23F5C518%22%20stroke-width%3D%224%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E');filter:drop-shadow(0 3px 4px rgba(0,0,0,.2))}
.ny-snowman{width:46px;height:62px;background-image:url('data:image/svg+xml;utf8,%3Csvg%20viewBox%3D%220%200%2060%2080%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%2256%22%20r%3D%2220%22%20fill%3D%22%23fff%22%20stroke%3D%22%23CFDCE5%22%20stroke-width%3D%222%22/%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%2226%22%20r%3D%2214%22%20fill%3D%22%23fff%22%20stroke%3D%22%23CFDCE5%22%20stroke-width%3D%222%22/%3E%3Crect%20x%3D%2218%22%20y%3D%224%22%20width%3D%2224%22%20height%3D%225%22%20rx%3D%222%22%20fill%3D%22%231B2A23%22/%3E%3Crect%20x%3D%2221%22%20y%3D%22-8%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%20fill%3D%22%231B2A23%22/%3E%3Crect%20x%3D%2221%22%20y%3D%222%22%20width%3D%2218%22%20height%3D%223%22%20fill%3D%22%23C00000%22/%3E%3Ccircle%20cx%3D%2225%22%20cy%3D%2223%22%20r%3D%221.9%22%20fill%3D%22%231B2A23%22/%3E%3Ccircle%20cx%3D%2235%22%20cy%3D%2223%22%20r%3D%221.9%22%20fill%3D%22%231B2A23%22/%3E%3Cpath%20d%3D%22M30%2027l9%203-9%201z%22%20fill%3D%22%23F07E1E%22/%3E%3Cpath%20d%3D%22M17%2038q13%206%2026%200l-2%206q-11%204-22%200z%22%20fill%3D%22%23C00000%22/%3E%3Crect%20x%3D%2236%22%20y%3D%2240%22%20width%3D%225%22%20height%3D%2212%22%20rx%3D%222%22%20fill%3D%22%23C00000%22/%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%2252%22%20r%3D%221.8%22%20fill%3D%22%231B2A23%22/%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%2260%22%20r%3D%221.8%22%20fill%3D%22%231B2A23%22/%3E%3C/svg%3E');filter:drop-shadow(0 6px 10px rgba(27,42,35,.16))}
.ny-flake{width:22px;height:22px;background-image:url('data:image/svg+xml;utf8,%3Csvg%20viewBox%3D%220%200%20100%20100%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M50%206v88M12%2028l76%2044M12%2072l76-44M50%206l-8%2010M50%206l8%2010M50%2094l-8-10M50%2094l8-10M12%2028l12%201M12%2028l5%2011M88%2072l-12-1M88%2072l-5-11M12%2072l12-1M12%2072l5-11M88%2028l-12%201M88%2028l-5%2011%22%20stroke%3D%22%238DBBD6%22%20stroke-width%3D%225%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22/%3E%3C/svg%3E');animation:nyspin 14s linear infinite}
@keyframes nyspin{to{transform:rotate(360deg)}}
canvas.ny-snow{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
html:not(.newyear) canvas.ny-snow{display:none}

@media (prefers-reduced-motion:reduce){.hw-spider,.hw-ghost,.ny-bauble,.ny-flake{animation:none}}

/* --- Байршил: нүүр хуудас (body data-page="home") --- */
.hw-web.hero{top:0;right:0;width:150px;height:150px;opacity:.9;filter:invert(1) opacity(.22)}
.hw-ghost.hero{right:10%;top:40px;width:64px;height:77px}
.hw-pump.hero{left:auto;right:12%;top:auto;bottom:70px;width:78px;height:68px}
.hw-pump.hero2{left:auto;right:calc(12% + 70px);top:auto;bottom:66px;width:52px;height:46px;transform:rotate(-8deg)}
.hw-ghost.sec{right:24px;top:70px;animation-delay:-2.5s}
.ny-tree.hero{right:11%;bottom:56px;width:96px;height:120px;filter:drop-shadow(0 8px 14px rgba(11,92,48,.25))}
.ny-gift.hero{right:calc(11% + 96px);bottom:56px}
.ny-gift.hero2{right:calc(11% - 40px);bottom:54px;width:36px;height:34px;transform:rotate(6deg)}
.ny-flake.h1{right:20%;top:46px}
.ny-flake.h2{right:7%;top:96px;width:16px;height:16px;animation-duration:10s}
.ny-snowman.sec{right:24px;top:62px}
html.halloween #lessons .wrap,html.newyear #lessons .wrap{position:relative}

/* --- Байршил: курсын хуудас (body data-page="course") --- */
body[data-page="course"] .hw-ghost.hero{right:4%;top:18px}
body[data-page="course"] .ny-flake.h1{right:6%;top:30px}
body[data-page="course"] .ny-flake.h2{right:3%;top:90px}
.final .hw-ghost,.final .ny-snowman{right:28px;top:-40px}

@media (max-width:640px){
  .hw-web.hero{width:90px;height:90px}
  .hw-ghost.hero{right:16px;top:14px;width:44px;height:53px}
  .hw-pump.hero,.hw-pump.hero2,.ny-tree.hero,.ny-gift.hero,.ny-gift.hero2{display:none!important}
  .hw-ghost.sec,.ny-snowman.sec{top:60px;width:36px;height:46px}
}
html.newyear header > .wrap{position:relative;z-index:2}
