@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* Visual identity baseline for the local Yabloko 74 prototype.
   Gilroy is used when an approved webfont is provided; Manrope remains a temporary fallback. */
:root{
  --brand-green:#21a73f;
  --brand-green-deep:#146b2c;
  --brand-green-pale:#edf7ee;
  --brand-red:#e31e24;
  --brand-red-deep:#a8191d;
  --brand-ink:#111111;
  --brand-muted:#657067;
  --brand-line:#dfe8e1;
  --brand-gray:#f5f6f4;
  --brand-font:"Gilroy","Manrope",Arial,sans-serif;
}

body{font-family:var(--brand-font)!important;color:var(--brand-ink)!important;background:#fff}

/* Public site */
.head{height:96px;border-bottom:1px solid var(--brand-line);position:relative}
.head .brand{width:238px!important;flex:0 0 238px!important;gap:12px!important}
.head .brand img{width:170px!important;height:58px!important;object-fit:contain}
img[src="assets/yabloko-party-logo.svg"]{content:url('yabloko-brandbook-wordmark.png')!important}
.head .brand span{display:block!important}.head .brand strong{display:none!important}.head .brand small{display:block!important;margin:0!important;font-size:8.8px!important;line-height:1.22!important;letter-spacing:0!important;color:var(--brand-ink)!important}
.head .nav{gap:clamp(15px,2vw,30px);font-size:11px;font-weight:700;letter-spacing:.01em}
.head .nav a{position:relative;padding:8px 0;color:var(--brand-ink)}
.head .nav a:after{content:"";position:absolute;left:0;right:100%;bottom:1px;height:2px;background:var(--brand-green);transition:right .18s ease}
.head .nav a:hover:after,.head .nav a:focus-visible:after{right:0}
.search{filter:none}
.donate{background:var(--brand-red)!important;border-radius:999px!important;box-shadow:none!important;font-family:var(--brand-font)!important}
.donate:hover{background:var(--brand-red-deep)!important}
.hero{min-height:570px;position:relative;overflow:hidden;box-shadow:inset 0 0 0 2000px #146b2c2e}
.hero:before,.hero:after{content:"";position:absolute;pointer-events:none;border-radius:50%;border:1px solid #ffffff66}
.hero:before{width:480px;height:480px;right:-160px;top:-210px}
.hero:after{width:210px;height:210px;right:6%;bottom:-150px}
.hero .wrap{position:relative;z-index:1}
.hero h1{font-weight:800!important;letter-spacing:-.045em!important;max-width:700px!important}
.hero h1 em{color:#fff!important}
.redline,.under{background:var(--brand-red)!important;height:3px!important}
.btn{font-family:var(--brand-font)!important;font-weight:800!important;border-radius:999px!important;letter-spacing:.01em}
.primary,.hero-btn-green{background:var(--brand-green)!important;color:#fff!important}
.primary:hover,.hero-btn-green:hover{background:var(--brand-green-deep)!important}
.hero .outline,.cta .outline{border:1px solid var(--brand-red)!important;background:transparent!important}
.hero .outline{color:var(--brand-ink)!important}.cta .outline{color:#fff!important}
.sec{padding-top:56px!important;padding-bottom:52px!important;position:relative}
.tint{background:linear-gradient(180deg,#f7faf7,#fff)!important;border-top:1px solid #edf1ed;border-bottom:1px solid #edf1ed}
.title-row h2{font-weight:800!important;letter-spacing:-.045em!important;font-size:34px!important}
.all{color:var(--brand-green-deep)!important;font-weight:800!important}
.cards,.projects,.help{gap:16px!important}
.priority,.project,.help-card,.event-preview{border:1px solid var(--brand-line)!important;box-shadow:none!important;border-radius:16px!important}
.priority{position:relative;background-color:#fff!important;min-height:198px!important}
.priority:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#ffffff12,transparent 55%);pointer-events:none}
.priority i{position:relative;color:var(--brand-green)!important;background:var(--brand-green-pale)!important;border:1px solid #d7ecd9!important;width:48px!important;height:48px!important}
.priority b{position:relative;font-weight:800!important;letter-spacing:-.02em}
.round-arrow{background:var(--brand-green-pale)!important;color:var(--brand-green)!important;border:1px solid #d7ecd9!important;font-size:0!important}.round-arrow:after{content:'→';font:700 16px/1 Arial,sans-serif;color:var(--brand-green)}
.member .face{border:7px solid #fff;box-shadow:0 0 0 1px var(--brand-line);filter:saturate(.72) contrast(.98)}
.member b{font-weight:800!important}.member span{color:var(--brand-muted)!important}
.project{background:#fff!important}.project .pic{filter:saturate(.8)}
.pbody{padding:16px 18px 20px!important}.tag{color:var(--brand-green-deep)!important;font-weight:800!important}.pbody b{font-weight:800!important;letter-spacing:-.02em}
.help-card{min-height:154px!important;background:#fff!important}.help-card i{color:var(--brand-green)!important}.help-card:nth-child(2) i{color:var(--brand-red)!important}.help-card b{font-weight:800!important}
.help-card .round-arrow{width:auto!important;height:auto!important;min-width:0!important;margin-top:auto!important;align-self:flex-start!important;display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;background:transparent!important;border:0!important}.help-card .round-arrow:after{content:'→';font:800 28px/1 Arial,sans-serif!important;color:var(--brand-green)!important}
.cta{min-height:320px!important;position:relative;overflow:hidden}.cta:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#146b2cf0,#21a73f99 58%,#21a73f22);pointer-events:none}.cta .wrap{position:relative;z-index:1}.cta h2{font-weight:800!important;letter-spacing:-.045em!important}.cta h2 em{color:#fff!important;text-decoration:underline;text-decoration-color:var(--brand-red);text-decoration-thickness:4px;text-underline-offset:7px}
.footer{border-top:1px solid var(--brand-line)!important;padding-top:42px!important}.foot{color:var(--brand-muted)!important}.subscribe{background:var(--brand-green-pale)!important;border:1px solid #d8ecda!important;border-radius:14px!important}.newsletter-row button{background:var(--brand-green)!important}.newsletter-row{border-color:#cfe6d2!important}
.participation-modal,.help-modal{background:#12351dd9!important}.participation-box,.help-dialog{border-radius:16px!important;box-shadow:0 22px 60px #1028152b!important}.participation-close,.help-close{background:var(--brand-green-pale)!important;color:var(--brand-green-deep)!important}.participation-box h2:after,.help-dialog h2:after{background:var(--brand-red)!important;height:3px!important}.participation-details,.help-details{background:var(--brand-green-pale)!important}.participation-submit,.participation-pay,.help-submit,.help-payment{background:var(--brand-green)!important;border-radius:999px!important;font-family:var(--brand-font)!important}.participation-submit:hover,.participation-pay:hover,.help-submit:hover,.help-payment:hover{background:var(--brand-green-deep)!important}.help-payment-list{gap:10px!important}.events-empty{background:#f9fbf9!important;border-color:#cfe4d2!important;color:var(--brand-muted)!important}.event-preview{background:#fff!important}.event-preview time{color:var(--brand-green-deep)!important}

/* Admin panel */
.login{border-color:var(--brand-line)!important;border-radius:16px!important;box-shadow:0 20px 52px #123b1b12!important}
.login .brand img{width:176px!important;height:58px!important}.login .brand span{font-size:8.8px!important;line-height:1.25!important}.login h1,.top h1{font-weight:800!important;letter-spacing:-.045em!important}
.side{background:var(--brand-green-deep)!important}.side .brand{gap:10px!important}.side .brand img{width:164px!important;height:54px!important;filter:none!important;background:#fff;padding:4px 6px;border-radius:5px}.side .brand span{font-size:8px!important;line-height:1.25!important}
.nav a.active{background:#ffffff24!important}.nav a:hover{background:#ffffff18!important}.panel,.top{border-color:var(--brand-line)!important;border-radius:14px!important;box-shadow:none!important}
.content{max-width:1240px!important}.enter,.save,.add-btn{background:var(--brand-green)!important;font-family:var(--brand-font)!important}.enter:hover,.save:hover,.add-btn:hover{background:var(--brand-green-deep)!important}
input,textarea,select{font-family:var(--brand-font)!important;border-color:var(--brand-line)!important;background:#fff!important}input:focus,textarea:focus,select:focus{border-color:var(--brand-green)!important;box-shadow:0 0 0 3px #21a73f1f!important}
h1:after,h2:after{background:var(--brand-red)!important;height:3px!important}.friendly,.record-main span,.login p,.top p{color:var(--brand-muted)!important}
.editable-section-title:after{background:transparent!important;height:auto!important}
.record{border-color:var(--brand-line)!important;border-radius:12px!important}.record-index,.icon{background:var(--brand-green-pale)!important;color:var(--brand-green)!important}.light-btn{background:var(--brand-green-pale)!important;color:var(--brand-green-deep)!important}.section-toggle{background:var(--brand-green-pale)!important;border-color:#d4ead7!important}.section-toggle input:checked+.section-switch{background:var(--brand-red)!important}.cover-editor,.image-drop{background:#f8fbf8!important;border-color:#dbeade!important}.warning{background:var(--brand-green-pale)!important;border-left-color:var(--brand-green)!important}

@media(max-width:760px){
  .head{height:76px}.head .brand{width:220px!important;flex-basis:220px!important}.head .brand img{width:156px!important;height:48px!important}.head .brand small{font-size:7.2px!important}
  .sec{padding-top:42px!important;padding-bottom:40px!important}.title-row h2{font-size:27px!important}
  .hero{min-height:540px}.hero:before{width:300px;height:300px;right:-150px;top:-135px}
}

.footer .brand{width:auto!important;gap:10px!important}.footer .brand img{width:166px!important;height:54px!important;object-fit:contain}.footer .brand strong{display:none!important}.footer .brand small{display:block!important;margin:0!important;font-size:8px!important;line-height:1.25!important;color:var(--brand-ink)!important}

/* Homepage composition: intentionally closer to the approved visual direction,
   rather than a recolour of the former photo-led layout. */
@media(min-width:761px){
  .hero{
    height:450px!important;min-height:450px!important;color:var(--brand-ink)!important;
    background-image:url('chelyabinsk-reference-hero.png')!important;
    background-position:center!important;background-size:cover!important;
    box-shadow:none!important;
  }
  .hero:before{width:620px;height:620px;right:-190px;top:-300px;border:1px solid #21a73f55;background:#dcefd933;z-index:0}
  .hero:after{width:340px;height:340px;right:11%;bottom:-240px;border:1px solid #21a73f66;z-index:0}
  .hero .wrap{max-width:1280px!important;margin:auto!important;padding-left:clamp(38px,7vw,125px)!important}
  .hero .wrap,.cta .wrap{max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:clamp(34px,5vw,86px)!important;padding-right:24px!important}
  .hero .wrap{transform:translateY(-46px)}
  .hero h1{color:var(--brand-ink)!important;font-size:50px!important;line-height:1.03!important;max-width:610px!important}
  .hero h1 em{color:var(--brand-green)!important}
  .hero .outline{border-color:var(--brand-red)!important;color:var(--brand-ink)!important;background:transparent!important}
  .hero .primary{box-shadow:0 8px 18px #146b2c22!important}
  .redline{width:54px!important;margin:24px 0!important}
  .sec{padding-top:64px!important;padding-bottom:58px!important}
  .sec.wrap{max-width:1280px!important}
  .tint{background:#f7faf7!important}
  .title-row{margin-bottom:2px!important}.title-row h2{font-size:38px!important;letter-spacing:-.055em!important}
  .cards{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important}
  .priority{
    min-height:218px!important;padding:24px!important;background:#fff!important;background-image:none!important;
    border:1px solid #d8e6da!important;box-shadow:0 8px 22px #183d1e0a!important;
  }
  .priority:hover{border-color:#8bc999!important;box-shadow:0 13px 30px #183d1e14!important}
  .priority i{width:54px!important;height:54px!important;font-size:28px!important;background:#f0f9f1!important}
  .priority b{font-size:17px!important;line-height:1.25!important;max-width:180px!important}
  .team-carousel{padding:5px 0!important}.team-carousel .team{gap:25px!important}.team-carousel .member{padding:0 3px!important}
  .member .face{box-shadow:0 0 0 1px #d6e4d8,0 8px 22px #123b1b12!important}.member b{font-size:13px!important}.member span{font-size:10px!important}
  .projects{gap:18px!important}.project{border:1px solid #d8e6da!important;box-shadow:0 8px 22px #183d1e0a!important}.project .pic{height:214px!important;filter:saturate(.72) contrast(.96)!important}.project .pbody{min-height:112px!important;padding:18px 19px 21px!important}.project .pbody b{font-size:18px!important;max-width:235px!important}
  .help{gap:16px!important}.help-card{padding:24px!important;min-height:170px!important;border:1px solid #d8e6da!important;box-shadow:0 8px 22px #183d1e0a!important}.help-card i{font-size:34px!important}.help-card b{font-size:17px!important;max-width:160px!important}
  #events{border-top:1px solid #e2ece3;border-bottom:1px solid #e2ece3;background:#f8fbf8!important;padding-top:56px!important;padding-bottom:56px!important}
  .events-empty{border-radius:16px!important;min-height:176px!important;background:#fff!important}
  .cta{min-height:300px!important;background-image:url('chelyabinsk-reference-cta.png')!important;background-position:center!important;background-size:cover!important}.cta:after{background:linear-gradient(90deg,#146b2c2a 0%,transparent 72%)!important}.cta h2{font-size:50px!important}.cta .outline{background:transparent!important;color:#fff!important}
  .footer{padding-top:48px!important;padding-bottom:4px!important}
}

/* Purpose-drawn UI icons replace placeholder glyphs in the editable cards. */
.priority i,.help-card i{font-size:0!important;background-color:#f0f9f1!important;background-repeat:no-repeat!important;background-position:center!important;background-size:29px!important}
.priority:nth-child(1) i{background-image:url('icons/priority-leaf.svg')!important}.priority:nth-child(2) i{background-image:url('icons/priority-rights.svg')!important}.priority:nth-child(3) i{background-image:url('icons/priority-city.svg')!important}.priority:nth-child(4) i{background-image:url('icons/priority-participation.svg')!important}
.help-card:nth-child(1) i{background-image:url('icons/help-member.svg')!important}.help-card:nth-child(2) i{background-image:url('icons/help-heart.svg')!important}.help-card:nth-child(3) i{background-image:url('icons/help-support.svg')!important}.help-card:nth-child(4) i{background-image:url('icons/help-calendar.svg')!important}
