/* main-style.css */

:root {
  --font-family: "Mulish", sans-serif;
  --second-family: "Montserrat", sans-serif;
  --third-family: "Montserrat", sans-serif;
  --black:      #151515;
  --gray-500:   #6b7280;
  --gray-100:   #f8f8f8;
  --gray-200:   #e5e5e5;
  --gray-300:   #d1d5db;
  --green:      #3b6832;
  --green-light:#3b6832; 
  --card-radius: 16px;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --container-width: 1200px; 
  --section-gap: 60px;     
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Mulish", sans-serif;
}

body {
  font-family: var(--font-family);
  color: var(--black);
  -webkit-text-size-adjust: 100%;
  
  line-height: 1.6; 
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


._container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;  
  padding-right: 20px; 
}


.section-wrapper {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}
.section-wrapper--gray-bg {
  background-color: var(--gray-100);
}




.section-title {
  font-size: 40px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 15px;
  text-align: center;
}
.section-divider.green-line {
  width: 60px;
  height: 4px;
  background-color: var(--green);
  border-radius: 2px;
  margin: 0 auto 30px auto; 
}


/* === HEADER STYLES === */
header {
  background: #fff;
  position: sticky; 
  top: 0;
  left: 0; 
  right: 0; 
  z-index: 1000; 
  height: 100px; 
  border-bottom: 1px solid var(--gray-200);
  
}

header ._container.header__container { 
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%; 
  
}

.header__logo-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0; 
}
.logo__link .logo__image { 
    max-height: 50px;
    width: auto;
    display: block; 
}
.header__site-name {
  text-decoration: none;
  margin-left: 15px;
}
.header__site-name h2 {
  font-size: clamp(1rem, 2.2vw, 1.20rem); 
  color: var(--black);
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
}




.header__actions {
  display: flex;
  align-items: center;
  gap: 15px; 
  flex-shrink: 0; 
}


.header__lang-switcher {
  position: relative;
}
.lang-switcher__button {
  background: none;
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  color: var(--black);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.lang-switcher__button:hover {
    border-color: var(--green);
    background-color: var(--gray-100);
}
.lang-switcher__button svg:first-of-type { 
    color: var(--gray-500);
    width: 20px;
    height: 20px;
}
.lang-switcher__button .lang-switcher__current-lang {
    font-weight: 500;
}
.lang-switcher__arrow {
    color: var(--gray-500);
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}
.header__lang-switcher.open .lang-switcher__arrow {
    transform: rotate(180deg);
}
.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 8px); 
  right: 0;
  background-color: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  min-width: 120px;
  z-index: 1005; 
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.header__lang-switcher.open .lang-switcher__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-switcher__item {
  display: block;
  padding: 8px 15px;
  text-decoration: none;
  color: var(--black);
  font-size: 0.875rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang-switcher__item:hover {
  background-color: var(--gray-100);
  color: var(--green);
}
.lang-switcher__item--active {
  color: var(--green);
  font-weight: 600;
  background-color: var(--gray-100); 
}



.header__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.header__phone svg {
  color: var(--green);
  width: 20px;
  height: 20px;
}
.header__phone:hover {
  color: var(--green);
}
.header__phone span { 
    display: none; 
}


.header__burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010; 
  position: relative; 
}
.header__burger-btn span {
  width: 100%;
  height: 3px;
  background-color: var(--black);
  border-radius: 10px;
  transition: all 0.3s ease-in-out; 
  position: relative;
  transform-origin: center center; 
}

.header__burger-btn.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg); 
}
.header__burger-btn.open span:nth-child(2) {
  opacity: 0;
}
.header__burger-btn.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg); 
}


/* === HEADER STYLES === */


.header__mobile-menu {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 300px; 
  max-width: 85%; 
  height: 100vh;
  background-color: #ffffff;
  box-shadow: 3px 0 15px rgba(0,0,0,0.1);
  z-index: 1005;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding-top: 100px; 
  box-sizing: border-box;
}
.header__mobile-menu.open {
  transform: translateX(0);
}
.header__mobile-menu ._container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 20px;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.mobile-menu__nav a {
  color: var(--black);
  padding: 15px 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--gray-200);
  transition: color 0.3s ease, background-color 0.3s ease;
}
.mobile-menu__nav a:last-child {
    border-bottom: none;
}
.mobile-menu__nav a:hover,
.mobile-menu__nav a.active {
  color: var(--green);
  background-color: var(--gray-100);
}

