/* Подключаем шрифт */
@import url('https://fonts.cdnfonts.com/css/vela-sans');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root{
    --main-color: #3B8DF2;       /* Основной цвет (например, синий) */
  --header-color: #1A2149;     /* Цвет заголовка (например, тёмно-синий) */
  --text-color: #454B6D;       /* Основной цвет текста (тёмно-серый) */
  --white: #ffffff;            /* Белый */
  --red: #EE6673;              /* Красный */
  --green: #5BA87D;            /* Зелёный */
  --violet: #6B3CC8;            /* Фиолетовый */
}

@font-face {
  font-family: 'Vela Sans';
  src: url('fonts/VelaSans-Regular.woff2') format('woff2'),
       url('fonts/VelaSans-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
  color: #454B6D;
  background-color: #d4e7f5;
  font-family: 'Vela Sans', sans-serif;
  overflow-x: hidden;
}

/* Контейнер */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-header {
    width: 100%;
    padding: 1.5rem; /* 24px */
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 10;
}

.navbar-container {
    width: 90%; /* Или фиксированная ширина, например, max-width: 1200px; */
    height: 80px;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.8); /* Полупрозрачный белый */
    border-radius: 0.5rem; /* 8px */
    padding: 0.75rem 1.25rem; /* 12px 20px */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тень */
    display: flex;
    justify-content: space-between;
    align-items: center;


    .header_btn{
        cursor: pointer;
        width: 60px;
        height: 60px;
        border: 1px solid var(--main-color);
        background-color: var(--main-color);
        border-radius: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: .3s all;


        &:hover{
            opacity: .8;
            scale: .9;
        }
    }

    .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--header-color);
    font-weight: bold;
    font-size: 1.25rem; /* 20px */
}

.logo-img {
    width: 110px;
    height: 90px;
}

.logo-text {
    color: #333;
    font-size: 1.25rem; /* 20px */
}

.nav-links {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 2rem; /* 32px */
}

.nav-item {
    text-decoration: none;
    color: var(--header-color);
    font-weight: 600;
    font-size: 1.125rem; /* 18px */
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--main-color); /* Пример синего при наведении */
}

}

