:root{
  --green-900: #0B3D22;
  --green-700: #0F7A3D;
  --green-600: #1AA34E;
  --green-500: #2ABE5F;
  --green-100: #E7F7EC;
  --paper: #F6FBF4;
  --card: #FFFFFF;
  --red: #E7384C;
  --red-deep: #C7233A;
  --ink: #0F1C14;
  --ink-soft: #4B5D52;
  --line: #D7EADA;
  --line-on-green: rgba(246,251,244,0.2);

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --wrap: 1160px;
  --radius: 14px;
  --radius-sm: 8px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.skip-link{
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--green-900);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  transition: top .2s ease;
}
.skip-link:focus{
  top: 12px;
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.hp-field{
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--green-900);
  line-height: 1.1;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.01em;
}

h1{ font-size: clamp(2.3rem, 4.6vw, 3.4rem); font-weight: 900; }

.hero-slogan{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--green-500);
  margin: 14px 0 0;
}
.hero-slogan::before{
  content: "";
  width: 26px; height: 2px;
  background: var(--red);
  flex: none;
}
h2{ font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
h3{ font-size: 1.12rem; margin-bottom: .4em; font-weight: 700; }

p{ margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin: 0 0 .9em;
  background: var(--green-100);
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
}
.eyebrow::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}
.eyebrow-light{ color: var(--green-500); background: rgba(42,190,95,0.12); }
.eyebrow-light::before{ background: var(--green-500); }