.mobile-menu__footer-elements {
    margin-top: auto;
    padding-top: 20px;
    width: 100%;
}
.mobile-menu__lang-switcher {
    padding: 0 20px 15px;
    border-top: 1px solid var(--gray-200);
    padding-top: 15px;
}
.mobile-menu__lang-switcher .header__lang-switcher {
    width: 100%;
}
.mobile-menu__lang-switcher .lang-switcher__button {
    justify-content: space-between;
    width: 100%;
    padding: 10px 15px;
    border-radius: 8px;
    border-color: var(--gray-200);
}
.mobile-menu__lang-switcher .lang-switcher__dropdown {
    top: auto;
    bottom: calc(100% + 8px);
    right: 0;
    left:0; width: 100%;
}
.mobile-menu__phone {
    display: block;
    color: var(--green);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid var(--gray-200);
    transition: color 0.3s ease, background-color 0.3s ease;
}
.mobile-menu__phone:hover {
    color: white;
    background-color: var(--green);
}


.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
}
.mobile-menu-overlay.open {
  display: block;
  opacity: 1;
}
/* --- Стили для нового переключателя языка в мобильном меню --- */

.mobile-menu__actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрируем все элементы по горизонтали */
    gap: 20px; /* Расстояние между переключателем и телефоном */
    padding-left: 20px;
    padding-right: 20px;
}

/* Контейнер для ссылок языков */
.mobile-menu__lang-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Расстояние между ссылками KZ, RU, EN */
}

/* Стиль для каждой отдельной ссылки языка */
.mobile-lang-link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 20px; /* Делает их в виде "пилюль" */
    text-decoration: none;
    font-weight: 600;
    color: var(--gray-500);
    transition: all 0.3s ease;
}

/* Стиль для неактивных ссылок при наведении */
.mobile-lang-link:not(.mobile-lang-link--active):hover {
    border-color: var(--green);
    color: var(--green);
    background-color: #f0f5ef; /* Легкий зеленый фон */
}

/* Стиль для активной ссылки языка (текущий язык) */
.mobile-lang-link--active {
    background-color: var(--green);
    border-color: var(--green);
    color: #fff;
}

/* Стили для телефона (немного подкорректируем, чтобы соответствовать дизайну) */
.mobile-menu__phone {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--green);
    border-radius: 8px;
    text-align: center;
    color: var(--green);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-menu__phone:hover {
    background-color: var(--green);
    color: white;
}

@media (max-width: 1024px) {
  .header__nav,
  .header__actions .header__lang-switcher,
  .header__actions .header__phone {
      display: none;
  }

  .header__burger-btn {
      display: flex;
  }
  
  .mobile-menu__actions {
      margin-top: 30px;
      padding-top: 20px;
      border-top: 1px solid var(--gray-200);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      padding-left: 20px;
      padding-right: 20px;
  }

  .mobile-menu__actions .header__lang-switcher {
      display: block;
      width: 100%;
  }
  .mobile-menu__actions .lang-switcher__button {
      justify-content: space-between;
      width: 100%;
      padding: 10px 15px;
      border-radius: 8px;
  }
   .mobile-menu__actions .lang-switcher__dropdown {
      top: auto;
      bottom: calc(100% + 8px); 
      right: 0;
      left:0; 
      width: 100%;
  }

  .mobile-menu__actions .mobile-menu__phone {
      display: inline-block;
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--green);
      text-decoration: none;
      padding: 10px 20px;
      border: 1px solid var(--green);
      border-radius: 8px;
      width: 100%;
      text-align: center;
  }
}

@media (max-width: 480px) {
    .header__site-name h2 {
        font-size: 0.9rem; 
    }
}


