/* Погода: живой график, индекс комфорта, одежда, дуга солнца, SEO-блок */
.wxp { margin: 36px 0; --wp-a: #38bdf8; --wp-b: #818cf8; }
.wxp__head h2 { margin: 8px 0 6px; font: 800 clamp(22px, 3vw, 32px)/1.2 var(--font-display); letter-spacing: -.02em; }
.wxp__head p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 720px; }
.wxp-chart { position: relative; border-radius: 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--wp-a) 10%, var(--surface)), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 14px 8px 6px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.wxp-chart__svg { display: block; width: 100% !important; max-width: none !important; max-height: none !important; height: clamp(190px, 33vw, 340px) !important; overflow: visible; }
.wxp-chart__svg .g-line { fill: none; stroke: url(#wxpLine); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); animation: wxpDraw 1.6s .15s var(--spring, ease) forwards; }
.wxp-chart__svg .g-area { fill: url(#wxpArea); opacity: 0; animation: wxpFade .9s 1s ease forwards; }
.wxp-chart__svg .g-rain { fill: #38bdf8; opacity: .55; }
.wxp-chart__svg .g-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.wxp-chart__svg text { fill: var(--muted); font: 600 11px var(--font-mono, ui-monospace, monospace); }
.wxp-chart__svg .g-hot { fill: var(--ink); font-weight: 800; font-size: 12px; }
.wxp-chart__svg .g-cursor { stroke: var(--wp-a); stroke-width: 1.5; opacity: 0; transition: opacity .15s; }
.wxp-chart__svg .g-dot { fill: #fff; stroke: var(--wp-a); stroke-width: 3.5; opacity: 0; transition: opacity .15s; }
.wxp-chart.is-on .g-cursor, .wxp-chart.is-on .g-dot { opacity: 1; }
@keyframes wxpDraw { to { stroke-dashoffset: 0; } }
@keyframes wxpFade { to { opacity: 1; } }
.wxp-chart__tip { position: absolute; top: 8px; left: 0; transform: translateX(-50%); padding: 8px 12px; border-radius: 12px; background: #0b2a3f; color: #eaf8ff; font: 700 13px/1.35 var(--font-display); pointer-events: none; white-space: nowrap; box-shadow: 0 12px 30px -12px rgba(0, 20, 40, .7); }
.wxp-chart__read { margin: 10px 4px 0; font: 600 14.5px/1.45 var(--font-display); color: var(--ink); min-height: 1.5em; }

.wxp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 20px; }
.wxp-card { padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; transition: transform .3s var(--spring, ease), border-color .25s; }
.wxp-card:hover { transform: translateY(-3px); border-color: var(--wp-a); }
.wxp-card h3 { margin: 0; font: 800 17px/1.25 var(--font-display); }
.wxp-card strong { font: 800 18px/1.2 var(--font-display); }
.wxp-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.wxp-fine { font-size: 12px !important; }

.wxp-gauge { position: relative; width: min(100%, 220px); margin: 4px auto 0; text-align: center; }
.wxp-gauge svg { width: 100%; display: block; }
.wxp-gauge path { fill: none; stroke-width: 11; stroke-linecap: round; }
.wxp-gauge__bg { stroke: var(--sunk); }
.wxp-gauge__fg { stroke: var(--c, #10b981); stroke-dasharray: 0 160; transition: stroke-dasharray 1.4s var(--spring, ease); }
.wxp-gauge b { position: absolute; left: 0; right: 0; bottom: 14px; font: 900 40px/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.wxp-gauge small { position: absolute; left: 0; right: 0; bottom: -4px; font-size: 12px; color: var(--muted); }
.wxp-comfort strong { color: var(--c); text-align: center; margin-top: 10px; }
.wxp-comfort p { text-align: center; }

.wxp-outfit__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; padding: 0; list-style: none; }
.wxp-outfit__list li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line); font: 700 13.5px/1.2 var(--font-display); opacity: 0; transform: translateY(8px) scale(.96); animation: wxpPop .5s var(--d, 0ms) var(--spring, ease) forwards; }
.wxp-outfit__list li span { font-size: 20px; }
@keyframes wxpPop { to { opacity: 1; transform: none; } }

.wxp-sun__arc { position: relative; }
.wxp-sun__arc svg { width: 100%; display: block; overflow: visible; }
.wxp-sun__ground { stroke: var(--line); stroke-width: 2; }
.wxp-sun__path { fill: none; stroke: var(--line); stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
.wxp-sun__done { fill: none; stroke: url(#wxpSunG); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 400; transition: stroke-dasharray 1.6s var(--spring, ease); }
.wxp-sun__orb { fill: #fbbf24; filter: drop-shadow(0 0 8px rgba(251, 191, 36, .9)); }
.wxp-sun__halo { fill: none; stroke: #fbbf24; stroke-opacity: .35; animation: wxpPulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.wxp-sun.is-night .wxp-sun__orb { fill: #cbd5e1; filter: drop-shadow(0 0 8px rgba(203, 213, 225, .7)); }
.wxp-sun.is-night .wxp-sun__halo { stroke: #cbd5e1; }
@keyframes wxpPulse { 50% { transform: scale(1.25); opacity: .4; } }
.wxp-sun__ends { display: flex; justify-content: space-between; font: 700 13px/1 var(--font-mono, monospace); color: var(--muted); margin-top: -4px; }

.wxp-streak { display: flex; align-items: baseline; gap: 8px; }
.wxp-streak b { font: 900 44px/1 var(--font-display); letter-spacing: -.03em; background: linear-gradient(135deg, var(--wp-a), var(--wp-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wxp-streak span { color: var(--muted); font-size: 14px; }
.wxp-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.wxp-badges span { padding: 7px 11px; border-radius: 999px; font: 700 12.5px/1 var(--font-display); background: var(--sunk); border: 1px solid var(--line); opacity: .45; filter: grayscale(1); transition: all .4s var(--spring, ease); }
.wxp-badges span.is-on { opacity: 1; filter: none; border-color: var(--wp-a); background: color-mix(in srgb, var(--wp-a) 14%, var(--surface)); }

/* SEO-блок */
.wxp-seo__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.wxp-seo__item { padding: 20px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.wxp-seo__item.is-wide { grid-column: 1 / -1; }
.wxp-seo__item h3 { margin: 0 0 10px; font: 800 19px/1.25 var(--font-display); }
.wxp-seo__item p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; color: var(--ink); }
.wxp-seo__item p:last-child { margin-bottom: 0; }
.wxp-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.wxp-links a { padding: 10px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 700 13.5px/1 var(--font-display); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.wxp-links a:hover { border-color: var(--wp-a); transform: translateY(-2px); }
.wxp-faq h2 { margin: 24px 0 14px; font: 800 clamp(22px, 3vw, 30px)/1.2 var(--font-display); }
.wxp-faq details { margin: 0 0 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.wxp-faq summary { cursor: pointer; padding: 16px 52px 16px 18px; position: relative; font: 700 15.5px/1.4 var(--font-display); list-style: none; }
.wxp-faq summary::-webkit-details-marker { display: none; }
.wxp-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; margin-top: -14px; font: 400 26px/1 var(--font-display); color: #38bdf8; transition: transform .25s; }
.wxp-faq details[open] summary::after { transform: rotate(45deg); }
.wxp-faq details p { margin: 0; padding: 0 18px 18px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
@media (max-width: 640px) { .wxp-chart { padding: 10px 2px 4px; border-radius: 18px; } .wxp-seo__item { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .wxp *, .wxp-seo * { animation: none !important; transition: none !important; } .wxp-chart__svg .g-line { stroke-dashoffset: 0; } .wxp-chart__svg .g-area, .wxp-outfit__list li { opacity: 1; transform: none; } }
