/* Еко Няшки — лендинг «Солодощі на Хелловін». Темна ніч зверху, далі теплі світлі секції з товарами. */
.ehw-page .entry-header, .ehw-page .ast-breadcrumbs-wrapper { display: none !important; }
.ehw-page.ast-separate-container .ast-article-single, .ehw-page .ast-article-single { padding: 0 !important; background: transparent !important; box-shadow: none !important; }
html .ehw-page #primary, html.ec-on .ehw-page #primary { margin-top: 0 !important; margin-bottom: 0 !important; }
.ehw-page .entry-content { margin: 0 !important; }

.ehw {
	--night: #150F22; --night2: #2A1842; --orange: #F28C28; --orange2: #E8761E; --slime: #9BD06E; --bone: #FFF6E6; --ink: #1F2A1A; --muted: #5B6455; --green: #3F7A22;
	width: 100vw; margin-left: calc(50% - 50vw); font-family: Manrope, system-ui, -apple-system, sans-serif; color: var(--ink); overflow: hidden;
}
.ehw *, .ehw *::before, .ehw *::after { box-sizing: border-box; }
.ehw h1, .ehw h2 { font-family: inherit !important; letter-spacing: -.5px; }
.ehw a { text-decoration: none !important; }

/* ---------- Перший екран: ніч ---------- */
.ehw-hero {
	--fx: 70%; --fy: 40%;
	position: relative; min-height: min(92vh, 760px); display: flex; align-items: center; padding: 90px 24px 120px;
	background: radial-gradient(120% 90% at 50% 0%, var(--night2) 0%, var(--night) 60%, #0B0812 100%); color: var(--bone); isolation: isolate;
}
.ehw-hero::after { /* ліхтарик: тепле світло навколо курсора */
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: radial-gradient(circle 190px at var(--fx) var(--fy), rgba(255, 214, 140, .22), rgba(255, 214, 140, .06) 55%, transparent 75%);
}
.ehw-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ehw-moon { position: absolute; right: 12%; top: 12%; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle at 38% 38%, #FFF8DC, #F6DFA0 60%, #E2C27A); box-shadow: 0 0 80px 20px rgba(246, 223, 160, .35); }
.ehw-moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 70% 60%, rgba(0, 0, 0, .08) 0 10%, transparent 11%), radial-gradient(circle at 40% 72%, rgba(0, 0, 0, .07) 0 7%, transparent 8%); }
.ehw-star { position: absolute; left: var(--x); top: var(--y); width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .7; animation: ehw-tw var(--d) ease-in-out infinite; }
@keyframes ehw-tw { 50% { opacity: .15; transform: scale(.6); } }
.ehw-bat { position: absolute; width: 64px; fill: #0B0812; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .25)); animation: ehw-fly 16s linear infinite, ehw-flap .35s ease-in-out infinite alternate; }
.ehw-bat.b0 { top: 18%; animation-duration: 18s, .32s; }
.ehw-bat.b1 { top: 30%; width: 44px; animation-duration: 22s, .28s; animation-delay: -6s, 0s; }
.ehw-bat.b2 { top: 10%; width: 36px; animation-duration: 26s, .3s; animation-delay: -12s, 0s; }
.ehw-bat.b3 { top: 44%; width: 52px; animation-duration: 20s, .34s; animation-delay: -3s, 0s; }
.ehw-bat.b4 { top: 24%; width: 30px; animation-duration: 30s, .26s; animation-delay: -18s, 0s; }
@keyframes ehw-fly { 0% { left: -10%; transform: translateY(0); } 25% { transform: translateY(-30px); } 50% { transform: translateY(20px); } 75% { transform: translateY(-14px); } 100% { left: 110%; transform: translateY(0); } }
@keyframes ehw-flap { from { scale: 1 1; } to { scale: 1 .45; } }
.ehw-fog { position: absolute; left: -20%; bottom: -60px; width: 140%; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 190, 230, .22), transparent); filter: blur(20px); animation: ehw-fog 18s ease-in-out infinite alternate; }
.ehw-fog.f2 { bottom: -100px; height: 260px; opacity: .7; animation-duration: 26s; animation-direction: alternate-reverse; }
@keyframes ehw-fog { to { transform: translateX(10%); } }