@media (max-width: 767px) { 
  .header__mobile-menu {
    width: 100%;         
    max-width: 100%;      
    padding-top: 80px;    
                             
    box-shadow: none;     
  }

 

  .header__mobile-menu ._container {
    padding-left: 20px; 
    padding-right: 20px;
  }

  .mobile-menu__nav a {
    font-size: 1.2rem; 
    padding: 18px 20px;
  }
  .mobile-menu__phone {
    font-size: 1.2rem;
    padding: 18px 20px;
  }
}



@media (max-width: 480px) {
    header ._container.header__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .header__site-name h2 {
        font-size: 0.9rem;
    }
    .header__actions {
        gap: 10px;
    }
     .lang-switcher__button .lang-switcher__current-lang,
     .lang-switcher__button .lang-switcher__arrow {
        
    }
    .lang-switcher__button {
        padding: 6px 8px;
    }
    .header__phone {
        font-size: 0;
    }
    .header__phone svg {
        width: 22px;
        height: 22px;
    }
}


body.no-scroll-mobile {
  overflow: hidden;
}

/* Hero Section */
.hero {
  color: white;
  height: 81vh;
  min-height: 450px; 
  display: flex;
  position: relative;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.hero ._container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    position: relative;
    z-index: 2;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px); 
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  max-width: 755px;
  line-height: 1.2;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25); 
  z-index: 1;
}

/* About Section */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
}
.about > div:first-child { 
    flex-basis: 500px; 
    flex-grow: 1;
    max-width: 560px;
}
.about > div:first-child img { 
  width: 100%;
  height: auto;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}
