/* ==========================================================================
   meteo.ua — mobile home, pixel-matched to Figma (376px, node 1:8076)
   ========================================================================== */
:root{
  --f5:#F5FAFE;      /* soft blue 50 */
  --dff0:#DFF0FD;    /* blue 1 */
  --d4ec:#D4ECFF;    /* light blue */
  --grey:#DDE1E5;
  --black:#171717;
  --ink:#2B2B2B;
  --cape:#080808;
  --dblue:#1863B5;   /* d_blue */
  --blue:#2196F3;
  --navy:#153456;    /* dark_blue */
  --yellow:#FFC43A;
  --gray5:#A9B4BD;
  --grey4:#BEC5CB;
  --corn:#75C2FB;
  --danger:#FF513A;
  --shadow:0 8px 6.5px rgba(21,52,86,.12);
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Inter","Segoe UI",Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-family:var(--font);color:var(--black);background:#e4eaf0;font-size:14px;line-height:1.2;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit;border:0;background:none;cursor:pointer;color:inherit}
img{display:block;max-width:100%}
svg{display:block}
p{margin:0}

.app{width:100%;max-width:430px;margin:0 auto;background:#fff;min-height:100vh;overflow:hidden}
.scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.scroll::-webkit-scrollbar{display:none}
.title{font-weight:500;font-size:20px;color:var(--ink);line-height:1.2}
.chev{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Top zone (status + menu + current) : bg #F5FAFE ---------- */
.top{background:var(--f5)}
.statusbar{height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 24px 0 28px;font-weight:600;font-size:15px;color:var(--black)}
.statusbar .icons{display:flex;align-items:center;gap:7px}
.statusbar .icons svg{height:11px}
#s-sig{width:17px}#s-wifi{width:16px}#s-bat{width:25px;height:12px}

.menu{display:flex;align-items:center;gap:16px;padding:16px 20px}
.menu .logo{width:110px;height:33px;flex:none}
.search{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:33px;padding:8px;background:#fff;border:1px solid var(--grey);border-radius:4px}
.search input{flex:1;min-width:0;border:0;outline:none;background:none;font:inherit;font-size:12px;color:var(--navy)}
.search input::placeholder{color:var(--navy);opacity:.85}
.search .si-btn{flex:none;display:flex;align-items:center;border:0;background:none;padding:0;cursor:pointer}
.search .si{width:16px;height:16px;flex:none}

.now{padding:0 20px 24px;display:flex;flex-direction:column;gap:16px}
.crumbs{display:flex;gap:2px;align-items:center;font-size:12px;color:#64707b;white-space:nowrap;overflow-x:auto}
.crumbs .last{color:var(--navy)}
.now__head{display:flex;flex-direction:column;gap:4px;color:var(--black)}
.now__meta{font-size:12px}
.now__title{font-size:18px;font-weight:500;line-height:1.1;white-space:nowrap}
.now__body{display:flex;height:124px;gap:20px;justify-content:space-between}
.now__left{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:space-between}
.now__temprow{display:flex;align-items:center;gap:12px}
.now__temp{font-size:26px;font-weight:500;line-height:1;color:var(--black)}
.now__temprow img{width:22px;height:22px}
.now__desc{display:flex;flex-direction:column;gap:0;font-size:10px;line-height:1.2;color:var(--black)}
.now__desc p{margin:0}
.now__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.now__info .r{display:flex;justify-content:space-between;align-items:center;font-size:12px;border-bottom:1px solid var(--d4ec);padding-bottom:2px}
.now__info .r:last-child{border-bottom:0;padding-bottom:0}
.now__info .r .v{display:flex;align-items:center;gap:8px}
.now__info .r .v img{width:10px;height:10px}

/* ---------- Weather block (day tabs + hourly + period + button) ---------- */
.wblock{padding:24px 20px 0;display:flex;flex-direction:column;gap:12px}
.week{display:flex;gap:2px;align-items:stretch}
.day{flex:none;width:76px;display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px 4px;background:#fff;border:1px solid var(--grey);border-radius:4px}
.day.on{background:var(--f5);border-color:var(--dff0)}
.day .wd{font-size:16px;font-weight:500;color:var(--ink);white-space:nowrap}
.day .m{display:none}
.day img{width:30px;height:30px}
.day .t{font-size:14px;color:var(--ink);white-space:nowrap}

.hourly{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;border:1px solid var(--grey);border-radius:4px}
.hourly::-webkit-scrollbar{display:none}
.hourly table{border-collapse:collapse;width:max-content}
.hourly th,.hourly td{text-align:center;font-weight:400;background:#fff;white-space:nowrap;border-right:1px solid var(--grey)}
.hourly tr>*:last-child{border-right:0}
.hourly thead .hour{font-size:14px;padding:8px 8px 2px;color:var(--black)}
.hourly thead .ico{padding:0 8px 4px}
.hourly thead .ico img{width:28px;height:28px;margin:0 auto}
.hourly .lbl{position:sticky;left:0;z-index:2;text-align:left;padding:6px 8px;min-width:120px}
.hourly thead .lbl{vertical-align:top;padding-top:8px}
.hourly thead .lbl .wm{width:71px;height:21px}
.hourly td.lbl{font-size:10px;color:var(--black)}
.hourly td.lbl .lrow{display:flex;align-items:center;justify-content:space-between;gap:6px}
.hourly td.lbl .lrow img{width:10px;height:10px}
.hourly tbody .temp td{font-size:14px;padding:5px 8px}
.hourly tbody .val td{font-size:10px;padding:4px 8px}
.hourly tbody td:not(.lbl){min-width:46px}
.hourly .warr{display:inline-block;width:8px;height:8px;vertical-align:middle;margin-left:2px}
.hourly td.hl,.hourly th.hl{background:#DFF0FD}

.period{display:flex;gap:6px}
.period a{flex:1;padding:6px 8px;border-radius:8px;background:var(--dff0);color:var(--black);font-size:14px;white-space:nowrap;text-align:center;transition:background .15s,color .15s}
.period a.on{background:#1976d2;color:#fff;box-shadow:var(--shadow)}
.period a:not(.on):hover{background:var(--corn);color:#fff}
.detail{display:block;width:100%;padding:12px 16px;text-align:center;background:var(--dblue);color:#fff;font-size:14px;border-radius:8px}

/* ---------- Map ---------- */
.map-sec{padding:20px 20px 32px;display:flex;flex-direction:column;gap:8px}
.maptabs{display:flex;gap:6px}
.maptabs button{flex:none;padding:6px 8px;border-radius:5px;background:var(--dff0);color:var(--black);font-size:16px;white-space:nowrap}
.maptabs button.on{background:#1976d2;color:#fff;box-shadow:var(--shadow)}
.map{position:relative;display:block;width:100%;height:222px;padding:0;border:0;background:none;border-radius:5px;overflow:hidden;cursor:pointer}
.map img{width:100%;height:100%;object-fit:cover}
.map__hint{position:absolute;left:0;right:0;bottom:0;padding:8px 10px;font-size:12px;color:#fff;text-align:center;background:linear-gradient(transparent,rgba(0,0,0,.55))}

/* ---------- 10-day forecast ---------- */
.fc{padding:0 20px 32px;display:flex;flex-direction:column;gap:20px}
.fc__hed{display:flex;flex-direction:column;gap:12px}
.fc__toggle{display:flex;align-items:center;gap:8px;color:var(--dblue);font-size:14px}
.fc__days{display:flex;gap:4px;position:relative}
.fc__days.collapsed{display:none}
.fcday{flex:none;width:59px;height:240px;display:flex;flex-direction:column;align-items:center;gap:20px;padding-bottom:20px;border-radius:8px;background:#fff}
.fcday.alt{background:var(--f5)}
.fccard{width:100%;display:flex;flex-direction:column;align-items:center;gap:12px;padding:8px 4px 12px;background:#fff;border-radius:8px;box-shadow:var(--shadow)}
.fccard .di{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.fccard .wd{font-size:16px;font-weight:500;line-height:1.1;color:var(--cape)}
.fccard .dt{font-size:12px;color:#64707b}
.fcday.wknd .wd,.fcday.wknd .dt{color:var(--dblue)}
.fccard img{width:24px;height:24px}
.fcday .temps{flex:1;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-size:14px;color:var(--ink)}
.fc__chart{position:absolute;left:0;top:120px;width:878px;pointer-events:none}
.fc__chart .badge{position:absolute;left:0;width:52px;box-sizing:border-box;text-align:center;padding:3px 6px;border-radius:20px;font-size:12px;line-height:1.2;color:#fff}
.fc__chart .badge.day{background:var(--corn);color:#153f77}
.fc__chart .badge.night{background:var(--navy)}
.fc__chart svg{width:100%;height:70px;overflow:visible}

/* ---------- Sun & Moon ---------- */
.sun{padding:0 20px 32px;display:flex;flex-direction:column;gap:12px}
.smlist{display:flex;flex-direction:column;gap:8px}
.sm{background:#fff;border:1px solid var(--dblue);border-radius:8px;padding:16px 16px 20px;display:flex;flex-direction:column;gap:12px}
.sm.sun-card{border-color:var(--yellow)}
.sm__hed{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid var(--grey);padding-bottom:8px}
.sm__hed .txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;color:var(--black)}
.sm__hed .t{font-size:14px;font-weight:600;line-height:1.2}
.sm__hed .times{font-size:16px;line-height:1.3}
.sm__hed img{width:40px;height:40px;flex:none}
.sm__note{font-size:14px;color:var(--black);line-height:1.2}

/* ---------- History ---------- */
.hist{padding:0 16px 40px;display:flex;flex-direction:column;gap:12px}
.hist__card{background:#fff;border:1px solid var(--dblue);border-radius:8px;padding:20px 16px;display:flex;flex-direction:column;gap:12px;position:relative;overflow:hidden}
.hist__txt{border-bottom:1px solid var(--d4ec);padding-bottom:8px;padding-right:60px;display:flex;flex-direction:column;gap:8px;color:var(--black)}
.hist__txt .l1{font-size:14px;line-height:1.2}
.hist__txt .l2{font-size:12px;line-height:1.2}
.hist__mm{display:flex;gap:12px;font-size:14px;font-weight:600;color:var(--black)}
.hist__mm span{flex:1}
.hist__wave{position:absolute;right:0;top:0;width:97px;height:64px;transform:scaleY(-1);background:url(../img/wave.webp) center/100% 100% no-repeat}

/* ---------- Cities ---------- */
.cities{padding:0 20px 40px;display:flex;flex-direction:column;gap:11px}
.acc{width:100%;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--grey);padding:0 0 8px;font-size:14px;font-weight:600;text-align:left;cursor:pointer;color:var(--black)}
.acc.reg{color:var(--dblue)}
.acc .chev{width:16px;height:16px;color:currentColor;transition:transform .2s}
.acc:not(.closed) .chev{transform:rotate(180deg)}
.acc-body.collapsed{display:none}
.regions{display:flex;flex-direction:column;gap:12px;padding:12px 0}
.regions a{font-size:14px;color:var(--dblue)}
.regions a:hover{text-decoration:underline}
.cgrid{display:grid;grid-template-columns:1fr 1fr;column-gap:16px;row-gap:12px}
.ct{display:flex;flex-direction:column;gap:8px;border-bottom:1px solid var(--grey);padding-bottom:8px}
.ct .nm{font-size:14px;color:var(--black);transition:color .12s}
.ct .wi{display:flex;align-items:center;gap:8px}
.ct .wi img{width:20px;height:20px;flex:none}
.ct .wi .tp{font-size:14px;color:var(--black)}
.ct:hover .nm{color:var(--blue);text-decoration:underline}

/* ---------- Footer links ---------- */
.flinks{background:var(--dff0);padding:8px 24px;display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center;font-size:14px;color:var(--black)}

/* ---------- Footer ---------- */
.footer{padding:40px 20px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.footer__brand{width:100%;display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--black)}
.footer__brand #brandDate{color:#64707b;font-size:12px}
.footer__src{font-size:12px;color:var(--black);line-height:1.2}
.footer__src b{color:var(--danger);font-weight:400}
.footer__row{display:flex;gap:8px;width:100%}
.footer__row .informers{flex:1;border:1px solid var(--blue);border-radius:4px;padding:12px 16px;text-align:center;font-size:14px;color:var(--black)}
.footer__row .lang{width:66px;border:1px solid var(--blue);border-radius:4px;padding:12px 8px;display:flex;align-items:center;justify-content:space-between;font-size:14px;color:var(--black)}
.footer__links{display:flex;flex-direction:column;gap:8px;color:#1976d2;font-size:14px}
.footer__links .r{display:flex;justify-content:center;gap:8px}
.footer__links .r.ads{gap:24px}

/* ---------- links & interactive states ---------- */
.crumbs a:hover{text-decoration:underline}
.flinks a{color:var(--black)}
.flinks a:hover{text-decoration:underline}
.footer__links a{color:#1976d2}
.footer__links a:hover{text-decoration:underline}
.detail{transition:background .15s}
.detail:hover{background:#14508f}
.footer__row .informers{cursor:pointer;background:#fff;transition:background .15s,color .15s}
.footer__row .informers:hover{background:var(--blue);color:#fff}
.footer__row .informers:active{background:var(--dblue);color:#fff}
.footer__row .lang{cursor:pointer;background:#fff;transition:border-color .15s;position:relative}
.footer__row .lang:hover{border-color:var(--dblue)}
.lang__menu{position:absolute;bottom:calc(100% + 6px);right:0;min-width:150px;background:#fff;border:1px solid var(--grey);border-radius:8px;box-shadow:var(--shadow);padding:4px 0;display:none;z-index:20}
.footer__row .lang:hover .lang__menu,.footer__row .lang:focus-within .lang__menu{display:block}
.lang__menu a{display:block;padding:9px 14px;font-size:14px;color:var(--black);text-align:left}
.lang__menu a:hover{background:var(--f5)}
.lang__menu a.on{color:var(--blue);font-weight:600}
.fc__toggle{cursor:pointer}
.fc__toggle .chev{transition:transform .2s}
.fc__toggle.closed .chev{transform:rotate(180deg)}

/* ---------- Windy map modal ---------- */
.modal[hidden]{display:none}
.modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center}
.modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.modal__box{position:relative;width:min(94vw,760px);height:min(82vh,560px);background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 16px 48px rgba(0,0,0,.45)}
.modal__box iframe{width:100%;height:100%;border:0;display:block}
.modal__close{position:absolute;top:8px;right:8px;z-index:2;width:36px;height:36px;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;font-size:24px;line-height:36px;text-align:center;cursor:pointer;border:0;padding:0}
.modal__close:hover{background:rgba(0,0,0,.8)}

/* ---------- search dropdown ---------- */
.srch-menu[hidden]{display:none}
.srch-menu{position:absolute;z-index:900;background:#fff;border:1px solid var(--grey);border-radius:8px;box-shadow:var(--shadow);overflow-y:auto;max-height:320px}
.srch-i{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;font-size:14px;color:var(--black);border-bottom:1px solid var(--blue0)}
.srch-i:last-child{border-bottom:0}
.srch-i:hover{background:var(--blue0)}
.srch-i .srch-t{color:var(--gray5);font-size:12px;flex:none;white-space:nowrap}

/* ---------- hidden helper + period standalone ---------- */
[hidden]{display:none!important}
.period--std{margin:12px 20px 0}

/* ---------- month day list (1:1 with Figma 35-1228) ---------- */
.mlist{padding:20px 20px 0}
.mrow{border-bottom:1px solid var(--dff0)}
.mrow__head{display:flex;align-items:center;gap:8px;padding:10px 0;cursor:pointer}
.mrow__day{width:58px;flex:none;font-size:16px;color:var(--black)}
.mrow__t{flex:1;font-size:16px;color:var(--black);white-space:nowrap}
.mrow__p{display:flex;align-items:center;gap:6px;width:64px;flex:none;font-size:16px;color:var(--black)}
.mrow__p img{width:16px;height:16px}
.mrow__ic{width:24px;height:24px;flex:none;margin:0 10px}
.mrow__btn{flex:none;width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--d4ec);border-radius:6px}
.mrow__btn .chev{width:14px;height:14px;color:var(--dblue);stroke-width:2;transition:transform .2s}
.mrow.open{background:var(--f5);border:2px solid #A0D6FC;border-radius:0;margin:4px -20px;padding:0 18px}
.mrow.open .mrow__head{border-bottom:1px solid var(--d4ec)}
.mrow.open .mrow__btn .chev{transform:rotate(180deg)}
.mrow__body{display:none;padding:16px 0 20px}
.mrow.open .mrow__body{display:block}
.mrow__body .now__body{height:124px}
.mnote{background:var(--dff0);border-radius:8px;padding:10px 14px;margin:12px 0;font-size:12px;line-height:1.35;color:var(--black);text-align:center}

/* ==========================================================================
   DESKTOP overrides (separate template, Figma 36-2369: 768 tablet / 1024 PC)
   ========================================================================== */
body{background:#eef1f4}
.app{max-width:1024px}

/* header */
.menu{padding:20px 18px;gap:8px}
.menu .logo{margin-right:8px}
.search{max-width:none}
.hdr-lang{position:relative;flex:none;display:flex;align-items:center;gap:6px;height:33px;padding:0 10px;border:1px solid var(--grey);border-radius:4px;background:#fff;cursor:pointer;font-size:14px}
.hdr-lang .lang__menu{top:calc(100% + 6px);bottom:auto;right:0}
.hdr-lang:hover .lang__menu,.hdr-lang:focus-within .lang__menu{display:block}

/* hero band: exactly 320px image area (design y=73..393) */
.hero{position:relative;background:#fff}
.hero::before{content:"";position:absolute;top:0;left:0;right:0;height:320px;background:linear-gradient(180deg,#2f9df4 0%,#1e86e6 55%,#153f77 100%)}
.hero::after{content:"";position:absolute;left:0;right:0;top:200px;height:120px;opacity:.14;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='430' height='120'%3E%3Cg fill='%23ffffff'%3E%3Crect x='0' y='70' width='34' height='50'/%3E%3Crect x='30' y='52' width='26' height='68'/%3E%3Crect x='60' y='84' width='30' height='36'/%3E%3Crect x='92' y='60' width='22' height='60'/%3E%3Crect x='118' y='78' width='34' height='42'/%3E%3Crect x='150' y='44' width='24' height='76'/%3E%3Crect x='178' y='88' width='30' height='32'/%3E%3Crect x='210' y='66' width='28' height='54'/%3E%3Crect x='240' y='80' width='34' height='40'/%3E%3Crect x='276' y='50' width='22' height='70'/%3E%3Crect x='302' y='84' width='32' height='36'/%3E%3Crect x='336' y='64' width='26' height='56'/%3E%3Crect x='366' y='76' width='34' height='44'/%3E%3Crect x='398' y='56' width='24' height='64'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom}
.hero .crumbs{position:relative;z-index:1;padding:16px 18px;color:rgba(255,255,255,.85)}
.hero .crumbs a{color:rgba(255,255,255,.85)}
.hero .crumbs .last{color:#fff;font-weight:500}

/* two-column layout: main 652 + aside 300 */
.cols{position:relative;z-index:1;display:flex;gap:36px;padding:12px 18px 0}
.cols .colmain{width:652px;flex:none;min-width:0}
.cols .colaside{width:300px;flex:none}
@media (max-width:1000px){ .cols{flex-direction:column} .cols .colmain{width:100%} .cols .colaside{display:none} }

/* current weather card on hero */
.nowcard{background:#fff;border-radius:8px;box-shadow:0 8px 13px rgba(21,52,86,.12);padding:16px 18px}
.nowcard .now{padding:0}
.nowcard .now__title{font-size:20px}
.nowcard .now__body{height:124px}

/* week tabs + period grid (desktop) */
.wkrow{display:flex;gap:8px;margin-top:16px;align-items:stretch}
.wkrow #week{flex:1;display:flex;gap:2px}
.wkrow .day{width:auto;flex:1}
.wkrow #period{flex:none;width:150px;display:grid;grid-template-columns:1fr 1fr;gap:6px}
.wkrow #period a{display:flex;align-items:center;justify-content:center;padding:4px 6px}

/* hourly + detail */
#hourly{margin-top:16px}

/* ads */
.ad{background:var(--dff0);border-radius:8px;min-height:250px;display:flex;align-items:center;justify-content:center;color:var(--gray5);font-size:12px;text-align:center;position:relative;margin-bottom:20px}
.ad--tall{min-height:599px}
.ad__label{position:absolute;top:6px;right:8px;font-size:10px;color:var(--gray5)}

/* content sections width on desktop */
.sec{padding:26px 18px 0}
.sec .title{margin-bottom:12px;display:block}
.smlist{display:flex;gap:16px}
.smlist .sm{flex:1}

/* cities: 5 columns on desktop, 3 on tablet */
.cities{padding:26px 18px 40px}
.cgrid{grid-template-columns:repeat(5,1fr)}
@media (max-width:1000px){ .cgrid{grid-template-columns:repeat(3,1fr)} }
.ct{width:auto}

/* footer quick links inline */
.flinks{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;gap:12px 40px;padding:14px 24px;text-align:left}

/* footer */
.footer{align-items:stretch;text-align:left}
.footer__row .informers{text-align:center}
.footer__links{flex-direction:row;justify-content:space-between;width:100%}
.footer__links .r{justify-content:flex-start}

/* month list wider paddings */
.mlist{padding:20px 18px 0}
.mrow.open{margin:4px -18px;padding:0 16px}
.period--std{margin:12px 18px 0}

/* map modal reuse; search dropdown fine */

/* --- 1:1 refinements --- */
.day .m{display:block;font-size:11px;color:var(--gray5);margin-top:-4px}
.wkrow .day{padding:8px 2px;gap:4px}
.detail{margin-top:16px}
#hourly table{width:100%;min-width:0}
#hourly th,#hourly td{border-right:1px solid var(--grey)}
#hourly thead .hour{font-size:13px;padding:6px 4px 2px}
#hourly tbody td:not(.lbl){min-width:0;padding-left:4px;padding-right:4px}
#hourly tbody .temp td{font-size:13px}
#hourly .lbl{min-width:104px;font-size:10px}
#hourly thead .ico{padding:0 4px 4px}
#hourly thead .ico img{width:24px;height:24px}
#hourly table{table-layout:fixed;width:100%}
#hourly .lbl{width:100px;min-width:100px}
#hourly th,#hourly td{overflow:hidden;text-overflow:clip}

/* --- full-width bands + centered 1024 content; header #F5FAFE; sun/moon 2 cols --- */
body{background:#fff}
.app{max-width:none}
.menu{background:var(--f5);padding:20px max(18px,calc(50% - 494px))}
.hero .crumbs{max-width:1024px;margin:0 auto;padding:16px 18px}
.hero .cols,.app > .cols{max-width:1060px;margin:0 auto;box-sizing:border-box}
.app > .cols{padding-top:0}
.cities{max-width:1024px;margin:0 auto}
.flinks{padding:14px max(24px,calc(50% - 488px))}
.footer{max-width:1024px;margin:0 auto}
.smlist{flex-direction:row}

/* --- Windy map block in main column (replaces 652×326 ad) --- */
.colmain .map-sec{padding:20px 0 0}
.colmain .map{height:326px}

/* ---------- static pages (privacy/agreement/contacts) ---------- */
.static-page{padding:24px 20px 40px;max-width:768px}
.static-page h1{font-size:22px;font-weight:600;margin:0 0 16px;color:var(--black)}
.static-page p{margin:0 0 10px;line-height:1.55}
.static-page ul,.static-page ol{margin:0 0 12px;padding-left:22px}
.static-page li{margin:0 0 6px;line-height:1.5}
.static-page a{color:var(--blue)}
.cform label{display:block;margin:14px 0 6px;font-weight:500}
.cform input,.cform textarea{width:100%;border:1px solid var(--grey);border-radius:8px;padding:10px;font:inherit;background:#fff}
.cform textarea{min-height:150px;resize:vertical}
.cform button{margin-top:16px;background:var(--blue);color:#fff;border-radius:8px;padding:12px 32px;font-weight:500;cursor:pointer}
.cform button:hover{background:var(--dblue)}
.static-page{margin:0 auto}

/* ---------- region: cities with current weather ---------- */
.obl{padding:26px 20px 8px}
.obl .title{margin-bottom:14px;display:block}
.ogrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px 12px}
.ocard{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;background:var(--f5);transition:background .15s}
.ocard:hover{background:var(--dff0)}
.ocard--big{grid-column:1/-1;background:var(--dff0);padding:14px 16px}
.ocard img{width:36px;height:36px;flex:none}
.ocard--big img{width:48px;height:48px}
.ocard__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ocard__name{font-size:14px;font-weight:600;line-height:1.2;color:var(--black);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ocard--big .ocard__name{font-size:17px}
.ocard__cond{font-size:12px;color:var(--gray5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ocard__temp{font-size:17px;font-weight:600;flex:none;color:var(--black)}
.obl{max-width:1024px;margin:0 auto}
.ogrid{grid-template-columns:repeat(auto-fill,minmax(224px,1fr))}

/* --- plain pages (region/static): no hero background --- */
.page-plain .hero{background:#fff}
.page-plain .hero::before,.page-plain .hero::after{display:none}
.page-plain .hero .crumbs,.page-plain .hero .crumbs a{color:var(--gray5)}
.page-plain .hero .crumbs .last{color:var(--navy)}

/* ---------- informer constructor ---------- */
.inf-intro{margin:0 0 14px;line-height:1.5}
.inf-lb{display:block;font-weight:500;margin:10px 0 6px}
.inf-in{width:100%;max-width:360px;border:1px solid var(--grey);border-radius:8px;padding:10px;font:inherit;background:#fff}
.inf-chosen{margin:10px 0;display:flex;gap:8px;flex-wrap:wrap}
.inf-tag{background:var(--dff0);border-radius:20px;padding:6px 12px;font-size:13px}
.inf-tag b{cursor:pointer;color:var(--dblue);margin-left:4px}
.inf-none{color:var(--gray5);font-size:13px}
.inf-opts{display:flex;gap:16px;flex-wrap:wrap;margin:12px 0}
.inf-opts label{font-size:13px;display:flex;align-items:center;gap:6px}
.inf-opts select{border:1px solid var(--grey);border-radius:6px;padding:6px 8px;font:inherit;background:#fff}
.inf-h{font-size:15px;font-weight:600;margin:16px 0 8px}
.inf-prev{width:230px;border:0;display:block}
.inf-code{width:100%;max-width:560px;min-height:84px;border:1px solid var(--grey);border-radius:8px;padding:10px;font:12px/1.5 monospace;background:var(--f5)}
.inf-gallery{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-start}
.inf-cell{cursor:pointer;border:2px solid transparent;border-radius:10px;padding:4px}
.inf-cell.on{border-color:var(--blue)}
.inf-note{color:var(--gray5);font-size:12px;margin:0 0 8px;line-height:1.4}
h1.now__title{margin:0;font-size:18px;font-weight:500}

/* ---------- city grid cards in ONE line ---------- */
.ct{flex-direction:row;align-items:center;gap:6px}
.ct .nm{flex:1;min-width:0;font-size:12px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ct .wi{flex:none;gap:4px}
.ct .wi img{width:16px;height:16px}
.ct .wi .tp{font-size:11px;white-space:nowrap}

/* --- period pages: standalone full-width period switcher --- */
.page-period .wkrow{display:block;margin-top:16px}
.page-period #period{width:100%;display:flex;gap:8px}
.page-period #period a{flex:1;display:flex;align-items:center;justify-content:center;padding:10px 8px;font-size:14px}

/* ---------- homepage ---------- */
.home{padding:20px 20px 8px}
.home .title{margin:22px 0 12px;display:block}
.geo-card{display:flex;align-items:center;gap:10px;background:var(--dff0);border-radius:10px;padding:12px 14px;margin-bottom:4px}
.geo-card img{width:32px;height:32px}
.geo-card .t{flex:1;font-size:14px}
.geo-card .t b{font-size:16px}
.geo-card .go{background:var(--blue);color:#fff;border-radius:8px;padding:8px 14px;font-size:13px;white-space:nowrap}
.ostats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.ostat{background:var(--f5);border-radius:10px;padding:12px 14px;min-width:0}
.ostat__v{font-size:20px;font-weight:600;color:var(--black);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ostat__l{font-size:12px;color:var(--gray5);margin-top:2px}
.ochips{display:flex;flex-wrap:wrap;gap:8px}
.ochip{background:var(--f5);border-radius:20px;padding:8px 14px;font-size:13px;color:var(--dblue)}
.ochip:hover{background:var(--dff0)}
.faq{display:flex;flex-direction:column;gap:10px}
.faq details{background:var(--f5);border-radius:10px;padding:12px 14px}
.faq summary{font-weight:600;font-size:14px;cursor:pointer}
.faq p{margin:8px 0 0;font-size:13px;line-height:1.5;color:var(--black)}
.home{max-width:1064px;margin:0 auto;box-sizing:border-box}
.ostats{grid-template-columns:repeat(4,1fr)}

/* ---------- Ukraine map (homepage) ---------- */
.uamap-wrap{margin:4px 0 8px}
.uamap{width:100%;height:auto;display:block;overflow:visible}
.uamap-region{fill:var(--dff0);stroke:#fff;stroke-width:1.1;transition:fill .2s;cursor:pointer}
.uamap a:hover .uamap-region{fill:var(--d4ec)}
.uamap-citylink{cursor:pointer;text-decoration:none}
.uamap-label{fill:var(--navy);font-size:13px;font-weight:600;font-family:inherit}
.uamap-val{fill:var(--dblue);font-weight:600}
.uamap-citylink:hover .uamap-label{fill:var(--blue)}
