/* Homepage refresh: warm palette, clear hierarchy, flexible responsive layout. */
#main:has(.home-hero) .home-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.02fr) minmax(360px,.98fr);align-items:center;gap:clamp(28px,5vw,76px);min-height:clamp(520px,55vw,680px);padding:clamp(54px,7vw,94px) max(5%,calc((100% - 1296px)/2));overflow:hidden;background:radial-gradient(ellipse at 84% 16%,rgba(220,239,226,.92),transparent 42%),linear-gradient(122deg,#fffaf1 0%,#fffdf8 56%,#f3f8ef 100%);border-bottom:1px solid #e5eadf}
.home-hero:before{content:"";position:absolute;z-index:-1;width:min(62vw,780px);height:min(62vw,780px);right:-22%;top:-40%;border:1px solid rgba(77,132,105,.14);border-radius:50%;box-shadow:0 0 0 42px rgba(77,132,105,.025),0 0 0 84px rgba(77,132,105,.02)}
#main:has(.home-hero) .hero-inner{order:1;position:relative;z-index:1;max-width:670px;width:100%;margin:0;translate:none}
.home-hero .eyebrow{display:inline-flex;gap:11px;align-items:center;border:1px solid #dbe7d5;border-radius:999px;padding:9px 15px;background:rgba(255,255,255,.74);font-size:12px;letter-spacing:1.25px}
.home-hero h1{max-width:650px;margin:27px 0 22px;font-size:clamp(50px,5.2vw,76px);line-height:1.02;letter-spacing:-.045em;font-weight:800}.home-hero h1 em{color:#27654d;font-style:normal}
.home-hero .lead{max-width:560px;margin:0;color:#53685e;font-size:clamp(18px,1.55vw,21px);line-height:1.75}.home-hero .actions{gap:13px;margin-top:28px}.home-hero .button{min-height:54px;padding:14px 22px}
.home-hero .hero-proof{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:30px;color:#61746a;font-size:14px}.home-hero .hero-proof b{color:#244d40;font-weight:800}.home-hero .hero-proof i{height:18px;border-left:1px solid #bdcdbf}
#main:has(.home-hero) .neighborhood-art{order:2;position:relative;justify-self:end;width:min(100%,600px);margin:0;animation:home-art-in .7s cubic-bezier(.2,.75,.25,1) both}
#main:has(.home-hero) .neighborhood-art:before{content:"ВОДНИКИ · ПЕРМЬ";position:absolute;z-index:2;right:-13px;bottom:22px;padding:12px 17px;border:1px solid rgba(255,255,255,.8);border-radius:999px;background:rgba(255,253,248,.94);box-shadow:0 8px 24px rgba(36,77,64,.09);color:#27654d;font-size:11px;font-weight:800;letter-spacing:1.2px}
#main:has(.home-hero) .neighborhood-art img{display:block;width:100%;height:auto;aspect-ratio:6/5;object-fit:cover;border:8px solid rgba(255,255,255,.82);border-radius:36px;box-shadow:0 30px 65px rgba(36,77,64,.14),8px 8px 0 rgba(232,180,106,.18)}
#main:has(.home-hero) .water-label{display:none}
#main:has(.home-hero) .home-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:1296px;margin:-1px auto 0;padding:0 24px;background:#fffdf8;border:1px solid #e7eadf;border-top:0;border-radius:0 0 26px 26px;box-shadow:0 12px 36px rgba(36,77,64,.045)}
.home-quick a{display:flex;align-items:center;gap:15px;min-height:98px;padding:19px 23px;border-right:1px solid #e5eadf;text-decoration:none}.home-quick a:last-child{border-right:0}
.home-quick .quick-count{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:50%;background:#e9f1df;color:#27654d;font-size:13px;font-weight:900}
.home-quick .quick-copy{display:grid;gap:4px;min-width:0}.home-quick .quick-copy small{color:#738278;font-size:10px;font-weight:800;letter-spacing:1.1px}.home-quick .quick-copy strong{color:#244d40;font-size:17px;font-weight:800}.home-quick a>b{margin-left:auto;color:#27654d;font-size:22px}.home-quick a:hover{background:#f5f8ef;transform:translateY(-2px)}
.home-overview.section{max-width:1344px;padding-top:88px;padding-bottom:78px}.home-overview-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:27px}
.home-overview-head h2{margin:17px 0 0;font-size:clamp(32px,3.4vw,46px);letter-spacing:-.025em}.home-overview-head .reading-lead{max-width:340px;margin:0 0 5px;color:#61746a;font-size:16px}
.home-overview .overview-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin:0}
.home-overview .overview-card{min-height:230px;padding:25px 27px;background:rgba(255,253,248,.9);border:1px solid #e4eade;border-radius:21px;box-shadow:0 8px 26px rgba(36,77,64,.045);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.home-overview .overview-card:nth-child(3n+1){background:linear-gradient(145deg,#f0f5e9,#fffdf8)}.home-overview .overview-card:nth-child(3n+2){background:linear-gradient(145deg,#edf5f3,#fffdf8)}.home-overview .overview-card:nth-child(3n){background:linear-gradient(145deg,#fff4e8,#fffdf8)}
.home-overview .overview-card .overview-icon{width:42px;height:42px;min-width:42px;background:rgba(255,255,255,.84);color:#27654d;border:1px solid #e3eade;font-size:12px;font-weight:900}
.home-overview .overview-card h3{margin:12px 0 0;color:#244d40;font-size:21px}.home-overview .overview-card p{margin:8px 0;color:#52685d;font-size:16px;line-height:1.65}.home-overview .overview-card .text-link{font-size:14px;font-weight:800}
.home-overview .overview-card:hover{transform:translateY(-4px);border-color:#bfd4bd;box-shadow:0 16px 32px rgba(36,77,64,.09)}.home-overview>.source-note{margin:19px 0 0;font-size:13px!important}
.home-news{background:linear-gradient(180deg,rgba(233,241,224,.64),rgba(255,250,241,.4))}.home-news .section,.home-events.section,.home-projects.section,.home-join-section.section{max-width:1344px;padding-top:70px;padding-bottom:70px}
.home-news .section-head,.home-events .section-head{align-items:end;margin-bottom:26px}.home-news .section-head h2,.home-events .section-head h2{margin:0;font-size:clamp(30px,3.2vw,42px)}
.home-news .empty,.home-events .empty{min-height:170px;border-radius:22px;padding:31px 35px;background:rgba(255,253,248,.93);box-shadow:0 10px 28px rgba(36,77,64,.05)}.home-news .empty p,.home-events .empty p{line-height:1.7}
.home-projects>h2{margin:16px 0 28px;font-size:clamp(31px,3.2vw,43px)}.home-projects .cards{gap:17px}
.home-projects .card{min-height:210px;padding:26px;border-radius:21px;background:rgba(255,253,248,.94);box-shadow:0 8px 25px rgba(36,77,64,.045)}
.home-projects .card:nth-child(2){background:linear-gradient(145deg,#edf5f3,#fffdf8)}.home-projects .card:nth-child(3){background:linear-gradient(145deg,#fff3e5,#fffdf8)}
.home-projects .card .number{font-size:11px;font-weight:900;letter-spacing:1.3px}.home-projects .card h3{margin:15px 0 8px;font-size:22px}.home-projects .card p{color:#52685d;line-height:1.7}
.home-join-section.section{padding-top:35px}.home-join{position:relative;overflow:hidden;align-items:center;min-height:235px;padding:clamp(30px,5vw,62px);border-radius:30px;background:linear-gradient(112deg,#244d40,#28634d 70%,#39816a);box-shadow:0 20px 46px rgba(36,77,64,.15)}
.home-join:after{content:"";position:absolute;right:11%;top:-86px;width:260px;height:260px;border:1px solid rgba(255,255,255,.2);border-radius:50%;box-shadow:0 0 0 34px rgba(255,255,255,.04),0 0 0 68px rgba(255,255,255,.03);pointer-events:none}
.home-join .eyebrow{color:#d7e8cf}.home-join h2{position:relative;z-index:1;max-width:740px;margin:16px 0 12px;font-size:clamp(30px,3.6vw,46px);line-height:1.16;color:#fff;font-weight:800}
.home-join p{position:relative;z-index:1;color:#e2eee4;font-size:17px}.home-join .button{position:relative;z-index:1;white-space:nowrap;background:#f3a35b;border-color:#f3a35b;color:#244d40}
@keyframes home-art-in{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:960px){#main:has(.home-hero) .hero{grid-template-columns:minmax(0,1fr) minmax(300px,.88fr);gap:32px;padding-left:5%;padding-right:5%}.home-hero h1{font-size:clamp(46px,5.2vw,60px)}.home-overview .overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-quick{padding-left:18px;padding-right:18px}.home-quick a{gap:11px;padding-left:15px;padding-right:15px}}
@media(max-width:700px){#main:has(.home-hero) .hero{grid-template-columns:1fr;min-height:0;gap:32px;padding:44px 24px 52px}.home-hero h1{font-size:clamp(48px,13vw,64px);margin-top:23px}.home-hero .lead{font-size:18px}.home-hero .actions{align-items:stretch;flex-direction:column}.home-hero .actions .button{width:100%;justify-content:space-between}.home-hero .hero-proof{font-size:13px;gap:10px}.home-hero .hero-proof i{height:14px}.home-hero .neighborhood-art{width:min(100%,520px);justify-self:center}.home-hero .neighborhood-art:before{right:8px;bottom:14px;font-size:9px}.home-hero .neighborhood-art img{border-width:5px;border-radius:26px;rotate:0;box-shadow:0 18px 38px rgba(36,77,64,.12)}#main:has(.home-hero) .home-quick{grid-template-columns:1fr;margin:16px 18px 0;padding:0;border-radius:21px;border-top:1px solid #e7eadf}.home-quick a{min-height:76px;padding:13px 17px;border-right:0;border-bottom:1px solid #e5eadf}.home-quick a:last-child{border-bottom:0}.home-overview.section{padding:58px 22px 53px}.home-overview-head{align-items:start;flex-direction:column;gap:5px;margin-bottom:21px}.home-overview-head h2{font-size:33px}.home-overview-head .reading-lead{font-size:15px}.home-overview .overview-grid{grid-template-columns:1fr;gap:13px}.home-overview .overview-card{min-height:195px;padding:22px}.home-news .section,.home-events.section,.home-projects.section{padding:53px 22px}.home-news .section-head,.home-events .section-head{align-items:start;flex-direction:column;gap:4px}.home-news .section-head h2,.home-events .section-head h2{font-size:31px}.home-news .empty,.home-events .empty{padding:24px;min-height:0}.home-projects .cards{grid-template-columns:1fr;gap:13px}.home-projects .card{min-height:175px;padding:23px}.home-join-section.section{padding:15px 22px 55px}.home-join{align-items:stretch;padding:28px 24px;border-radius:24px;gap:22px}.home-join h2{font-size:32px}.home-join .button{width:100%;justify-content:space-between}}
@media(prefers-reduced-motion:reduce){#main:has(.home-hero) .neighborhood-art{animation:none}.home-quick a,.home-overview .overview-card{transition:none}.home-quick a:hover,.home-overview .overview-card:hover{transform:none}}