.about-text {
  flex: 1;
  flex-basis: 400px; 
  min-width: 300px;
}
.about-text h3 {
  font-size: clamp(28px, 4vw, 36px); 
  margin-bottom: 15px;
  color: var(--black);
  font-weight: 600;
}
.about-text .green-line { 
    margin: 0 0 20px; 
}
.about-text p {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* === ACTIVITIES SWIPER (КАРТОЧНАЯ КАРУСЕЛЬ) === */
.activities-swiper.swiper {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 50px;
  position: relative;
}
.activities-swiper .swiper-slide {
  height: auto;
  display: flex;
}
.activity-card {
  background-color: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}
.activity-card__image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.activity-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.activity-card__content {
  padding: 20px 25px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.activity-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 10px 0;
  line-height: 1.3;
}
.activity-card__description {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}
.activity-card__button {
  display: inline-block;
  background-color: var(--green);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  margin-top: 15px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}
.activity-card__button:hover {
  background-color: #2d5227;
}
.activity-card--empty {
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 350px;
  border: 2px dashed var(--gray-300);
  background-color: var(--gray-100);
  box-shadow: none;
}
.activity-card--empty:hover {
    transform: none;
    box-shadow: none;
}
.activity-card--empty h3 {
  font-size: 1.2rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}
.activity-card--empty p {
  color: var(--gray-500);
  font-size: 0.9rem;
}
.activities-swiper-pagination.swiper-pagination {
  position: absolute;
  bottom: 10px !important;
  left: 0;
  width: 100%;
}
.activities-swiper-pagination .swiper-pagination-bullet {
  background-color: var(--gray-300);
  opacity: 0.8;
  width: 10px;
  height: 10px;
  margin: 0 5px !important;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}
.activities-swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--green);
  opacity: 1;
}
.activities-swiper-button-prev,
.activities-swiper-button-next {
  color: var(--green);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  top: 50%;
  transform: translateY(-50%); 
                                
}
.activities-swiper-button-prev:hover,
.activities-swiper-button-next:hover {
  background-color: var(--green);
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.activities-swiper-button-prev::after,
.activities-swiper-button-next::after {
  font-size: 16px;
  font-weight: bold;
}
.activities-swiper-button-prev {
  left: 10px;
}
.activities-swiper-button-next {
  right: 10px;
}
.swiper-button-disabled { 
    display: none !important;
}
@media (max-width: 767px) {
  .activities-swiper-button-prev,
  .activities-swiper-button-next {
    width: 36px;
    height: 36px;
  }
  .activities-swiper-button-prev::after,
  .activities-swiper-button-next::after {
    font-size: 14px;
  }
  .activity-card__content {
    padding: 15px 20px 20px;
  }
  .activity-card__title {
    font-size: 1.1rem;
  }
}
@media (max-width: 575px) {
  .activities-swiper-button-prev {
    left: 5px;
  }
  .activities-swiper-button-next {
    right: 5px;
  }
}

/* Structure Section */
.structure {
  text-align: center;
  position: relative;
}
.structure h2.section-title { 
  
  
  
}
.branch-container {
  position: relative;
  max-width: 1070px;
  width: 100%;
  height: 1000px;
  margin: 0 auto;
}
.branch-image {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 490px;
  height: 900px;
  z-index: -1;
}
.region-button {
  background-color: #21372b;
  border: none;
  color: white;
  padding: 15px 20px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  position: absolute;
  width: 250px;
  transition: transform 0.2s ease-in-out, background-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.region-button:hover {
  background-color: var(--green);
}
.top-button { top: 3%; left: 50%; transform: translateX(-50%); }
.bottom-button { bottom: 10%; left: 50%; transform: translateX(-50%); }
.branch-level {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.branch-level.level-1 { top: 15%; }
.branch-level.level-2 { top: 22.5%; } 
.branch-level.level-3 { top: 30%; }
.branch-level.level-4 { top: 39%; }
.branch-level.level-5 { top: 49.5%; }
.branch-level.level-6 { top: 57%; }
.branch-level.level-7 { top: 64%; }
.branch-level.level-8 { top: 73.5%; }
.left-button { left: 5%; }
.right-button { right: 5%; }

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 20px;
}
.modal-content {
  background-color: #fff;
  color: var(--black);
  padding: 30px;
  border-radius: var(--card-radius);
  max-width: 600px;
  width: 90%;
  position: relative;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#modal1 .modal-content, #modal2 .modal-content, #modal3 .modal-content,
#modal4 .modal-content, #modal5 .modal-content, #modal6 .modal-content,
#modal7 .modal-content, #modal8 .modal-content, #modal9 .modal-content,
#modal10 .modal-content, #modal11 .modal-content, #modal12 .modal-content,
#modal13 .modal-content, #modal14 .modal-content, #modal15 .modal-content,
#modal16 .modal-content, #modal17 .modal-content, #modal18 .modal-content {
    
    
}

#modal1_functions .modal-content, #modal2_functions .modal-content,
#modal3_functions .modal-content, #modal4_functions .modal-content,
#modal5_functions .modal-content {
    
    
    text-align: center;
}
#modal1_functions .modal-content img, #modal2_functions .modal-content img,
#modal3_functions .modal-content img, #modal4_functions .modal-content img,
#modal5_functions .modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.close-btn {
  position: absolute;
  top: 2px;
  right: 9px;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-500);
  background: none;
  border: none;
  padding: 0;
}
.close-btn:hover {
  color: var(--black);
}

@media (max-width: 600px) {
  .region-button {
    font-size: 14px;
    padding: 10px;
    width: 200px;
  }
  .branch-container {
    height: auto;
    padding-bottom: 50px;
  }
  .branch-image { display: none; }
  .branch-level { position: static; flex-direction: column; gap: 15px; margin-bottom: 15px;}
  .left-button, .right-button, .top-button, .bottom-button {
    position: static;
    transform: none;
    width: 80%;
    margin: 10px auto; 
  }
}

/* Functions Section (старый слайдер, если будет использоваться) */
.functions {
  text-align: center;
}
.functions h2.section-title { } 

.slider-container.old-functions-slider {
  position: relative;
  max-width: 90%;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 60px;
  box-sizing: border-box;
}
.button-slider {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}
.function-button {
  background: white;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 15px 25px;
  border-radius: var(--card-radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  min-width: 200px;
}
.function-button:hover {
  background-color: var(--green);
  color: white;
}
.functions_block {
  height: 400px;
  width: 100%;
  max-width: 700px;
  background: #fff;
  border-radius: var(--card-radius);
  border: 1px solid var(--gray-200);
  padding: 50px;
  margin: 0 auto;
}
.slider-nav.old-functions-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--green);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.slider-prev.old-functions-nav { left: 0px; }
.slider-next.old-functions-nav { right: 0px; }