/* Те, що видно лише під ліхтариком */
.ehw-reveal { position: absolute; inset: 0; z-index: 2; pointer-events: none; -webkit-mask-image: radial-gradient(circle 150px at var(--fx) var(--fy), #000 45%, transparent 75%); mask-image: radial-gradient(circle 150px at var(--fx) var(--fy), #000 45%, transparent 75%); }
.ehw-reveal span { position: absolute; left: var(--x); top: var(--y); font-size: 34px; font-weight: 800; color: var(--orange); text-shadow: 0 0 18px rgba(242, 140, 40, .6); transform: rotate(-8deg); }

.ehw-hero__in { position: relative; z-index: 3; max-width: 1180px; width: 100%; margin: 0 auto; }
.ehw-kicker { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--slime); }
.ehw-hero h1 { margin: 0; font-size: clamp(40px, 6.4vw, 84px) !important; line-height: 1.02; font-weight: 800; color: var(--bone) !important; max-width: 820px; }
.ehw-hero h1 span { display: block; color: var(--orange); text-shadow: 0 0 30px rgba(242, 140, 40, .45); animation: ehw-flicker 5s infinite; }
@keyframes ehw-flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .55; } 95% { opacity: 1; } 96% { opacity: .7; } }
.ehw-sub { margin: 18px 0 28px; max-width: 560px; font-size: 18px; line-height: 1.55; color: rgba(255, 246, 230, .82); }
.ehw-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ehw-btn { display: inline-flex; align-items: center; height: 56px; padding: 0 28px; border-radius: 999px; background: var(--orange); color: #2A1405 !important; font-weight: 800; font-size: 16px; box-shadow: 0 10px 30px rgba(242, 140, 40, .35); transition: transform .15s, box-shadow .15s; }
.ehw-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(242, 140, 40, .5); }
.ehw-btn.is-ghost { background: rgba(255, 255, 255, .08); color: var(--bone) !important; box-shadow: inset 0 0 0 1.5px rgba(255, 246, 230, .35); }
.ehw-count { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 26px; padding: 10px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ehw-count[hidden] { display: none; }
.ehw-count b { font-size: 26px; font-weight: 800; color: var(--bone); font-variant-numeric: tabular-nums; }
.ehw-count span { font-size: 13px; color: rgba(255, 246, 230, .6); margin-right: 8px; }
.ehw-count em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--slime); }
.ehw-hint { margin: 18px 0 0; font-size: 13px; color: rgba(255, 246, 230, .5); }
.ehw-pumpkin { position: absolute; z-index: 3; right: 7%; bottom: 40px; width: min(26vw, 260px); animation: ehw-bob 4s ease-in-out infinite; will-change: transform; }
/* Світіння — окремий шар позаду, лише змінює прозорість (фільтр на рухомому SVG давав артефакти) */
.ehw-pglow { position: absolute; z-index: 2; right: calc(7% - 60px); bottom: -20px; width: calc(min(26vw, 260px) + 120px); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
	background: radial-gradient(closest-side, rgba(242, 140, 40, .38), rgba(242, 140, 40, .12) 55%, transparent 72%); animation: ehw-pulse 3s ease-in-out infinite; }
