/* WEATHER V8: resort photo swap + monthly climate block */
.pt-weather-mountains-map{
  margin:0; display:flex; flex-direction:column; padding:0 !important; overflow:hidden; min-height:580px;
}
.pt-weather-mountains-map-frame{position:relative; flex:1 1 auto; min-height:520px; overflow:hidden; border-radius:16px; margin:10px; background:#eef5fd;}
.pt-weather-mountains-map-frame img{display:block; width:100%; height:100%; object-fit:cover; object-position:center;}
.pt-weather-mountains-map .pt-weather-mountains-map-photo,
.pt-weather-mountains-map .pt-weather-mountains-route,
.pt-weather-mountains-map .pt-weather-mountains-pins{display:none !important;}
.pt-weather-mountains-map-caption{position:static !important; width:auto !important; max-width:none !important; margin:0; padding:10px 16px 14px; background:transparent !important; color:#5a739a !important; font-size:13px !important;}

.pt-weather-climate, .pt-weather-climate *{box-sizing:border-box}
.pt-weather-climate{
  --w-red:#ff1540; --w-blue:#1f86ff; --w-ink:#091b3f; --w-muted:#5e76a0;
  position:relative; isolation:isolate; width:100%; padding:40px clamp(14px,2.8vw,46px) 34px; background:#fff;
}
.pt-weather-climate-decoration{position:absolute; right:0; top:0; width:min(30vw,420px); height:200px; pointer-events:none; background:linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.4) 100%), url('/assets/weather-v8/polyana.webp') right top/cover no-repeat; opacity:.18; filter:saturate(.8) brightness(1.1);}
.pt-weather-climate-heading{text-align:center; max-width:1040px; margin:0 auto 24px; position:relative; z-index:1;}
.pt-weather-climate-kicker{margin:0 0 8px; color:var(--w-red); font-weight:800; font-size:clamp(14px,1.15vw,22px); letter-spacing:.06em;}
.pt-weather-climate-heading h2{margin:0; color:#071937; letter-spacing:-.045em; font-size:clamp(32px,3.55vw,60px); font-weight:820; line-height:1.08;}
.pt-weather-climate-heading h2 span{color:var(--w-red)}
.pt-weather-climate-heading > p{margin:12px auto 0; color:#62769c; font-size:clamp(15px,1.25vw,20px); line-height:1.42; font-weight:440;}
.pt-weather-climate-picker{display:none}
.pt-weather-climate-tabs{display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:8px; margin:0 auto 14px; max-width:1570px; position:relative; z-index:1;}
.pt-weather-climate-tabs button{min-height:58px; border:1px solid #dfe7f3; border-radius:12px; background:#fff; color:#101f43; font-family:inherit; font-weight:700; font-size:16px; line-height:1.1; box-shadow:0 4px 13px rgba(17,64,119,.045); cursor:pointer; transition:all .17s; padding:10px 12px;}
.pt-weather-climate-tabs button:hover{border-color:#f996aa}
.pt-weather-climate-tabs button.is-active{background:#ff1540; color:#fff; border-color:#ff1540; box-shadow:0 8px 17px rgba(247,5,64,.13)}
.pt-weather-climate-tabs button:focus-visible{outline:3px solid #fd5579; outline-offset:3px}
.pt-weather-climate-main{display:grid; grid-template-columns:minmax(0,62%) minmax(0,38%); gap:12px; max-width:1570px; margin:0 auto; align-items:stretch; position:relative; z-index:1;}
.pt-weather-climate-chartcard,.pt-weather-climate-detail{border:1px solid #e4ebf6; border-radius:17px; background:#fff; box-shadow:0 8px 28px rgba(35,75,127,.046); min-width:0;}
.pt-weather-climate-chartcard{padding:22px 22px 12px}
.pt-weather-climate-charthead{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px}
.pt-weather-climate-charthead h3{margin:0; color:#081c47; font-weight:820; letter-spacing:-.035em; font-size:clamp(24px,2vw,28px)}
.pt-weather-climate-legend{display:flex; gap:24px; color:#6780a7; font-size:14px; font-weight:600; white-space:nowrap}
.pt-weather-climate-legend span{display:flex; align-items:center; gap:9px}
.pt-weather-climate-legend i{display:inline-block; width:15px; height:15px; border-radius:50%}
.pt-weather-climate-legend i.is-day{background:var(--w-red)}
.pt-weather-climate-legend i.is-night{background:var(--w-blue)}
.pt-weather-climate-chart{width:100%; min-height:420px}
.pt-weather-climate-chart svg{display:block; width:100%; height:auto}
.pt-weather-climate-detail{padding:18px 18px 12px; display:flex; flex-direction:column}
.pt-weather-climate-detail-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px}
.pt-weather-climate-detail-head h3{margin:0; color:#081c47; font-weight:820; letter-spacing:-.04em; font-size:clamp(32px,2.8vw,58px); line-height:1}
.pt-weather-climate-detail-head p{margin:10px 0 0; color:#62769c; font-size:15px; line-height:1.32}
.pt-weather-climate-badge{flex:0 0 auto; min-width:82px; text-align:center; padding:10px 12px; border-radius:10px; font-size:16px; font-weight:700; background:#fff4e2; color:#d88d00}
.pt-weather-climate-detail[data-season="зима"] .pt-weather-climate-badge{background:#eef6ff; color:#2477ff}
.pt-weather-climate-detail[data-season="весна"] .pt-weather-climate-badge{background:#ecfaea; color:#2b9b3a}
.pt-weather-climate-detail[data-season="лето"] .pt-weather-climate-badge{background:#fff4e2; color:#d88d00}
.pt-weather-climate-detail[data-season="осень"] .pt-weather-climate-badge{background:#fff0eb; color:#f07a44}
.pt-weather-climate-hero{display:grid; grid-template-columns:110px 1fr 1fr; gap:14px; align-items:center; margin:18px 0 16px}
.pt-weather-climate-hero > img{width:96px; height:96px; object-fit:contain; justify-self:center}
.pt-weather-climate-main-temp{text-align:center; position:relative}
.pt-weather-climate-main-temp:first-of-type:after{content:""; position:absolute; right:-7px; top:8px; bottom:8px; width:1px; background:#d8e4f4}
.pt-weather-climate-main-temp strong{display:block; line-height:1; letter-spacing:-.05em; font-weight:850; font-size:clamp(48px,4vw,72px)}
.pt-weather-climate-main-temp span{display:block; margin-top:6px; font-size:15px; font-weight:700; text-transform:lowercase}
.pt-weather-climate-main-temp.is-day strong,.pt-weather-climate-main-temp.is-day span{color:var(--w-red)}
.pt-weather-climate-main-temp.is-night strong,.pt-weather-climate-main-temp.is-night span{color:var(--w-blue)}
.pt-weather-climate-stats{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid #e8eef7; border-radius:14px; overflow:hidden; background:#fbfdff}
.pt-weather-climate-stats article{display:flex; gap:12px; padding:16px 14px; min-height:112px; border-right:1px solid #e8eef7; border-bottom:1px solid #e8eef7}
.pt-weather-climate-stats article:nth-child(3n){border-right:0}
.pt-weather-climate-stats article:nth-last-child(-n+3){border-bottom:0}
.pt-weather-climate-stats img{width:34px; height:34px; flex:0 0 34px; object-fit:contain}
.pt-weather-climate-stats div{display:flex; flex-direction:column; gap:4px; min-width:0}
.pt-weather-climate-stats span{font-size:14px; color:#6a80a3}
.pt-weather-climate-stats strong{font-size:18px; line-height:1.18; color:#09204a; font-weight:830}
.pt-weather-climate-stats small{font-size:13px; line-height:1.2; color:#6a80a3}
.pt-weather-climate-seasons{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; max-width:1570px; margin:16px auto 0; position:relative; z-index:1;}
.pt-weather-climate-seasons article{padding:18px 18px 16px; border-radius:16px; border:1px solid #e4ebf6; background:#fff; box-shadow:0 8px 24px rgba(35,75,127,.03); min-height:146px; position:relative; overflow:hidden}
.pt-weather-climate-seasons article:before{content:""; position:absolute; left:0; top:16px; bottom:16px; width:4px; border-radius:10px}
.pt-weather-climate-seasons h3{margin:0; color:#0a214b; font-size:20px; font-weight:820; letter-spacing:-.03em}
.pt-weather-climate-seasons p{margin:4px 0 10px; color:#5670a2; font-size:15px}
.pt-weather-climate-seasons span{display:block; color:#5e76a0; font-size:15px; line-height:1.35}
.pt-weather-climate-seasons .is-winter{background:#f3f8ff}.pt-weather-climate-seasons .is-winter:before{background:#2480ff}
.pt-weather-climate-seasons .is-spring{background:#f4fbf2}.pt-weather-climate-seasons .is-spring:before{background:#31bc25}
.pt-weather-climate-seasons .is-summer{background:#fff9ef}.pt-weather-climate-seasons .is-summer:before{background:#ffb317}
.pt-weather-climate-seasons .is-autumn{background:#fff5f5}.pt-weather-climate-seasons .is-autumn:before{background:#ff2046}
.pt-weather-climate-note{display:flex; align-items:center; gap:14px; max-width:1570px; margin:14px auto 0; min-height:62px; padding:12px 16px; border:1px solid #d8e6fc; border-radius:14px; background:#eff6ff; color:#587095; font-size:15px; line-height:1.38; position:relative; z-index:1;}
.pt-weather-climate-note img{width:32px; height:32px; flex:0 0 32px; object-fit:contain}

@media (max-width: 1350px){
  .pt-weather-climate-tabs{grid-template-columns:repeat(6,minmax(0,1fr))}
  .pt-weather-climate-main{grid-template-columns:minmax(0,58%) minmax(0,42%)}
  .pt-weather-climate-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pt-weather-climate-stats article:nth-child(3n){border-right:1px solid #e8eef7}
  .pt-weather-climate-stats article:nth-child(2n){border-right:0}
  .pt-weather-climate-stats article:nth-last-child(-n+3){border-bottom:1px solid #e8eef7}
  .pt-weather-climate-stats article:nth-last-child(-n+2){border-bottom:0}
}
@media (max-width: 1100px){
  .pt-weather-mountains-map{min-height:0}
  .pt-weather-mountains-map-frame{min-height:420px}
  .pt-weather-climate-main{grid-template-columns:1fr; max-width:900px}
  .pt-weather-climate-seasons{grid-template-columns:repeat(2,minmax(0,1fr)); max-width:900px}
  .pt-weather-climate-tabs{max-width:900px}
}
@media (max-width: 720px){
  .pt-weather-mountains-map-frame{min-height:320px; margin:8px}
  .pt-weather-mountains-map-caption{padding:8px 12px 12px; font-size:12px !important}
  .pt-weather-climate{padding:28px 12px 30px}
  .pt-weather-climate-decoration{display:none}
  .pt-weather-climate-heading h2{font-size:clamp(28px,8.6vw,42px)}
  .pt-weather-climate-heading > p{font-size:14px; line-height:1.42}
  .pt-weather-climate-br{display:none}
  .pt-weather-climate-tabs{display:none}
  .pt-weather-climate-picker{display:flex; flex-direction:column; gap:7px; margin:0 auto 14px; width:100%; max-width:900px; position:relative; z-index:1}
  .pt-weather-climate-picker label{font-family:inherit; font-size:13px; font-weight:700; color:#597299}
  .pt-weather-climate-picker select{display:block; width:100%; min-height:52px; padding:12px 44px 12px 16px; border:1px solid #d9e3f3; border-radius:13px; background:#fff; color:#0b2048; font-family:inherit; font-weight:700; font-size:16px; line-height:1.2; box-shadow:0 4px 14px rgba(25,67,132,.055); appearance:none; -webkit-appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%231e3760' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; cursor:pointer}
  .pt-weather-climate-picker select:focus-visible{outline:3px solid #fd5579; outline-offset:2px}
  .pt-weather-climate-chartcard{padding:14px 14px 8px}
  .pt-weather-climate-charthead{flex-direction:column; align-items:flex-start; gap:8px}
  .pt-weather-climate-charthead h3{font-size:20px}
  .pt-weather-climate-legend{gap:18px; font-size:13px}
  .pt-weather-climate-chart{min-height:0; overflow-x:auto; overflow-y:hidden; scrollbar-width:thin}
  .pt-weather-climate-chart svg{width:650px; max-width:none; height:auto}
  .pt-weather-climate-detail{padding:14px}
  .pt-weather-climate-detail-head{flex-direction:column; gap:10px}
  .pt-weather-climate-detail-head h3{font-size:42px}
  .pt-weather-climate-badge{min-width:0; align-self:flex-start; font-size:14px; padding:8px 10px}
  .pt-weather-climate-hero{grid-template-columns:76px 1fr 1fr; gap:8px; margin:14px 0}
  .pt-weather-climate-hero > img{width:72px; height:72px}
  .pt-weather-climate-main-temp strong{font-size:42px}
  .pt-weather-climate-main-temp span{font-size:13px}
  .pt-weather-climate-stats{grid-template-columns:1fr}
  .pt-weather-climate-stats article,.pt-weather-climate-stats article:nth-child(2n),.pt-weather-climate-stats article:nth-child(3n){border-right:0}
  .pt-weather-climate-stats article:nth-last-child(-n+2),.pt-weather-climate-stats article:nth-last-child(-n+3){border-bottom:1px solid #e8eef7}
  .pt-weather-climate-stats article:last-child{border-bottom:0}
  .pt-weather-climate-seasons{grid-template-columns:1fr; gap:12px}
  .pt-weather-climate-note{align-items:flex-start; font-size:13px; padding:12px}
}
