/*
Theme Name: NERU LIFE Original
Author: NERU LIFE
Description: Самостоятельная тема на основе согласованного HTML-макета NERU LIFE.
Version: 1.1.0
Requires PHP: 7.2
Text Domain: nerulife-original
*/

:root{--red:#ed002c;--dark:#141b29;--muted:#687184;--line:#e8eaf0}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--dark);font:14px/1.42 Arial,Helvetica,sans-serif}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.wrap{max-width:1220px;margin:auto;padding:0 18px}.top{border-bottom:1px solid var(--line)}.topin{display:flex;align-items:center;gap:24px;min-height:100px}.brand{width:176px;flex-shrink:0}.brand img{width:100%;height:76px;object-fit:contain}.tagline{border-left:1px solid var(--line);padding-left:18px;color:#525c6d;font-size:13px;min-width:172px}.date{border-left:1px solid var(--line);padding-left:20px;font-size:12px;color:#596477;min-width:125px}.weather-top{border-left:1px solid var(--line);padding-left:20px;display:flex;align-items:center;gap:9px}.weather-top strong{font-size:26px}.weather-top small{color:var(--muted);font-size:12px}.sun{font-size:35px}.search{margin-left:auto;display:flex;background:#f5f6f8;border-radius:9px;padding:9px 12px;gap:6px;align-items:center;min-width:155px}.search input{border:0;outline:0;background:transparent;width:135px;font-size:12px}.iconbtn{border:0;background:none;font-size:24px;padding:8px}.nav{box-shadow:0 4px 14px #1420360b}.navin{display:flex;gap:4px;align-items:center;overflow-x:auto;scrollbar-width:none}.nav button{border:0;background:transparent;padding:14px 12px;white-space:nowrap;font-weight:700;font-size:12px;border-radius:5px}.nav button.active,.nav button:hover{background:var(--red);color:white}.main{padding-top:18px}.lead{display:grid;grid-template-columns:minmax(0,2.25fr) minmax(260px,1.35fr) 227px;gap:13px}.hero{height:414px;position:relative;overflow:hidden;border-radius:8px;background:#202b38;color:white}.hero img{width:100%;height:100%;object-fit:cover}.hero:after{content:"";position:absolute;inset:30% 0 0;background:linear-gradient(transparent,#090e19f2)}.hero-content{position:absolute;z-index:2;bottom:16px;left:22px;right:22px}.badge{background:var(--red);color:white;padding:5px 9px;border-radius:4px;display:inline-block;font-size:11px;font-weight:800;text-transform:uppercase}.hero h1{font-size:27px;line-height:1.1;margin:13px 0}.hero p{margin:0 0 12px;font-size:13px}.meta{color:#8b95a6;font-size:11px}.hero .meta{color:white}.hero-controls{float:right;display:flex;gap:6px}.hero-controls button{background:#ffffff55;color:white;border:0;border-radius:50%;width:32px;height:32px;font-size:20px}.mini{display:flex;gap:12px;padding:0 0 12px;margin-bottom:12px;border-bottom:1px solid var(--line);cursor:pointer}.mini img{width:39%;height:105px;object-fit:cover;border-radius:6px}.mini h3{font-size:14px;line-height:1.2;margin:6px 0 13px}.right{display:flex;flex-direction:column;gap:11px}.gallery{position:relative;height:301px;border-radius:7px;overflow:hidden;background:#1d2a35;color:white;text-align:center}.gallery>img{height:100%;width:100%;object-fit:cover;filter:brightness(.58)}.gallery .overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px}.gallery .overlay img{width:130px;height:110px;object-fit:contain}.gallery h3{font-size:21px;line-height:1.1;margin:3px 0}.gallery p{margin:6px 0 10px}.redbtn{background:var(--red);border:0;color:white;border-radius:7px;padding:12px 17px;font-weight:700}.ad{border-radius:7px;background:var(--red);color:white;padding:16px;min-height:175px}.ad h2{font-size:22px;line-height:1.1;margin:0 0 9px}.ad p{margin:0 0 9px}.ad button{background:white;border:0;border-radius:5px;padding:8px 12px;font-weight:700}.quick{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:18px 0 26px}.quick button{border:1px solid #f1f1f1;border-radius:9px;background:#fafafa;display:flex;gap:10px;align-items:center;padding:11px;text-align:left;min-width:0}.quick .round{display:grid;place-items:center;border-radius:50%;background:var(--red);color:white;width:40px;height:40px;flex-shrink:0;font-size:20px}.quick strong{font-size:12px}.quick small{font-size:10px;color:var(--muted)}.below{display:grid;grid-template-columns:1.55fr 1.12fr .7fr;gap:20px}.sectiontitle{display:flex;justify-content:space-between;align-items:center;margin:0 0 10px}.sectiontitle h2{font-size:23px;margin:0}.sectiontitle button{color:var(--red);border:0;background:none;font-weight:bold;font-size:12px}.newsitem{display:flex;gap:20px;padding:10px 0;border-bottom:1px solid var(--line);cursor:pointer}.newsitem img{width:148px;height:94px;object-fit:cover;border-radius:5px}.newsitem h3{font-size:14px;line-height:1.24;margin:7px 0 11px}.newsitem .badge{font-size:9px;padding:3px 6px}.feature{border:1px solid var(--line);border-radius:7px;overflow:hidden;cursor:pointer}.feature img{width:100%;height:162px;object-fit:cover}.feature-body{padding:13px}.feature h2{font-size:21px;line-height:1.15;margin:8px 0}.feature p{color:#616b7a}.subscribe{background:#f7f7f8;border-radius:8px;padding:16px;margin-top:12px}.subscribe h3{margin:0}.subscribe form{display:flex;gap:7px;margin-top:12px}.subscribe input{min-width:0;flex:1;border:1px solid #dce1e7;border-radius:6px;padding:10px}.sidecard{border:1px solid var(--line);border-radius:7px;padding:13px;margin-bottom:11px}.sidecard h3{font-size:16px;margin:0 0 12px}.temp{font-size:30px;font-weight:bold}.forecast{display:flex;gap:12px;align-items:center}.sidecard p{color:var(--muted);font-size:12px}.popular{display:flex;gap:8px;padding:9px 0;border-bottom:1px solid var(--line);cursor:pointer;font-size:11px}.popular b{color:var(--red)}footer{margin-top:26px;background:#171d28;color:white;padding:20px 0}footer .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px}footer img{width:120px;height:55px;object-fit:contain}.modal{position:fixed;inset:0;background:#0009;z-index:10;display:none;align-items:center;justify-content:center;padding:16px}.modal.open{display:flex}.dialog{background:white;border-radius:12px;max-width:680px;max-height:90vh;overflow:auto;width:100%;padding:22px;position:relative}.dialog img{width:100%;max-height:280px;object-fit:cover;border-radius:8px}.close{position:absolute;right:15px;top:10px;border:0;background:white;border-radius:50%;font-size:26px}.dialog h2{font-size:26px;line-height:1.2}.dialog p{font-size:15px}.dialog a{color:var(--red);font-weight:700}.empty{padding:30px;color:var(--muted)}@media(max-width:1000px){.lead{grid-template-columns:1.6fr 1fr}.lead>.right{grid-column:1/-1;flex-direction:row}.gallery,.ad{flex:1}.below{grid-template-columns:1.3fr 1fr}.below aside{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px}.date,.tagline{display:none}}@media(max-width:680px){.wrap{padding:0 12px}.topin{min-height:75px;gap:8px}.brand{width:125px}.brand img{height:65px}.weather-top{margin-left:auto;padding:0;border:0}.weather-top strong{font-size:20px}.weather-top small{display:none}.sun{font-size:24px}.search{min-width:0;padding:7px;margin-left:0}.search input{width:65px}.lead,.below{display:block}.hero{height:380px;margin-bottom:14px}.hero h1{font-size:23px}.mini{width:100%}.mini img{width:36%}.lead>.right{display:grid;grid-template-columns:1fr 1fr;gap:9px}.gallery{height:220px}.gallery .overlay img{width:100px;height:70px}.gallery h3{font-size:16px}.gallery p{font-size:11px}.gallery .redbtn{padding:8px;font-size:11px}.ad{min-height:220px;padding:12px}.ad h2{font-size:18px}.quick{grid-template-columns:repeat(2,1fr);margin:12px 0 25px}.quick button:last-child{grid-column:1/-1}.below>div,.below>aside{margin-bottom:22px}.below aside{display:block}.newsitem img{width:115px;height:85px}.newsitem{gap:12px}footer .wrap{flex-wrap:wrap}.hero-content{left:15px;right:15px}}
.brand img{height:68px;object-position:left center}.gallery .overlay img{height:74px;width:160px}footer img{height:55px;width:135px}@media(max-width:680px){.brand img{height:53px}} 
/* WordPress integration */
.navin a{padding:14px 12px;white-space:nowrap;font-weight:700;font-size:12px}.navin a:hover{background:var(--red);color:white}.hero a,.mini a,.newsitem a,.feature a{display:block}.hero img{position:absolute;inset:0}.wp-caption{max-width:100%}.article{max-width:850px;margin:30px auto;font-size:17px;line-height:1.7}.article img{max-width:100%;height:auto}.article h1{font-size:34px}.article .wp-post-image{width:100%;height:auto;border-radius:9px}.pagination{margin:20px 0}.screen-reader-text{position:absolute;left:-9999px}

.quick .quick-link{border:1px solid #f1f1f1;border-radius:9px;background:#fafafa;display:flex;gap:10px;align-items:center;padding:11px;text-align:left;min-width:0}.quick .round{display:grid}.navin .menu-item{list-style:none}.navin ul{display:contents}.navin li{list-style:none}.navin li a{display:block}.gallery .overlay .redbtn{display:inline-block}.hero a{height:100%}@media(max-width:680px){.quick .quick-link:last-child{grid-column:1/-1}}

/* NERU LIFE 1.1: stable homepage columns and thumbnails */
.lead{grid-template-columns:minmax(0,1.85fr) minmax(0,1.1fr) minmax(0,0.9fr);gap:18px;align-items:start}
.lead>div,.below>div,.below>aside{min-width:0}
.mini{display:grid;grid-template-columns:128px minmax(0,1fr);gap:12px;align-items:start}
.mini>a{display:block;width:128px;height:94px;min-width:0;overflow:hidden;border-radius:7px}
.mini>a img{display:block;width:100%;height:100%;object-fit:cover;border-radius:7px}
.mini>div{min-width:0;overflow-wrap:anywhere}
.mini h3{margin:5px 0 10px;font-size:14px;line-height:1.3}
.newsitem>a{display:block;flex:0 0 140px;height:94px;overflow:hidden;border-radius:6px}
.newsitem>a img{display:block;width:100%;height:100%;object-fit:cover}
.newsitem>div{min-width:0;overflow-wrap:anywhere}
.hero>a{display:block;width:100%;height:100%}
.hero>a>img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:1050px){.lead{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}.lead>.right{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.gallery{height:240px}.below{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.below aside{grid-column:1/-1}}
@media(max-width:680px){.lead,.below{display:block}.mini{grid-template-columns:112px minmax(0,1fr)}.mini>a{width:112px;height:86px}.lead>.right{display:grid;grid-template-columns:1fr 1fr}.newsitem>a{flex-basis:110px;height:82px}.hero{height:380px}}

/* Weather: temperature only */
.neru-weather-degrees{font-size:44px;font-weight:800;line-height:1.2;margin:10px 0 4px;letter-spacing:-1px}

/* v1.3: compact weather in header, expandable search icon */
.topin{position:relative}.weather-top{gap:9px;white-space:nowrap}.weather-city{font-size:12px;color:#596477;font-weight:700}.weather-degree{font-size:27px;font-weight:800;line-height:1;color:#141b29}.search-toggle{position:relative;margin-left:auto;flex-shrink:0}.search-toggle summary{list-style:none;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;cursor:pointer;color:#141b29;background:#f5f6f8}.search-toggle summary::-webkit-details-marker{display:none}.search-toggle summary:hover,.search-toggle[open] summary{background:#ed002c;color:#fff}.search-popover{position:absolute;right:0;top:calc(100% + 10px);z-index:100;display:flex;gap:8px;align-items:center;background:#fff;border:1px solid #e8eaf0;box-shadow:0 8px 28px #141b292b;padding:12px;border-radius:10px;width:min(330px,calc(100vw - 24px))}.search-popover input{width:100%;min-width:0;flex:1;padding:10px;border:1px solid #dce1e7;border-radius:6px;outline-offset:2px}.search-popover button{background:#ed002c;color:#fff;border:0;border-radius:6px;padding:11px 12px;font-weight:700}@media(max-width:680px){.topin{gap:8px}.weather-top{margin-left:auto;padding-left:8px}.weather-city{font-size:11px}.weather-degree{font-size:22px}.search-toggle{margin-left:0}.search-toggle summary{width:38px;height:38px}}@media(max-width:370px){.weather-city{display:none}.weather-top{padding-left:4px}.brand{width:115px}}