.section{ padding: 96px 0; }
.section-heading{ max-width: 640px; margin-bottom: 48px; }
.section-heading-center{ max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section-heading-center .eyebrow{ margin-left: auto; margin-right: auto; }
.section-lede{ font-size: 1.05rem; }
.section-lede-light{ color: rgba(246,251,244,0.78); }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn:focus-visible{ outline: 2px solid var(--red); outline-offset: 3px; }

.btn-primary{
  background: var(--green-900);
  color: var(--paper);
}
.btn-primary:hover{ background: var(--green-700); box-shadow: 0 10px 22px rgba(11,61,34,0.25); }

.btn-accent{
  background: var(--red);
  color: #fff;
}
.btn-accent:hover{ background: var(--red-deep); box-shadow: 0 10px 22px rgba(231,56,76,0.3); }

.btn-ghost{
  background: transparent;
  color: var(--green-900);
  border-color: var(--green-900);
}
.btn-ghost:hover{ background: var(--green-900); color: var(--paper); }

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,251,244,0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand-seal{
  flex: none;
  width: 46px; height: 46px;
  border-radius: 10px;
  color: var(--green-500);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .82rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.brand-seal img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-seal-small{ width: 38px; height: 38px; font-size: .7rem; border-radius: 9px; }

.brand-text{ display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong{ font-family: var(--font-display); font-size: .92rem; color: var(--green-900); font-weight: 700; }
.brand-text em{ font-style: normal; font-size: .72rem; color: var(--ink-soft); font-family: var(--font-mono); }

.main-nav{ display: flex; gap: 26px; }
.main-nav a{
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover{ color: var(--green-900); }
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right .2s ease;
}
.main-nav a:hover::after{ right: 0; }

.header-cta{ padding: 10px 22px; font-size: .88rem; }

.header-social{ display: flex; align-items: center; gap: 8px; }
.header-social-link{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  flex: none;
  border-radius: 50%;
  color: var(--green-900);
  opacity: .45;
  transition: opacity .18s ease, background .18s ease;
}
.header-social-link svg{ width: 16px; height: 16px; display: block; }
.header-social-link:hover{ opacity: 1; background: var(--green-100); }

.header-social-mobile{
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.nav-check{ display: none; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex: none;
}
.nav-toggle span{
  width: 22px; height: 2px; background: var(--green-900); display: block;
  transition: transform .2s ease, opacity .2s ease;
}

.mobile-nav{
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 4px 28px 22px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav a{
  padding: 13px 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav-cta{
  margin-top: 14px;
  justify-content: center;
  border-bottom: none !important;
}

.nav-check:checked ~ .mobile-nav{ display: flex; }
.nav-check:checked ~ .wrap .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-check:checked ~ .wrap .nav-toggle span:nth-child(2){ opacity: 0; }
.nav-check:checked ~ .wrap .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.hero{
  background: var(--green-900);
  background-image: linear-gradient(165deg, var(--green-900) 0%, #0A2E1A 100%);
  color: var(--paper);
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-dots{
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(42,190,95,0.35) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 60% 60% at 85% 20%, black, transparent);
  pointer-events: none;
}
.hero-motifs{
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cg fill='%232ABE5F'%3E%3Cg transform='translate(6,2) scale(1.3)'%3E%3Cpath d='M50 18 C 60 8 76 6 80 16 C 72 24 58 23 50 18 Z'/%3E%3Cpath d='M50 18 C 49 12 50 6 52 2' stroke='%232ABE5F' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3Cpath d='M50 24 C 40 12 22 14 16 26 C 4 38 2 58 12 76 C 22 92 38 98 50 98 C 62 98 78 92 88 76 C 98 58 96 38 84 26 C 78 14 60 12 50 24 Z'/%3E%3C/g%3E%3Cg transform='translate(178,196) scale(0.62) rotate(-8)'%3E%3Cpath d='M30,42 C20,10 25,-25 55,-35 C50,-20 58,-6 50,8 C57,18 58,28 60,35 C50,38 38,42 30,42 Z'/%3E%3Cellipse cx='45' cy='58' rx='28' ry='14' transform='rotate(-15 45 58)'/%3E%3Cpath d='M68,60 L96,49 L93,68 Z'/%3E%3Ccircle cx='15' cy='45' r='9'/%3E%3Cpath d='M7,43 L-8,38 L9,51 Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
  opacity: .5;
  mask-image: radial-gradient(ellipse 70% 70% at 15% 90%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 15% 90%, black, transparent 70%);
  pointer-events: none;
}
.hero::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--green-500) 50% 100%);
}

.hero-inner{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero .eyebrow{ background: rgba(231,56,76,0.16); color: #FF8A97; }
.hero .eyebrow::before{ background: #FF8A97; }
.hero h1{ color: var(--paper); }
.hero-lede{
  color: rgba(246,251,244,0.82);
  font-size: 1.08rem;
  max-width: 46ch;
}
.hero-actions{ display: flex; gap: 16px; margin: 30px 0 46px; flex-wrap: wrap; }
.hero .btn-ghost{ color: var(--paper); border-color: var(--line-on-green); }
.hero .btn-ghost:hover{ background: rgba(246,251,244,0.1); color: var(--paper); }
.hero .btn-primary{ background: var(--green-500); color: var(--green-900); }
.hero .btn-primary:hover{ background: #3FD374; }

.hero-stats{
  display: flex;
  gap: 40px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line-on-green);
}
.hero-stats div{ display: flex; flex-direction: column; }
.hero-stats dt{
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--green-500);
}
.hero-stats dd{
  margin: 4px 0 0;
  font-size: .8rem;
  color: rgba(246,251,244,0.7);
  max-width: 17ch;
}

.hero-portrait{ display: flex; justify-content: center; }
.press-card{
  position: relative;
  width: 100%;
  max-width: 320px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 22px 26px;
  transform: rotate(-3deg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.press-card-hole{
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 22px;
  background: var(--green-900);
  border-radius: 0 0 12px 12px;
}
.press-card-hole::after{
  content: "";
  position: absolute;
  inset: 6px 12px auto;
  height: 6px;
  background: var(--paper);
  border-radius: 4px;
}
.press-card-photo{
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, #E7F7EC, #CFEFDA);
  overflow: hidden;
  margin-bottom: 16px;
}
.press-card-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.press-card-info{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 2px dashed var(--line);
}
.press-card-info::before,
.press-card-info::after{
  content: "";
  position: absolute;
  top: 0; transform: translateY(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-900);
}
.press-card-info::before{ left: -22px; }
.press-card-info::after{ right: -22px; }
.press-card-role{
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}
.press-card-name{
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--green-900);
  font-weight: 700;
}
.press-card-id{
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--ink-soft);
}
.press-card-stamp{
  position: absolute;
  right: -20px; bottom: -20px;
  width: 84px; height: 84px;
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  box-shadow: 0 10px 22px rgba(0,0,0,.3);
  overflow: hidden;
}
.press-card-stamp img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-grid{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
}
.about-body p{ font-size: 1.02rem; color: var(--ink); }
.about-body blockquote{
  margin: 32px 0 0;
  padding: 24px 28px;
  background: var(--green-100);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--green-900);
}
.about-body blockquote cite{
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--ink-soft);
  letter-spacing: .03em;
}

.program{ background: var(--card); }
.program .section-heading-center h2{
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -.01em;
}
.program .section-heading-center::before{
  content: "";
  display: block;
  width: 46px; height: 4px;
  margin: 0 auto 20px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--green-500) 50% 100%);
}
.program-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.program-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.program-card:hover{ border-color: var(--green-500); transform: translateY(-3px); }
.program-mark{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
  align-self: flex-start;
}
.program-card p{ font-size: .95rem; margin-bottom: 0; }
.program-card:nth-of-type(even) .program-mark{
  color: var(--red);
  background: rgba(231,56,76,0.12);
}
.program-card-cta{
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--paper);
  justify-content: center;
}
.program-card-cta h3{ color: var(--paper); }
.program-card-cta p{ color: rgba(246,251,244,0.75); margin-bottom: 20px; }
.program-card-cta .btn-primary{ background: var(--red); color: #fff; align-self: flex-start; }
.program-card-cta .btn-primary:hover{ background: var(--red-deep); }
.program-quote{
  margin: 56px auto 0;
  max-width: 620px;
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -.01em;
  color: var(--green-900);
}
.program-quote cite{
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.volunteer{
  background: #0A2E1A;
  color: var(--paper);
}
.volunteer h2{ color: var(--paper); }
.volunteer-inner{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.volunteer-form{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  background: rgba(246,251,244,0.04);
  border: 1px solid var(--line-on-green);
  padding: 32px;
  border-radius: var(--radius);
}
.form-row{ display: flex; flex-direction: column; gap: 8px; }
.form-row-wide{ grid-column: 1 / -1; }
.form-row label{
  font-size: .82rem;
  font-weight: 600;
  color: rgba(246,251,244,0.75);
}
.form-row input,
.form-row textarea{
  background: rgba(246,251,244,0.07);
  border: 1px solid var(--line-on-green);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: .95rem;
  resize: vertical;
}
.form-row input::placeholder,
.form-row textarea::placeholder{ color: rgba(246,251,244,0.35); }
.form-row input:focus,
.form-row textarea:focus{
  outline: none;
  border-color: var(--green-500);
  background: rgba(246,251,244,0.1);
}
.volunteer-form .btn{ grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.volunteer-form .btn:disabled{ opacity: .6; cursor: default; transform: none; }
.form-status{
  grid-column: 1 / -1;
  margin: 0;
  font-size: .88rem;
  min-height: 1.2em;
}
.form-status-ok{ color: var(--green-500); }
.form-status-error{ color: var(--red); }

.contacts-grid{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
}
.contacts-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}
.contact-item{ display: flex; flex-direction: column; gap: 6px; }
.contact-label{
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--red);
}
.contact-value{ font-size: 1.02rem; color: var(--green-900); font-weight: 600; }

.tree-social{
  position: absolute;
  right: -20px;
  bottom: 60px;
  width: 340px;
  max-width: 42%;
  z-index: 2;
}
.tree-social .bear-apple-bg{
  position: static;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.9;
  pointer-events: none;
}
.tree-fruit-links{
  position: absolute;
  inset: 0;
}
.tree-fruit-link{
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(11,61,34,0.3);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.tree-fruit-link svg{ width: 50%; height: 50%; display: block; }
.tree-fruit-link:hover{ background: var(--red-deep); color: #fff; transform: translate(-50%, -50%) scale(1.15); }

.site-footer{
  background: var(--green-900);
  color: rgba(246,251,244,0.6);
  padding: 40px 0;
}
.footer-inner{
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
}
.footer-legal{
  font-size: .78rem;
  line-height: 1.6;
  max-width: 720px;
  color: rgba(246,251,244,0.62);
  margin: 0;
}

@media (max-width: 980px){
  .wrap{ padding: 0 22px; }
  .hero-inner{ grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait{ order: -1; max-width: 260px; margin: 0 auto; }
  .hero-text{ text-align: center; }
  .hero-lede{ margin-left: auto; margin-right: auto; }
  .hero-actions{ justify-content: center; }
  .hero-stats{ justify-content: center; text-align: left; }
  .about-grid{ grid-template-columns: 1fr; gap: 32px; }
  .contacts-grid{ grid-template-columns: 1fr; gap: 32px; }
  .volunteer-inner{ grid-template-columns: 1fr; gap: 36px; }
  .program-grid{ grid-template-columns: repeat(2, 1fr); }
  .section-heading{ margin-left: auto; margin-right: auto; }

  .main-nav{ display: none; }
  .header-inner > .header-social{ display: none; }
  .header-cta{ margin-left: auto; }
  .nav-toggle{ display: flex; }
}

@media (max-width: 640px){
  .wrap{ padding: 0 18px; }
  .section{ padding: 56px 0; }
  .header-inner{ padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .brand-text em{ display: none; }
  .brand-seal{ width: 38px; height: 38px; }
  .header-cta{ padding: 8px 14px; font-size: .8rem; }

  .hero{ padding: 44px 0 64px; }
  h1{ font-size: clamp(1.9rem, 8vw, 2.4rem); }
  h2{ font-size: clamp(1.5rem, 6vw, 1.8rem); }
  .hero-lede{ font-size: 1rem; }
  .hero-actions{ flex-direction: column; align-items: stretch; margin: 26px 0 36px; }
  .hero-actions .btn{ justify-content: center; width: 100%; }
  .hero-stats{ flex-wrap: wrap; gap: 20px 28px; }
  .hero-stats dt{ font-size: 1.6rem; }
  .press-card{ max-width: 240px; padding: 18px 18px 22px; }

  .eyebrow{ font-size: .72rem; padding: 5px 10px 5px 8px; }
  .section-lede{ font-size: .98rem; }

  .program-grid{ grid-template-columns: 1fr; }
  .program-card{ padding: 24px 22px; }

  .contacts-list{ grid-template-columns: 1fr; gap: 20px; }

  .volunteer-form{ grid-template-columns: 1fr; padding: 22px; gap: 16px; }

  .footer-legal{ font-size: .74rem; }
}

@media (max-width: 400px){
  .wrap{ padding: 0 14px; }
  h1{ font-size: 1.7rem; }
  .hero-stats{ gap: 18px 22px; }
  .hero-stats dd{ max-width: 14ch; }
  .press-card{ max-width: 210px; }
  .btn{ padding: 13px 20px; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; }
}

.faq-list{
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
}
.faq-item summary{
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-900);
  position: relative;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 1.3rem;
  color: var(--green-600);
}
.faq-item[open] summary::after{ content: "\2212"; }
.faq-item p{
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: .95rem;
}

.contacts{
  position: relative;
  overflow: hidden;
}
.contacts .wrap{
  position: relative;
  z-index: 1;
}
@media (max-width: 640px){
  .tree-social{
    width: 220px;
    max-width: 55%;
  }
  .tree-social .bear-apple-bg{ opacity: 0.7; }
}

.news .section-heading-center::before{
  content: "";
  display: block;
  width: 46px; height: 4px;
  margin: 0 auto 20px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--green-500) 50% 100%);
}
.news-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.news-card:hover{ border-color: var(--green-500); transform: translateY(-3px); }
.news-card-media{ width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-100); display: flex; align-items: center; justify-content: center; }
.news-card-media img{ width: 100%; height: 100%; object-fit: contain; display: block; }
.news-card-body{ padding: 20px 22px; }
.news-card-date{
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--green-700);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.news-card-title{
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.news-card-title a{
  color: inherit;
  text-decoration: none;
}
.news-card-title a:hover{ text-decoration: underline; }
.news-card-more{
  color: var(--green-700);
  font-weight: 600;
  white-space: nowrap;
}
.news-card-body p{ font-size: .95rem; line-height: 1.5; margin: 8px 0 0; color: var(--ink-soft); }
.news-empty{ grid-column: 1 / -1; text-align: center; color: var(--ink-soft); }
.news-card.is-hidden{ display: none; }
.news-more-wrap{ display: flex; justify-content: center; margin-top: 28px; }
.news-more-btn[hidden]{ display: none; }

@media (max-width: 860px){
  .news-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .news-grid{ grid-template-columns: 1fr; }
}

/* Страница отдельной новости (/news/:slug) */
.breadcrumbs{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.breadcrumbs a{ color: var(--green-700); text-decoration: none; }
.breadcrumbs a:hover{ text-decoration: underline; }
.breadcrumbs [aria-current]{ color: var(--ink-soft); }
.news-article-wrap{ max-width: 720px; margin: 0 auto; }
.news-article-date{
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 10px;
}
.news-article-title{
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  margin-bottom: 24px;
}
.news-article-media{
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-100);
  margin-bottom: 28px;
}
.news-article-media img{ width: 100%; height: 100%; object-fit: contain; display: block; }
.news-article-body p{
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 1.1em;
}
.news-article-back{ margin-top: 12px; }

/* Стрелки «предыдущая/следующая новость».
   На широких экранах — круглые кнопки по краям вьюпорта.
   На узких — превращаются в горизонтальную панель под статьёй,
   чтобы не перекрывать текст. */
.news-nav{
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}
.news-nav-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  text-decoration: none;
  pointer-events: auto;
  transition: transform .15s ease, border-color .15s ease;
}
.news-nav-arrow:hover{ border-color: var(--green-500); transform: translateY(-50%) scale(1.06); }
.news-nav-arrow--prev{ left: max(16px, calc(50% - 400px)); }
.news-nav-arrow--next{ right: max(16px, calc(50% - 400px)); }
.news-nav-text{ display: none; }

@media (max-width: 1180px){
  /* На средних экранах кнопкам по краям уже не хватает места без
     перекрытия контента — убираем фиксацию и переносим панель под
     статью, там же, где она и стоит в разметке. */
  .news-nav{
    position: static;
    inset: auto;
    display: flex;
    gap: 12px;
    margin-top: 32px;
    pointer-events: auto;
  }
  .news-nav-arrow{
    position: static;
    transform: none;
    width: auto;
    height: auto;
    flex: 1 1 0;
    min-width: 0;
    border-radius: var(--radius-sm, 8px);
    padding: 12px 14px;
    gap: 10px;
  }
  .news-nav-arrow:hover{ transform: none; }
  .news-nav-arrow--next{ flex-direction: row-reverse; text-align: right; }
  .news-nav-arrow--next .news-nav-text{ align-items: flex-end; }
  .news-nav-text{
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .news-nav-kicker{
    font-family: var(--font-mono);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-soft);
  }
  .news-nav-title{
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .news-nav-icon{ flex-shrink: 0; }
}

@media (max-width: 560px){
  .news-nav{ flex-direction: column; }
  .news-nav-arrow--next{ flex-direction: row; text-align: left; }
  .news-nav-arrow--next .news-nav-text{ align-items: flex-start; }
}

.news-popup{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  max-width: 320px;
  background: var(--green-900);
  background-image: linear-gradient(165deg, #17331F 0%, var(--green-900) 55%, #3A1319 100%);
  color: var(--paper);
  border-radius: var(--radius);
  border: 2px solid var(--red);
  box-shadow: 0 18px 40px rgba(11,61,34,0.45), 0 0 0 6px rgba(231,56,76,0.15);
  padding: 18px 20px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px) scale(.97);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, box-shadow .2s ease;
}
.news-popup.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: newsPopupPulse 1.6s ease-out .35s 1;
}
@keyframes newsPopupPulse{
  0%{ box-shadow: 0 18px 40px rgba(11,61,34,0.45), 0 0 0 6px rgba(231,56,76,0.15); }
  40%{ box-shadow: 0 18px 40px rgba(11,61,34,0.45), 0 0 0 12px rgba(231,56,76,0.28); }
  100%{ box-shadow: 0 18px 40px rgba(11,61,34,0.45), 0 0 0 6px rgba(231,56,76,0.15); }
}
.news-popup:hover{
  box-shadow: 0 22px 46px rgba(199, 35, 58, 0.5), 0 0 0 6px rgba(231, 56, 76, 0.25);
  border-color: var(--red-deep);
}
.news-popup-icon{
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 800;
  color: var(--paper);
}
.news-popup-text{ flex: 1 1 auto; }
.news-popup-title{
  display: block;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 4px;
}
.news-popup-desc{
  display: block;
  font-size: .82rem;
  line-height: 1.4;
  color: rgba(246,251,244,0.8);
}
.news-popup-close{
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(246,251,244,0.12);
  color: var(--paper);
  font-size: .8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
}
.news-popup-close:hover{ background: rgba(246,251,244,0.25); }

@media (max-width: 480px){
  .news-popup{
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}