/* Basic reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }

:root{
  --bg:#f6f2ec;
  --paper:#fbf7f1;
  --accent:#2f5a3f; /* зелёный */
  --accent-dark:#22422f;
  --muted:#6b6057;
  --shadow: 0 6px 18px rgba(26,26,26,0.12);
  --radius:8px;
  --max-width:1100px;
}

body{
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: #222;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.55;
}

/* subtle paper texture overlay (replace assets/texture.png) */
.page-bg{
  position: fixed;
  inset:0;
  z-index:-1;
  background-image: url('assets/texture.png');
  background-size: cover;
  opacity:0.45;
  pointer-events:none;
  margin: 0 auto;
  max-width: 1200px;
}

/* layout container */
.container{
  width: 94%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 0 30px;
}

/* HERO */
.hero{
  position: relative;
  max-width: 1200px; 
  height: 300px;
  overflow: hidden;
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  text-shadow: 1px 1px 2px snow;
  background-image: linear-gradient(to left, rgba(255, 255, 255, 0.0),rgba(255, 255, 255, 0.9)), url("assets/cote_hero3.jpg");
  background-position: center;
  background-size: cover;
  align-self: center;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
  }

.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter: contrast(0.95) saturate(0.9);
  transform: scale(1.05);
  z-index:0;
}

.hero-inner{
  position:relative;
  z-index: 0;
  padding: 34px;
  max-width: 736px;
}