@keyframes ehw-pulse { 50% { opacity: .65; } }
.ehw-face { animation: ehw-glow 2.4s ease-in-out infinite; }
@keyframes ehw-bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes ehw-glow { 0%, 100% { fill: #FFD25A; } 40% { fill: #FFB833; } 60% { fill: #FFE48A; } }
.ehw-spider { position: absolute; z-index: 3; left: 16%; top: 0; font-style: normal; font-size: 30px; display: flex; flex-direction: column; align-items: center; transform: translateY(var(--sp, 40px)); transition: transform .3s ease-out; pointer-events: none; }
.ehw-spider b { position: absolute; bottom: 100%; width: 1px; height: 900px; background: rgba(255, 255, 255, .35); }

/* ---------- Липкі чіпи розділів ---------- */
.ehw-nav { position: sticky; top: var(--ech-h, 0px); z-index: 50; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px max(16px, calc(50% - 590px)); background: rgba(255, 249, 240, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid #F1E3CC; }
.ehw-nav::-webkit-scrollbar { display: none; }
.ehw-nav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1.5px solid #F1E3CC; color: var(--ink) !important; font-weight: 700; font-size: 14.5px; white-space: nowrap; transition: border-color .15s, transform .15s; }
.ehw-nav a:hover { border-color: var(--orange); transform: translateY(-1px); }
.ehw-nav a span { font-size: 18px; }

/* ---------- Секції з товарами ---------- */
.ehw-sec { padding: 56px max(16px, calc(50% - 590px)) 24px; background: #FFF9F0; position: relative; }
.ehw-sec:nth-of-type(even) { background: #FFF3E3; }
.ehw-sec::before { /* павутинка в куті */
	content: ""; position: absolute; right: 0; top: 0; width: 120px; height: 120px; opacity: .14; pointer-events: none;
	background: repeating-radial-gradient(circle at 100% 0, transparent 0 14px, #2A1842 14px 15px), repeating-conic-gradient(from 180deg at 100% 0, transparent 0 14deg, #2A1842 14deg 15deg);
	-webkit-mask-image: radial-gradient(circle at 100% 0, #000 60%, transparent 72%); mask-image: radial-gradient(circle at 100% 0, #000 60%, transparent 72%);
}
.ehw-sec__head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; max-width: 820px; }
.ehw-sec__emoji { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 30px; background: var(--night); box-shadow: 0 8px 20px rgba(21, 15, 34, .25); }
.ehw-sec h2 { margin: 2px 0 6px; font-size: clamp(26px, 3vw, 36px) !important; font-weight: 800; color: var(--ink); }
.ehw-sec p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.ehw-sec .woocommerce { margin: 0; }
.ehw-sec ul.products { margin-bottom: 20px !important; }
.ehw-sec, .ehw-game, .ehw-text, .ehw-faq { opacity: 1; }
.ehw .is-pre { opacity: 0; transform: translateY(24px); }
.ehw .is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

/* ---------- Гра «Солодощі або капость» ---------- */
.ehw-game { padding: 64px 24px 72px; text-align: center; background: radial-gradient(90% 120% at 50% 0%, var(--night2), var(--night)); color: var(--bone); position: relative; }
.ehw-game h2 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 48px) !important; font-weight: 800; color: var(--bone) !important; }
.ehw-game > p { margin: 0 auto 30px; max-width: 520px; color: rgba(255, 246, 230, .75); font-size: 17px; }
.ehw-game__row { display: flex; justify-content: center; gap: clamp(12px, 4vw, 48px); }
.ehw .ehw-pick:not(#_) {
	position: relative; width: clamp(96px, 22vw, 170px); padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: transparent !important;
	cursor: pointer; box-shadow: none !important; transition: transform .2s;
}
.ehw .ehw-pick:not(#_):hover { transform: translateY(-6px) rotate(-3deg); }
.ehw-pick svg { position: relative; width: 100%; display: block; }
.ehw-pick::before { content: ""; position: absolute; left: -18%; right: -18%; top: 0; bottom: -22%; border-radius: 50%; pointer-events: none;
	background: radial-gradient(closest-side, rgba(242, 140, 40, .34), transparent 70%); opacity: .7; transition: opacity .25s; }
.ehw .ehw-pick:not(#_):hover::before, .ehw-pick.is-open::before { opacity: 1; }
.ehw-pick.is-used::before { opacity: 0; }
.ehw-pick span { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); font: 800 28px Manrope, sans-serif; color: #FFD25A; text-shadow: 0 0 12px rgba(255, 210, 90, .8); pointer-events: none; }
.ehw-pick.is-shake svg { animation: ehw-shake .5s ease-in-out; }
@keyframes ehw-shake { 20% { transform: rotate(-8deg); } 40% { transform: rotate(7deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(3deg); } }
.ehw-pick.is-open .lid { transform: translate(14px, -30px) rotate(40deg); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.ehw-pick.is-open span { opacity: 0; }
.ehw-pick.is-used { opacity: .45; }
.ehw-prize { margin: 34px auto 0; max-width: 460px; display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 22px; background: var(--bone); color: var(--ink); text-align: left; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); animation: ehw-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.ehw-prize[hidden] { display: none; }
@keyframes ehw-pop { from { opacity: 0; transform: scale(.85) translateY(10px); } }
.ehw-prize img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; background: #fff; flex: 0 0 auto; }
.ehw-prize small { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--orange2); }
.ehw-prize b { display: block; margin: 2px 0 4px; font-size: 16px; line-height: 1.3; }
.ehw-prize .pr { font-weight: 800; font-size: 18px; }
.ehw-prize a { display: inline-flex; margin-top: 8px; height: 40px; align-items: center; padding: 0 18px; border-radius: 999px; background: var(--green); color: #fff !important; font-weight: 800; font-size: 14px; }
.ehw-again { display: block; margin: 18px auto 0; background: none; border: 0; color: var(--slime); font: 700 15px Manrope, sans-serif; cursor: pointer; text-decoration: underline; }
.ehw-candy { position: fixed; top: -40px; z-index: 2147483000; font-size: 26px; pointer-events: none; animation: ehw-fall linear forwards; }
@keyframes ehw-fall { to { transform: translateY(110vh) rotate(540deg); } }

/* ---------- Ідеї, SEO-текст, FAQ ---------- */
.ehw-text, .ehw-faq { padding: 64px max(16px, calc(50% - 590px)); background: #FFF9F0; }
.ehw-text h2, .ehw-faq h2 { margin: 0 0 24px; font-size: clamp(26px, 3vw, 36px) !important; font-weight: 800; color: var(--ink); }
.ehw-ideas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.ehw-ideas > div { padding: 20px; border-radius: 22px; background: #fff; box-shadow: 0 6px 22px rgba(42, 24, 66, .07); transition: transform .2s; }
.ehw-ideas > div:hover { transform: translateY(-4px) rotate(-.5deg); }
.ehw-ideas b { display: block; font-size: 17px; margin-bottom: 8px; }
.ehw-ideas p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.ehw-seo { max-width: 860px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.ehw-seo p { margin: 0 0 14px; }
.ehw-seo strong { color: var(--ink); }
.ehw-faq { background: #FFF3E3; }
.ehw-faq details { max-width: 860px; margin-bottom: 10px; border-radius: 18px; background: #fff; box-shadow: 0 4px 16px rgba(42, 24, 66, .06); }
.ehw-faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 800; font-size: 16px; position: relative; }
.ehw-faq summary::-webkit-details-marker { display: none; }
.ehw-faq summary::after { content: "🎃"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%) rotate(-20deg); transition: transform .25s; }
.ehw-faq details[open] summary::after { transform: translateY(-50%) rotate(0) scale(1.2); }
.ehw-faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); line-height: 1.6; }

@media (max-width: 959px) {
	.ehw-hero { min-height: auto; padding: 56px 16px 180px; }
	.ehw-moon { width: 84px; height: 84px; right: 8%; top: 7%; }
	.ehw-sub { font-size: 16px; }
	.ehw-btn { height: 52px; padding: 0 22px; font-size: 15px; }
	.ehw-pumpkin { width: 150px; right: 50%; margin-right: -75px; bottom: 16px; }
	.ehw-pglow { width: 270px; right: 50%; margin-right: -135px; bottom: -44px; }
	.ehw-reveal span { font-size: 26px; }
	.ehw-spider { left: 78%; font-size: 24px; }
	.ehw-ideas { grid-template-columns: 1fr 1fr; }
	.ehw-sec { padding-top: 40px; }
	.ehw-sec__emoji { width: 48px; height: 48px; font-size: 24px; border-radius: 14px; }
	.ehw-prize { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
	.ehw-ideas { grid-template-columns: 1fr; }
	.ehw-count b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.ehw *, .ehw *::before, .ehw *::after { animation: none !important; transition: none !important; }
	.ehw .is-pre { opacity: 1; transform: none; }
}
.ehw-cta { flex-wrap: nowrap; }
.ehw-btn { white-space: nowrap; justify-content: center; }
@media (max-width: 959px) { .ehw-cta { gap: 8px; } .ehw-btn { flex: 1 1 0; min-width: 0; padding: 0 12px; } }
