/* Общие стили */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Минимальная высота = высоте viewport */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #fff;
}

/* Шапка сайта */
.header {
    position: relative;
    background: #a1eba1;
    color: #fff;
    padding: 10px;
    text-align: center;
}

.header h1 {
    margin: 0;
}

.logo {
    position: absolute;
    bottom: 5px;
    left: 5px;
}

.logo img {
    height: 130px;
    width: auto;
    object-fit: contain;
}

.header-content {
    margin-left: 10px;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.menu ul li {
    margin: 0 15px;
}

.menu ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.menu ul li a:hover {
    text-decoration: underline;
}

/* Основное содержимое */
.content {
    padding: 20px;
    flex: 1 0 auto;
}

.content section {
    display: none;
}

.content section.active {
    display: block;
}

/* Блок с тестом */
.test-div {
    margin: 0 auto 5px;
    border-radius: 30px;
    padding: 5px;
    background-color: white;
    border: 2px solid #a1eba1;
    max-width: 800px;
    text-align: center;
}

.about-fund-div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: stretch;
    margin: 0 auto 5px;
    border-radius: 30px;
    padding: 5px;
    background-color: white;
    max-width: 100%;
    text-align: center;
    padding-left: 0px;
    justify-content: space-between;
}
.about-cont-fund {
    flex: 1;
    gap: 5px;
    padding: 5px;
}
.fund-image {
  top: 15px;
  bottom: 15px;
  left: 15px;
  height: 100px;               /* Размер изображения */
  width: auto;
}
/* Блок "Обо мне" */
.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 10px;
}

.photos-container {
    text-align: center;
    flex-basis: 30%;
}

.photos-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.photo-item {
    text-align: center;
}

.photo-item h4 {
    margin: 0 0 10px 0;
}

.photo-item img {
    width: 175px;
    height: auto;
}

.about-text {
    text-align: left;
    flex-basis: 70%;
}

.about-text p {
    text-indent: 20px;
    text-align: justify;
    margin: 0 0 10px 0;
}

/* Блоки программ */
.programs {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px;
    align-items: stretch;
}

.program-card {
    flex: 1;
    border-radius: 30px;
    padding: 20px;
}
.programs-fund {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5px;
    padding: 5px;
}
.program-fund-card {
    flex: 1;
    padding: 5px;
}
.publications {
    display: grid;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    align-items: stretch;
}

.publication-card {
    flex: 1;
    border-radius: 30px;
    padding: 20px;
}
.about-projects {
    display: grid;
    justify-content: space-between;
    gap: 5px;
    padding: 5px;
    align-items: stretch;
}

.about-project-card {
    flex: 1;
    border-radius: 30px;
    padding: 5px;
}
.white-div {
    background-color: white;
    border: 2px solid #a1eba1;
}

.green-div {
    background-color: #a1eba1;
    color: white;
}

.program-card ul,
.program-card ol {
    text-align: left;
    padding-left: 20px;
}

.sublist {
    list-style-type: lower-alpha;
    padding-left: 20px;
}

/* Цвета текста */
.green-text {
    color: #37ba10;
}

.white-text {
    color: white;
}

/* Ссылки */
.giper-text {
    text-decoration: none;
    color: #2f10ba;
}

.giper-text:hover {
    text-decoration: underline;
}

.footer {
  background: #a1eba1;
  padding: 5px 0;
  color: #333;
  font-size: 0.9rem;
}

.footer-content {
  align-items: center;
  display: grid;
  place-items: center;
  width: 100%;
}

.footer-contacts h4 {
  margin-bottom: 5px;
  font-weight: 600;
  color: #2d5a2d;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 5px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 5px;
  border-radius: 50px;
  text-decoration: none;
  color: white;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px #fff;
}

.social-link.vk {
  background-color: #4a76a8;
}

.social-link.whatsapp {
  background-color: #25D366;
}

.social-link.telegram {
  background-color: #0088cc;
}

.telegram-channel {
  margin-top: 5px;
  margin-bottom: 0px;
}

.channel-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #2d5a2d;
  font-weight: 500;
  padding: 0px 0px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.channel-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-copyright {
  text-align: center;
  color: #2d5a2d;
}

.center-text {
    text-align: center;
}
.centered-text {
  position: relative;         /* Чтобы картинка могла позиционироваться относительно этого блока */
  text-align: center;         /* Центрируем текст внутри */
  padding-left: 0px;         /* Оставляем место для картинки (если нужно) */
  display: flex;
  justify-content: center;    /* Горизонтальное центрирование */
}

.left-image {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 90px;
  transform: translateX(-50%); /* Центрируем по оси X */
  height: 70px;               /* Размер изображения */
  width: auto;
}
.otzyv-image {
  margin: 10px;
  height: 300px;               /* Размер изображения */
  width: auto;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .header {
        padding: 5px;
    }

    .logo {
        position: absolute;
        bottom: 5px;
        left: 3px;
    }

    .logo img {
        height: 150px;
    }

    .header-content {
        margin-left: 20px;
    }

    .menu ul {
        flex-direction: column;
        gap: 10px;
    }

    .about-container {
        flex-direction: column;
    }

    .photos-container,
    .about-text {
        flex-basis: 100%;
        width: 100%;
    }

    .photos-wrapper {
        flex-direction: column;
    }

    .programs {
        flex-direction: column;
    }

    .photo-item img {
        width: 100%;
        max-width: 200px;
    }

    .footer {
        position: static;
    }
    .footer-copyright {
        text-align: center;
    }
    
    .social-links {
        margin-bottom: 0;
    }
    .left-image {
        top: 10px;
        height: 40px;               /* Размер изображения */
        left: 55px;
    }
    .about-fund-div {
        display: grid;
    }
}