.header {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.logo {
  font-size: 32px;
  font-weight: 600;
  color: #3B8DF2;
  max-width: 600px;
}
.nav a {
    font-size: 18px;
  margin-left: 24px;
  color: #454B6D;
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover {
  color: #3B8DF2;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: url("./img/hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.15rem;
  color: #e9f1ff;
}

.section {
  padding: 80px 0;
}
.section-alt {
  background: #ffffff;
}
.section-dark {
  background: white;
  color: #3B8DF2;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #3B8DF2;
  margin-bottom: 32px;
}
.section-text {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

.goals-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 18px;
}
.goals-list li {
  background: #f1f4f9;
  border-left: 4px solid #3B8DF2;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 1.05rem;
}
.goals-list i {
  color: #3B8DF2;
  margin-right: 10px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.projects-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.projects-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.contacts-info p {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.contacts-info i {
  color: #3B8DF2;
  margin-right: 10px;
}
.contacts-info a {
  color: #3B8DF2;
  text-decoration: none;
}
.contacts-info a:hover {
  text-decoration: underline;
}

.about-block {
  padding: 80px 0;
  background: #f9f9f9;
  font-family: 'Vela Sans', sans-serif;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #3B8DF2;
  text-transform: uppercase;
  margin-bottom: 40px;
  text-align: center;
}

.about-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.about-text {
  flex: 1 1 55%;
}

.about-img {
  flex: 1 1 40%;
}

.about-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-visual-block {
  margin: 40px 0;
  text-align: center;
}

.about-wide-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-gallery {
  display: flex;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.about-gallery img {
  flex: 1 1 48%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-block h3 {
  color: #3B8DF2;
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 15px;
}

.about-block p {
  font-size: 16px;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 16px;
}

.tasks-list {
  margin-top: 15px;
  padding-left: 20px;
  list-style-type: disc;
}

.tasks-list li {
  margin-bottom: 10px;
  font-size: 16px;
}


.news{
    padding: 60px 0;

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}



.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--main-color);
}



.list-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden; 
    box-shadow: var(--box-shadow);
}

.list-group-item {
    display: flex;
    padding: 1.5rem 1.25rem; /* Увеличенный вертикальный отступ */
    color: var(--text-color);
    border-radius: 0.75rem; /* Более выраженные углы */
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, transform 0.2s;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background-color: #f9faff; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Вспомогательные классы из разметки */
.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.w-100 {
    width: 100% !important;
}

.mb-1 {
    margin-bottom: 0.5rem !important; /* Отступ */
}


/* Заголовок новости */
.list-group-item h5 {
    font-size: 1.35rem; /* Немного крупнее */
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.2;
}

/* Текст новости */
.list-group-item p {
    margin-bottom: 1rem;
    line-height: 1.5;
    color: var(--dark-text);
}

/* Дата */
.text-muted {
    font-size: 0.85rem;
    color: var(--muted-text) !important;
    font-weight: 500;
}
}


.leadership{
  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px; 
    margin-top: 30px;
    justify-items: center; 
}

.team-grid .leader-card:last-child {
  grid-column: 1 / -1; /* занимает всю строку */
  justify-self: center; /* центрирует саму карточку */
  width: 100%;
  max-width: 250px; /* чтобы не растягивалась */
}

.leader-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-image-wrapper {
    width: 100%;
    /* Обеспечивает квадратное соотношение для изображения */
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    position: relative;
    background-color: var(--text-color);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.leader-card:hover .card-image {
    transform: scale(1.05);
}

.card-body {
    padding: 15px 10px 20px;
    flex-grow: 1; /* Заставляет блок занимать все доступное пространство */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-body h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--header-color);
    margin-bottom: 5px;
    line-height: 1.2;
}

.card-body .position {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
    min-height: 36px; /* Для выравнивания, если должность занимает 2 строки */
}

/* Стили для ссылок-контактов */
.card-body .contact-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: 5px;
    transition: color 0.2s ease;
    text-align: left;
}

.contact-link{
  display: flex;
  justify-content: center;
}

.card-body .contact-link i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 1rem;
}

.card-body .contact-link:hover {
    color: var(--text-color);
}

.card-body .text-muted {
    color: var(--text-color);
}

/* Дополнительный блок для примечания */
.team-disclaimer {
    margin-top: 40px;
    padding: 15px;
    background-color: var(--text-color);
    border-radius: 0.5rem;
    border-left: 5px solid var(--primary-color);
    font-size: 0.9rem;
    color: var(--dark-text);
}
}

.structure{
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 900px;
  margin-top: 100px;
  margin-bottom: 250px;

  .container{
    width: 1250px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    .document-title{
      font-size: 32px;
      font-weight: 700;
      color: var(--main-color);
      text-transform: uppercase;
      text-align: center;
    }

    .text-center{
      width: 100%;
      height: 90%;

      img{
        margin-top: 100px;
        min-width: 100%;
      height: 800px;
      border-radius: 16px;

      &:hover{
        transition: .3s all;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        scale: 1.2;
      }
      }
      
    }
  }
}