/* Team Section */
.team-section {
  text-align: center;
}
.team-section h2.section-title { } 
.team-grid {
  display: flex; 
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.team-member {
  background: #fff;
  border: 1px solid #7d7f7d;
  border-radius: 10px;
  padding: 20px;
  width: 260px; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.team-member div:first-child > span > a > img,
.team-member div:first-child > img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}
.team-member h3 {
  margin: 10px 0 5px;
  font-size: 18px;
  color: var(--black);
  font-weight: 600;
}
.team-member .position {
  color: #7d7f7d;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.team-member .contact {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

/* Map Section */
.map-wrapper {
  display: flex;
  justify-content: center;
  
}
#map {
  width: 80%;
  height: 400px;
  max-width: 1000px;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

/* Feedback Form Styles */
.feedback ol, .review ol { list-style: none; padding: 0; margin: 0; }
.feedback ol li, .review ol li {
  margin-bottom: 15px;
}
.feedback ol li label, .review ol li label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--gray-500);
}
.feedback ol li input.text, .review ol li input.text,
.feedback ol li textarea, .review ol li textarea {
  width: 100%;
  border: 1px solid var(--gray-300);
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.feedback ol li input.text:focus, .review ol li input.text:focus,
.feedback ol li textarea:focus, .review ol li textarea:focus {
    border-color: var(--green);
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 104, 50, 0.2);
}
.feedback ol li textarea, .review ol li textarea {
  min-height: 120px;
  resize: vertical;
}
.feedback ol li input.capinput, .review ol li input.capinput {
  width: 150px;
  border: 1px solid var(--gray-300);
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  margin-right: 10px;
}
.feedback ol li img#capimg, .review ol li img#capimg {
  border: 1px solid var(--gray-300);
  vertical-align: middle;
  border-radius: 8px;
}
li.button {
  padding-top: 10px;
}
.feedback ol li input[type="submit"], .review ol li input[type="submit"] {
    background-color: var(--green);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.feedback ol li input[type="submit"]:hover, .review ol li input[type="submit"]:hover {
    background-color: #2d5227;
}
.item { display: block; }
.answerList .name, .answerList .topic, .answerList .message { padding: 7px 10px; background-color: #eef; }
.answerList .name { padding-top: 10px; margin-top: 15px; border-radius: 5px 5px 0 0; font-weight: bold; }
.answerList .message { padding-bottom: 10px; border-radius: 0 0 5px 5px; }
.answerList .answer_message { background: #e0e0ff; padding: 10px; border-radius: 5px; margin: 10px 0; }
.name .date { float: right; font-weight: normal; color: var(--gray-500); }

/* Feedback Section (обертка для формы) */
.feedback-section {
  text-align: center;
}
.feedback-section h2.section-title {} 

.feedback-container {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: 30px 40px;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--gray-200);
  text-align: left;
}

/* Styles for .services (старый стиль) */
.services {
  transition: all 0.3s ease;
  width: 100%;
  padding: 0;
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: var(--card-radius);
  background: #fff;
  position: relative;
  box-shadow: var(--card-shadow);
}
.services .img {
  width: 100%;
  height: 190px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.services .media-body {
  position: relative;
  padding: 20px;
}
.services .media-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 10px;
}
.services .media-body p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.5;
}
.services .btn-custom {
  position: absolute;
  top: 20px;
  right: 20px;
  left: auto;
  width: 40px;
  height: 40px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
}
.services:hover .btn-custom {
    opacity: 1;
}
.services .btn-custom:after {
  position: absolute;
  top: 3px; bottom: 3px; left: 3px; right: 3px;
  content: '';
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.5);
}
.services .btn-custom span { color: #fff; font-size: 1.2rem; }
.services .btn-custom:hover { background: #2d5227; }

/* Styles for .services-2 (другой вариант) */
.services-2 {
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  padding: 15px;
  border-radius: var(--card-radius);
  background-color: #fff;
  box-shadow: var(--card-shadow);
}
.services-2:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.services-2 .icon {
  line-height: 1;
  margin-right: 15px;
  flex-shrink: 0;
}
.services-2 .icon span {
  font-size: 32px;
  color: var(--green) !important;
}
.services-2 .media-body {
  flex-grow: 1;
}
.services-2 .media-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--black);
}
.services-2 .media-body p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0;
}