.site-title{
  font-family: "Playfair Display", serif;
  font-size:46px;
  color: #1f3b2b;
  margin-bottom:6px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

.smaller {
    font-size: smaller;
}
.subtitle{
  color: var(--muted);
  margin-bottom:14px;
  font-size: larger;
  font-weight: bold;
}

/* CTA */
.btn{
  display:inline-block;
  background: var(--accent);
  color:#fff;
  text-shadow: none;
  padding:10px 18px;
  border-radius: 6px;
  text-decoration:none;
  box-shadow: var(--shadow);
  font-weight:600;
}
.btn.dark{ background:var(--accent-dark); }

.cta{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:8px;
}

/* Two-column layout for content + sidebar */
.content{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  margin-top: 10px;
}

/* Main article */
.main-article{
  background: var(--paper);
  padding: 26px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

.section-title{
  font-family: "Playfair Display", serif;
  font-size:28px;
  color: #2a3c2b;
  margin-bottom: 14px;
}

.lead p{
  color: #59504a;
  font-weight: 500;
  margin-bottom: 12px;
}

/* author block */
.author{
  display:flex;
  gap:14px;
  margin: 18px 0;
  align-items:center;
}
.author-photo{
  width:84px;
  height:84px;
  object-fit:cover;
  border-radius:6px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}
.author-name{ font-weight:700; }
.author-role{ color:var(--muted); font-size:0.95rem; }

/* team figure */
.team-figure{
  margin-top:12px;
  border-radius:8px;
  overflow:hidden;
  box-shadow: var(--shadow);
  opacity: 0.7;
}
.team-figure img{ width:100%; display:block; height:auto; }
.team-figure figcaption{
  background: rgba(255,255,255,0.9);
  padding:10px 12px;
  font-size:0.9rem;
  color:var(--muted);
}

/* What done section */
.what-done{ margin-top:22px; }
.small-title{ font-size:20px; margin-bottom:12px; font-family:"Playfair Display", serif; color:#3b4b3d; }
.what-grid{ display:flex; gap:16px; align-items:flex-start; }
.thumb{ width:300px; height:150px; object-fit:cover; border-radius:6px; box-shadow: 0 6px 14px rgba(0,0,0,0.08); }

/* sidebar cards */
.sidebar{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.card{
  background: var(--paper);
  padding:18px;
  border-radius:10px;
  box-shadow: var(--shadow);
  border:1px solid rgba(0,0,0,0.04);
}
.card-photo{ position: relative; top: -50px; width:100%; height:240px; object-fit: cover; border-radius:20px; margin-bottom:10px; }
.cooperation h4, .cooperation p {position: relative; top: -40px;}
.cooperation a.btn {position: relative; top: -20px} 
/* donation list */
.donation-list{ margin:10px 0 14px 0; padding-left:18px; color:var(--muted); }
.donation-list li{ margin:8px 0; }
.donations img {width: 100%; height:200px; object-fit: cover; border-radius: 20px;}
.small-card {
  width: 100%;
  height: 250px;
  background-image: linear-gradient(to top, rgba(246, 242, 236, 1.0), rgba(255, 255, 255, 0.0), rgba(246, 242, 236, 1.0)),linear-gradient(to left, rgba(246, 242, 236, 1.0), rgba(255, 255, 255, 0.0), rgba(246, 242, 236, 1.0)), url("assets/cote_hero.jpg");
  background-position: center;
  background-size: cover;
  }
/* project intro & gallery */
.project-intro{ margin: 36px auto; max-width: var(--max-width); text-align:center; padding: 30px 18px; }
.project-intro .section-title{ font-size:30px; }
.project-text{ max-width:820px; margin: 12px auto 22px; color:var(--muted); }

.gallery{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.gallery img{ width:32%; min-width:150px; object-fit:cover; border-radius:8px; box-shadow: 0 8px 20px rgba(34,34,34,0.08); }

.kids {
  position: absolute;
  z-index: -1;
  width: 400px;
  height: 200px;
  background-image: linear-gradient(to top, rgba(246, 242, 236, 1.0), rgba(255, 255, 255, 0.0), rgba(246, 242, 236, 1.0)),linear-gradient(to left, rgba(246, 242, 236, 1.0), rgba(255, 255, 255, 0.0), rgba(246, 242, 236, 1.0)), url("assets/coast.jpg");
background-position: center;
  background-size: cover;
  
}
/* footer */
.site-footer{ background: transparent; padding: 0; color:var(--muted); text-align:center;}
.bottom-block {
  height: 200px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
}
.bottom-block p {
  height: 30px;
 text-shadow: 2px 2px 2px #fff;
}
.bottom-links {
 text-shadow: 1px 1px 5px #fff;
  height: 20px;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  justify-content: space-around;
  margin: auto auto;
  max-width: 800px;
}
.menubox {
    top: 5px;
    right: 15px;
  }
/* Responsive */
@media (max-width: 980px){
  .content{ grid-template-columns: 1fr 300px; padding:0 8px; }
  .hero{ height:360px; }
  .menubox {
    top: 5px;
    right: 15px;
  }
}

@media (max-width: 760px){
  .content{ grid-template-columns: 1fr; }
  .sidebar{ order:2; }
  .main-article{ order:1; }
  .hero{ height:280px; }
  .hero-inner{ padding:18px; padding-top: 0px;}
  .site-title{ font-size:34px; }
  .gallery img{ width:100%; }
  .what-grid{ flex-direction:column; }
  .smaller {display: none;}
}
/*menu*/
nav i.fa-bars {
    margin-right: 5px;
    background-color: rgba(255,255,255,0.6);
    padding: 5px 10px;
    font-size: 25px;
    color: darkgreen;
    border-radius: var(--radius);
    box-shadow: 1px 1px 3px rgba(0,0,0,0.6);

}  
nav ul i.fa-home {
   margin-right: 5px;
}
.menu{
  display:block; 
}
.menu li{display: inline-block;
position: relative;
z-index:100;
 }
.menu li a {font-weight:600;
text-decoration:none;
padding:11px;
display:block;
color:darkgreen;
 background: rgba(255,255,255,0.6);
 box-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  border-radius: var(--radius);
-webkit-transition: all 0.2s ease-in-out 0s;
   -moz-transition: all 0.2s ease-in-out 0s;
   -o-transition: all 0.2s ease-in-out 0s;
   -ms-transition: all 0.2s ease-in-out 0s;
   transition: all 0.2s ease-in-out 0s;
}
.menu li a:hover, .menu li:hover > a{color:#f1e5cb;
background: #2f5a3f; border:solid 0px #2f5a3f; border-radius: var(--radius);}


.menu ul {display: none;
margin: 0;
padding: 0;
width: 125px;
text-align: center;
position: absolute;
top: 50px;
left: 0px;
}
  

.menu li:hover > ul{ display: block;}
  
.menu ul li {display:block;
float: none;
background: none;
margin-top:5px;
padding:0;
}
  
.menu ul li a {font-size:12px;
font-weight:normal;
display:block;
color:#f1e5cb;
border: solid 1px #27010a;
border-radius: 30px;
background-color: darkcyan;}
  
.menu ul li a:hover, .menu ul li:hover > a{
background: darkgreen;
border: solid 1px darkgreen;
border-radius: 30px;
color:#f1e5cb;
}

.menu ul ul {left: 149px;
        top: 0px;
}
.mobile-menu {display: none; z-index: 20;}



@media (max-width: 800px) {
  
  .menu{display:none; z-index: 17;}
    
  .mobile-menu{display:inline-block;
  /*margin-top:100px;*/
 }
    
  nav{margin:0;
  background: none;
 }
   ul.menu{
      margin: 0;
      padding: 0;
      position: absolute;
top: 35px;
right: 10px;
width: 300px;
height: 300px;
/*background-color: rgba(255, 255, 255, 0.6); */
text-align: left;
  }
  .menu li{
  display:block;
  z-index: 17;
  margin: 0px;
  height: 48px;
  }
    
  .menu li a {
  background: rgba(255, 255, 255, 0.6);
  color: darkgreen;
 /* border: 1px solid darkgreen; */
 box-shadow: 1px 1px 2px rgba(0,0,0,0.6);
border-radius: var(--radius);
z-index: 17;
margin: 0px;
}
    
  .menu li a:hover, .menu li:hover > a{
  background: darkgreen;
  color:#f1e5cb;
 /* border:3px solid green; */
border-radius: var(--radius);
z-index: 17;
margin: 0px;
}
    
  .menu ul {
  display:none;
  position: relative;
  top: 0px;
  width:100%;}
  .menu ul li {
  padding: 0px;
  margin: 0px;
  height: 20px;
  border: none;
  }
  .menu ul ul {
    left:50px;
    padding-left: 10px;} 
  }/*end media queries*/