.footer {
            width: 90%;
            height: 60vh;
            margin: 0 auto;
            border-radius: 16px;
            background-color: var(--white); /* Белый фон футера */
            padding: 80px 100px; /* Отступы внутри футера */
            border-top: 1px solid var(--border-color); /* Верхняя граница */
            box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05); /* Легкая тень сверху */
            margin-top: 50px;
            margin-bottom: 50px; /* Прижать футер к низу */
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: start;

            h2{
                font-size: 40px;
                font-weight: 600;
                color: black;
            }

            .content{
                width: 100%;
                height: 80%;
                margin-top: 50px;

                .contacts-header {
            font-size: 32px; /* Размер заголовка "Контакты" */
            color: var(--header-color);
            margin-bottom: 40px; /* Отступ под заголовком */
            font-weight: 600;
        }

        .contacts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 4 колонки, адаптивные */
            gap: 30px; /* Отступ между ячейками сетки */
        }

        .contact-column {
            display: flex;
            flex-direction: column;
            gap: 20px; /* Отступ между элементами внутри колонки */
        }

        .contact-column h4 {
            font-size: 16px; /* Размер подзаголовка колонки */
            color: var(--text-color); /* Цвет подзаголовка */
            margin: 0;
            font-weight: 500;
        }

        .contact-item {
            display: flex;
            align-items: center;
        }

        .contact-item .icon-wrapper {
            background-color: var(--main-color); /* Фон иконки */
            border-radius: 50%; /* Круглая форма */
            width: 32px; /* Размер круга */
            height: 32px; /* Размер круга */
            display: flex;
            justify-content: center;
            align-items: center;
            margin-right: 12px; /* Отступ справа от круга */
            flex-shrink: 0; /* Не сжимать */
        }

        .contact-item .icon-wrapper i,
        .contact-item .icon-wrapper svg {
            color: var(--white); /* Цвет иконки */
            font-size: 16px; /* Размер иконки */

        }

        .contact-item a,
        .contact-item span {
            font-size: 14px; /* Размер шрифта текста ссылки/спана */
            color: var(--main-color); /* Цвет ссылки/текста */
            text-decoration: none;
            transition: color 0.2s ease;
            cursor: pointer;
        }

        .contact-item a:hover {
            transition: .3s all;
        }

        /* Стиль для графа работы */
        .schedule-item {
            display: flex;
            margin-bottom: 8px; /* Отступ между строками расписания */
        }
        .schedule-item:last-child {
            margin-bottom: 0;
        }

        .schedule-item .day {
            font-size: 14px;
            color: var(--main-color); /* Цвет дней недели */
            margin-right: 5px;
            white-space: nowrap; /* Чтобы день не переносился */
        }
        .schedule-item .time {
            font-size: 14px;
            color: var(--main-color); /* Цвет времени */
        }
        .schedule-item .weekend {
            color: #FF0000; /* Красный цвет для выходных */
        }

        /* Кнопка подписки */
        .subscribe-button {
            display: inline-flex; /* Используем inline-flex для кнопки и стрелки */
            align-items: center;
            padding: 12px 20px; /* Отступы внутри кнопки */
            border: 1px solid var(--main-color); /* Граница кнопки */
            border-radius: 8px; /* Скругление кнопки */
            color: var(--main-color); /* Цвет текста кнопки */
            background-color: var(--white); /* Фон кнопки */
            text-decoration: none;
            font-size: 14px; /* Размер шрифта кнопки */
            font-weight: 500;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .subscribe-button i {
            margin-left: 10px; /* Отступ для иконки стрелки */
            font-size: 16px;
            transition: color 0.2s ease;
        }

        .subscribe-button:hover {
            background-color: var(--main-color);
            color: var(--white);
        }
        .subscribe-button:hover i {
            color: var(--white);
        }

            }
            
        }


        .footer-bottom{
            width: 100%;
            height: 20px;
            display: flex;
            justify-content: center;
            font-size: 14px;
            font-weight: 400;
            column-rule-color: var(--text-color);
            transform: translateY(50px);
        }

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }
  .nav {
    margin-top: 10px;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    height: 300px;
  }
  .hero h2 {
    font-size: 1.6rem;
  }
}




/* 🔹 Общие анимации */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 🔹 Hero — параллакс и плавное появление текста */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: url("./img/hero.jpg") center/cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fade-up 1.2s ease forwards;
  opacity: 0;
  animation-delay: 0.5s;
}

.hero-content h2 {
  font-size: 2.5rem;
  animation: fade-up 1.2s ease forwards;
  animation-delay: 0.5s;
}

.hero-content p {
  animation: fade-up 1.5s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

/* 🔹 Картинки */
.about-img img,
.about-gallery img,
.projects-grid img {
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.about-img img:hover,
.about-gallery img:hover,
.projects-grid img:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* 🔹 Кнопки */
.header_btn,
.subscribe-button {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header_btn:hover,
.subscribe-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(59,141,242,0.3);
}

/* 🔹 Иконки в футере */
.icon-wrapper i {
  color: #3B8DF2;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.icon-wrapper i:hover {
  transform: scale(1.2);
  color: #1e6fd1;
  text-shadow: 0 0 8px rgba(59,141,242,0.5);
}