/* === STYLES FOR "КОМПЕТЕНЦИИ" SECTION (comp) START === */
.comp__title.title {
  text-align: center;
  font-family: var(--third-family);
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 700;
  position: relative;
  margin-bottom: 15px;
  color: var(--black);
}
.comp__title.title::after {
  content: "";
  width: 50px;
  height: 4px;
  background: var(--green);
  display: block;
  margin: 15px auto 0;
  border-radius: 2px;
}
.comp__text {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-500);
}
.comp__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding-left: 20px;
  padding-right: 20px;
}
.comp__col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.item-comp {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 30px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.item-comp:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .08);
}
.item-comp__top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.item-comp__image {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
}
.item-comp__image img {
  width: 32px;
  height: 32px;
}
.item-comp__title {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 1.125rem;
  text-transform: uppercase;
  line-height: 1.3;
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 8px;
  color: var(--black);
}
.item-comp__title::after {
  content: "";
  width: 36px;
  height: 3px;
  background: var(--green);
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 2px;
}
.item-comp__text {
  flex-grow: 1;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-500);
  margin-bottom: 25px;
}
.item-comp__text p { margin: 0 0 1em; }
.item-comp__text p:last-child { margin-bottom: 0; }

.item-comp__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: auto;
}
.item-comp__link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .15s ease;
  cursor: pointer;
  padding: 8px 0;
}
.item-comp__link span {
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.item-comp__link:hover span {
  border-color: currentColor;
}
.item-comp__link img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
@media (max-width: 767px) {
    .comp__row {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 599px) {
  .item-comp { padding: 25px 20px; }
  .item-comp__top {
    gap: 15px;
  }
  .item-comp__image { width: 56px; height: 56px; flex: 0 0 56px; }
  .item-comp__image img { width: 28px; height: 28px; }
  .item-comp__title { font-size: 1rem; max-width: none; }
  .comp__title.title { font-size: 1.75rem; }
  .comp__text { font-size: 0.9rem; }
  .item-comp__bottom { justify-content: flex-start; }
}

/* === MODAL STYLES (общие и для секции "Компетенции") === */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 20px;
}

.modal-content { /* Общие стили для контента модального окна */
  background-color: #fff;
  color: var(--black);
  padding: 25px 30px 30px; /* Увеличил верхний padding для заголовка */
  border-radius: var(--card-radius);
  max-width: 700px; /* Ширина модального окна */
  width: 90%;
  position: relative;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
  max-height: 90vh; /* Ограничиваем высоту модального окна */
  display: flex; /* Для лучшего управления контентом */
  flex-direction: column;
}

.modal--comp .modal-content--comp { /* Специфичные стили для модальных окон компетенций */
  /* Можно добавить специфичные стили, если нужно */
}

.modal-title {
  font-size: 1.8rem; /* Размер заголовка в модальном окне */
  font-weight: 600;
  color: var(--black);
  margin: 0 0 20px 0; /* Отступ под заголовком */
  padding-right: 30px; /* Чтобы текст не залезал под кнопку закрытия */
  text-align: center; /* Центрируем заголовок */
}

.modal-image {
  width: 100%;
  max-height: 350px; /* Ограничение высоты изображения */
  object-fit: cover; /* Масштабирование с сохранением пропорций и обрезкой */
  border-radius: 10px; /* Скругление углов изображения */
  margin-bottom: 20px;
  display: block; /* Убирает лишние отступы под изображением */
}

.modal-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-500);
  overflow-y: auto; /* Прокрутка для длинного текста, если модалка фиксированной высоты */
  flex-grow: 1;
  margin-top: 20px;
}
.modal-text p {
    margin-bottom: 1em;
}
.modal-text p:last-child {
    margin-bottom: 0;
}

