@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #fafaf7;
    --dark: #2f3a33;
    --green: #4f7f67;
    --green-light: #6faf8f;
    --lime: #c5dd7b;
    --yellow: #fdd165;
    --text: #1e1e1e;
    --card-bg: rgba(111,175,143,0.05);
    --card-border: rgba(79,127,103,0.15);
  }
  * { margin:0; padding:0; box-sizing:border-box; }
  body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; display: flex; flex-direction: column; min-height: 100vh; }
  .site-main { flex: 1; }
  a { text-decoration: none; color: inherit; }
  img { max-width: 100%; height: auto; display: block; }

  .header { background: #fff; padding: 0 52px; display: flex; align-items: center; height: 120px; position: sticky; top: 0; z-index: 100; }
  .header__logo { flex-shrink: 0; }
  .header__logo img { height: auto; width: 213px;   }
  .header__nav { flex: 1; display: flex; gap: 36px; justify-content: center; align-items: center; }
  .header__nav a { font-size: 16px; font-weight: 600; text-transform: uppercase; color: var(--dark); letter-spacing: 0.02em; white-space: nowrap; }
  .header__nav a:hover, .header__nav a.active { color: var(--green-light); }
  .header__nav a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

  .header__actions{ display: flex; align-items: center; gap: 40px; flex-shrink: 0;  }
  
  .header__lang {
      font-size: 18px;
      color: var(--green);
  }
  .btn.btn--yellow { background: var(--yellow); color: var(--dark); font-weight: 600; font-size: 16px; padding: 18px 28px; border-radius: 10px; border: none; cursor: pointer; display: inline-block; }
  .btn.btn--yellow:hover { filter: brightness(1.05); }
  .btn.btn--yellow:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
  .btn.btn--green { background: var(--green); color: #fff; font-weight: 500; font-size: 20px; padding: 16px 48px; border-radius: 10px; border: none; cursor: pointer; display: inline-block; text-align: center; }
  .btn.btn--green:hover { background: #3d6a54; }
  .btn.btn--green:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

  .hero { position: relative; height: 700px; overflow: hidden; }
  .hero__bg { position: absolute; inset: 0; }
  .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
  .hero__overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(47,58,51,0.95) 0%, rgba(47,58,51,0.7) 40%, transparent 100%); }
  .hero__content { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 94px 64px; }
  .hero h1 { font-size: 40px; font-weight: 700; line-height: 1.3; color: #fafaf7; max-width: 836px; margin-bottom: 36px; }
  .hero__subtitle { font-size: 16px; color: #fafaf7; margin-bottom: 88px; }
  .hero .btn.btn--yellow { font-size: 20px; padding: 18px 40px; margin-bottom: 48px; display: inline-block; }
  .hero__scroll { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fafaf7; font-size: 18px; font-weight: 500; position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); z-index: 1; }
  .hero__scroll img {
      width: 32px;
      transform: rotate(90deg);
      height: 32px;
  }

  .mission { max-width: 1280px; margin: 0 auto; padding: 44px 64px 0; }
  .mission h2 { font-size: 40px; font-weight: 700; line-height: 1.3; color: var(--green); max-width: 836px; margin-bottom: 24px; text-wrap: balance; }
  .mission h2 span { color: var(--green-light); }
  .mission p { font-size: 20px; line-height: 1.5; max-width: 1156px; margin-bottom: 48px; }

  .directions { max-width: 1280px; margin: 0 auto; padding: 0 64px; }
  .directions h3 { font-size: 22px; font-weight: 600; color: var(--green); margin-bottom: 24px; }
  .directions__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 32px; }
  .directions__card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 15px; padding: 34px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; aspect-ratio: 1; justify-content: center; }
  .directions__card img { width: 84px; height: 84px; }
  .directions__card span { font-size: 18px; font-weight: 500; color: var(--dark); }
  .directions .btn.btn--green { display: block; margin: 0 auto 48px; max-width: 449px; width: 100%; }

  .stats { background: var(--green-light); border-radius: 20px; margin: 0 68px 64px; padding: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .stats__item { text-align: center; color: #fff; }
  .stats__number { font-size: 63px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
  .stats__label { font-size: 24px; font-weight: 500; line-height: 1.3; }

  .section__title { font-size: 22px; font-weight: 600; color: var(--green); margin-bottom: 32px; }
  .section { max-width: 1280px; margin: 0 auto; padding: 0 64px; }

  .news { padding-bottom: 48px; }
  .news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-bottom: 24px; }
  .news__card { overflow: hidden; }
  .news__card-image { width: 100%; height: 153px; border-radius: 15px 15px 0 0; overflow: hidden; }
  .news__card-image img { width: 100%; height: 100%; object-fit: cover; }
  .news__card-body { padding: 16px 0; }
  .news__card-body p { font-size: 16px; font-weight: 500; line-height: 25px; color: var(--dark); margin-bottom: 4px; }
  .news__date { font-size: 12px; color: var(--green-light); font-weight: 500; margin: 8px 0; }
  .news__link { font-size: 16px; color: var(--green); font-weight: 500; }
  .news__link:hover { text-decoration: underline; }
  .news .btn.btn--green { display: block; margin: 24px auto 0; max-width: 333px; width: 100%; }
  .news__card-bottom {display: flex; align-items: center; justify-content: space-between;}

  .projects { padding-bottom: 48px; }
  .projects__item { display: grid; grid-template-columns: 452px 1fr; gap: 48px; margin-bottom: 28px; align-items: start; }
  .projects__image { border-radius: 15px; overflow: hidden; height: 301px; }
  .projects__image img { width: 100%; height: 100%; object-fit: cover; }
  .projects__text h4 { font-size: 30px; font-weight: 700; color: var(--green); line-height: 1.2; margin-bottom: 12px; }
  .projects__text .projects__tag { font-size: 20px; color: var(--green-light); font-weight: 500; margin-bottom: 12px; }
  .projects__text p { font-size: 22px; line-height: 1.4; }

  .partners { padding-bottom: 64px; }
  .partners__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
  
  .partners__cell {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
}


  .partners__cell img { max-height: 100%; max-width: 100%; object-fit: contain; }

  .footer { background: var(--green); color: #fff; padding: 38px 72px 0; }
  .footer__top { display: grid; grid-template-columns: 260px 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
  .footer__logo { font-size: 43px; font-weight: 500; line-height: 1; margin-bottom: 4px; }
  .footer__logo-sub { font-size: 27px; font-weight: 500; margin-bottom: 24px; }
  .footer__social {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}
  .footer__social a { display: block; width: 48px; height: 48px; }
  .footer__social img { width: 100%; height: 100%; }
  .footer__nav a { display: block; font-size: 20px; line-height: 1.5; color: #fff; }
  .footer__nav a:hover { color: var(--lime); }
  .footer__nav a.active { color: var(--lime); }
  .footer__contact { font-size: 20px; line-height: 1.5; }
  .footer__bottom { text-align: center; padding: 24px 0; font-size: 12px; color: var(--bg); border-top: 1px solid rgba(250,250,247,0.2); margin-top: 16px; }

  .header__hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
  .header__hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); margin: 4px 0; border-radius: 1px; transition: transform .3s, opacity .3s; }
  .header__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
  .header__hamburger.open span:nth-child(2) { opacity: 0; }
  .header__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

  /* Page section */
  .page-section { max-width: 1280px; margin: 0 auto; padding: 40px 64px 64px; }
  .page-section__title { font-size: 40px; font-weight: 600; color: var(--green); line-height: 1.2; margin-bottom: 24px; }
  .page-section__content { font-size: 18px; line-height: 1.6; }
  .page-section__content p { margin-bottom: 16px; }

  /* WP nav menu */
  .header__nav .menu-item a { font-size: 16px; font-weight: 600; text-transform: uppercase; color: var(--dark); letter-spacing: 0.02em; white-space: nowrap; }
  .header__nav .menu-item a:hover { color: var(--green-light); }
  .footer__nav .menu-item a { display: block; font-size: 20px; line-height: 1.5; color: #fff; }
  .footer__nav .menu-item a:hover { color: var(--lime); }

  /* WP pagination */
  .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
  .nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; font-size: 16px; font-weight: 600; color: var(--green); background: var(--card-bg); border: 1px solid var(--card-border); }
  .nav-links .page-numbers.current { background: var(--green); color: #fff; }
  .nav-links .page-numbers:hover { background: var(--green-light); color: #fff; }

  @media(max-width: 1700px){
      .header__nav a { font-size: 14px; font-weight: 600; text-transform: uppercase; color: var(--dark); letter-spacing: 0.02em; white-space: nowrap; }
        .header__nav { flex: 1; display: flex; gap: 20px; justify-content: center; align-items: center; }
        .header__lang { font-size: 16px; color: var(--green); }
          .header__actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
  }

  @media(max-width: 1500px){
      .header__nav a { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--dark); letter-spacing: 0.02em; white-space: nowrap; }
        .header__nav { flex: 1; display: flex; gap: 24px; justify-content: center; align-items: center; }
        .header__lang { font-size: 16px; color: var(--green); }
          .header__actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
  }


 .footer__logo img{
  filter: brightness(100);
 }

  @media(max-width: 1300px){
    .header{padding: 0 16px 0 0; }
  }

  @media (max-width: 960px) {
    .header { padding: 0 20px 0 0; height: 76px;  }

        .header__logo {
        height: 76px;
        overflow: hidden;
        display: flex;
        align-items: center;
        padding-left: 20px;
    }

    .footer__logo img {
    filter: brightness(100);
    width: 160px;
    }
    /*.header__logo{height: 76px; overflow: hidden;}
     .header__logo img { height: 80px; width: auto; }
      */
      .header__logo img { height: 50px; width: auto; }
    .header__nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 99; }
    .header__nav.open { display: flex; }
    .header__actions { margin-left: auto; gap: 16px; }
    .header__hamburger { display: block; }
    .header__hamburger span { background: var(--green); }
    .header__actions .btn.btn--yellow { display: none; }
    .hero { height: auto; min-height: 500px; }
    .hero__content { padding: 60px 40px; }
    .hero h1 { font-size: 28px; }
    .hero__scroll { display: none; }
    .mission { padding: 32px 20px 0; }
    .mission h2 { font-size: 28px; }
    .mission p { font-size: 16px; }
    .directions { padding: 0 20px; }
    .directions__grid { grid-template-columns: 1fr; gap: 10px; }
    .directions__card { aspect-ratio: auto; flex-direction: row; padding: 16px 20px; gap: 16px; justify-content: flex-start; }
    .directions__card img { width: 50px; height: 50px; }
    .stats { margin: 0 20px 40px; grid-template-columns: repeat(2, 1fr); padding: 24px; border-radius: 15px; }
    .stats__number { font-size: 40px; }
    .stats__label { font-size: 16px; }
    .section { padding: 0 20px; }
    .news__grid { grid-template-columns: 1fr; }
    .projects__item { grid-template-columns: 1fr; gap: 16px; }
    .projects__image { height: 200px; }
    .projects__text h4 { font-size: 22px; }
    .projects__text p { font-size: 16px; }
    .partners__grid { grid-template-columns: repeat(2, 1fr); }
    .partners__cell { height: 100px; }
    .footer { padding: 32px 20px 0; }
    .footer__top { grid-template-columns: 1fr; gap: 24px; }
    .footer__bottom { font-size: 11px; }
    .directions__card span{text-align: left;}
    .directions .btn.btn--green {
    display: block;
    margin: 0 0 30px;
    max-width: 100%;
    width: 100%;
    font-size: 18px;
    padding: 16px;
  }
    .projects.section{margin-top: 40px;}
  }