.close-btn { /* Стили для кнопки закрытия, уже должны быть у вас */
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-500);
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s ease;
}
.close-btn:hover {
  color: var(--black);
}

/* Опциональная кнопка "Получить консультацию" внутри модального окна */
.modal-button-consult {
    display: inline-block;
    background-color: var(--green);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.modal-button-consult:hover {
    background-color: #2d5227; /* Затемненный зеленый */
}

/* Адаптивность для модальных окон */
@media (max-width: 767px) {
    .modal-content {
        padding: 20px;
        max-height: 85vh;
    }
    .modal-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    .modal-image {
        max-height: 250px;
        margin-bottom: 15px;
    }
}

/* === STYLES FOR "КОМПЕТЕНЦИИ" SECTION (comp) END === */


/* Footer */
/* === FOOTER STYLES === */
.site-footer {
  background-color: var(--black); /* Темный фон, как на вашем скриншоте */
  color: var(--gray-200); /* Светлый текст */
  /* padding-top и padding-bottom уже заданы через .section-wrapper */
}

.site-footer ._container {
  /* Дополнительные стили для контейнера футера, если нужны */
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Адаптивные колонки */
  gap: 40px; /* Отступ между колонками */
  padding-bottom: var(--section-gap); /* Отступ до нижней части футера */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Тонкая линия над копирайтом */
  margin-bottom: 30px; /* Отступ от линии до копирайта */
}

.footer-column h3.footer-title, /* Для названия организации */
.footer-column h4.footer-subtitle { /* Для заголовков колонок "Контакты", "Быстрые ссылки" */
  color: #fff; /* Белый цвет для заголовков в футере */
  font-size: 1.25rem; /* ~20px */
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-300); /* Чуть светлее, чем основной текст футера */
  max-width: 350px; /* Ограничиваем ширину описания */
}

.contact-details {
  font-style: normal; /* Убираем курсив у <address> */
}

.contact-details__item {
  display: flex;
  align-items: flex-start; /* Выравнивание иконки и текста по верху */
  gap: 10px; /* Отступ между иконкой и текстом */
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.contact-details__item svg {
  width: 16px;
  height: 16px;
  fill: currentColor; /* Иконка будет цвета текста */
  color: var(--green); /* Или специфичный цвет для иконок */
  flex-shrink: 0; /* Иконка не будет сжиматься */
  margin-top: 3px; /* Небольшой сдвиг вниз для лучшего выравнивания с текстом */
}
.contact-details__item span,
.contact-details__item a.contact-link {
  color: var(--gray-200);
}
.contact-details__item a.contact-link {
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-details__item a.contact-link:hover {
  color: var(--green-light); /* Или просто var(--green) */
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--gray-200);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-links a:hover {
  color: var(--green);
  padding-left: 5px; /* Небольшой сдвиг при наведении */
}

.footer-bottom {
  padding-top: 20px; /* Отступ от разделительной линии (если убрать линию, то убрать и этот padding) */
  text-align: center;
  font-size: 0.85rem; /* ~13.6px */
  color: var(--gray-500); /* Более тусклый цвет для копирайта */
}
.footer-bottom .copyright {
  margin: 0;
}

/* Адаптивность для футера */
@media (max-width: 767px) {
  .footer-content {
    grid-template-columns: 1fr; /* Одна колонка на мобильных */
    text-align: center; /* Центрируем контент в колонках */
  }
  .footer-description {
    margin-left: auto;
    margin-right: auto;
  }
  .contact-details__item {
    justify-content: center; /* Центрируем иконку и текст */
    text-align: left; /* Но текст внутри блока выравниваем по левому краю */
  }
  .contact-details__item svg {
    margin-top: 1px; /* Может потребоваться корректировка выравнивания иконки */
  }
  .footer-column--info,
  .footer-column--contacts,
  .footer-column--links {
      margin-bottom: 30px; /* Отступ между "колонками" в мобильном виде */
  }
  .footer-column:last-child {
      margin-bottom: 0;
  }
}