/* Общие стили */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f9f9f9;
  color: #222;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Шапка */
.header {
  background: white;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  flex-wrap: wrap;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  flex: 1 1 auto;
}

.header__logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.header__title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}

.header__nav {
  flex: 1 1 auto;
  text-align: center;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 20px;
  font-size: 14px;
}

.menu a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: #2a9d8f;
}

.header__right {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  min-width: 180px;
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
}

/* Основная часть */
.main {
  padding: 20px 0 60px;
}

.intro-text p,
.intro-text ul {
  max-width: 900px;
  margin-bottom: 15px;
}

.intro-text ul {
  padding-left: 20px;
}

.intro-text strong {
  font-weight: 700;
}

/* Новости */
.news {
  margin-top: 40px;
  max-width: 1200px;
  padding: 0 15px;
}

.news h2 {
  font-size: 28px;
  margin-bottom: 25px;
  color: #111;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.news-item {
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.news-item h3 {
  font-size: 16px;
  padding: 12px 15px;
  margin: 0;
  color: #222;
}

/* Адаптивность */
@media (max-width: 768px) {
  .header__container {
    flex-wrap: wrap;
  }
  .header__nav {
    order: 3;
    width: 100%;
    margin-top: 10px;
  }
  .menu {
    justify-content: center;
    gap: 15px;
  }
  .header__left,
  .header__right {
    flex: 1 1 100%;
    justify-content: center;
    margin-bottom: 10px;
  }
  .header__title {
    font-size: 13px;
    text-align: center;
  }
  .btn-whatsapp {
    padding: 10px 20px;
    font-size: 15px;
  }
}

/* Корректировка заголовка */
.intro-text h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #005a87;
}

/* Компактный текст в логотипе */
.header__title,
.footer__text {
  font-size: 12px;
  line-height: 1.3;
}

/* Футер */
.footer {
  background-color: #ffffff;
  border-top: 1px solid #ddd;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 13px;
  color: #555;
}

.footer__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer__nav .menu {
  display: flex;
  gap: 15px;
}

.footer__copy {
  flex-basis: 100%;
  text-align: center;
  margin-top: 10px;
  color: #777;
}

@media (max-width: 600px) {
  .footer__container {
    flex-direction: column;
    text-align: center;
  }
  .footer__nav .menu {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

.news-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-link h3 {
  margin-top: 0.5em;
}

.news-link:hover h3 {
  color: #0066cc; /* Цвет текста при наведении */
  text-decoration: underline;
}

        .counter {
            background: #fff;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            text-align: center;
        }
        .progress {
            width: 100%;
            height: 25px;
            border-radius: 10px;
            background: #e0e0e0;
            position: relative;
            overflow: hidden;
            margin-top: 10px;
        }
        .progress-bar {
            height: 100%;
            border-radius: 10px;
            background: #4caf50; /* зеленый цвет для прогресса */
            width: 18%; /* Процент заполнения: (103/150)*100 */
            transition: width 0.3s;
        }
        .count {
            margin-top: 10px;
            font-size: 1.2em;
        }

.button {
            background-color: #426ab2; /* Цвет фона */
            color: white; /* Цвет текста */
            border: none; /* Без рамки */
            padding: 10px 20px; /* Отступы */
            text-align: center; /* Выравнивание текста по центру */
            text-decoration: none; /* Без подчеркивания */
            display: inline-block; /* Чтобы кнопка отображалась как inline блок */
            font-size: 16px; /* Размер шрифта */
            margin: 4px 2px; /* Отступы между кнопками */
            cursor: pointer; /* Указатель мыши */
            border-radius: 5px; /* Скругление углов */
        }
        
        .button:hover {
            background-color: #365b8a; /* Цвет фона при наведении */
        }
    
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.gallery-item {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.sections {
    display: flex;
    flex-wrap: wrap; /* Позволяет элементам перенаправляться на новую строку при недостатке места */
    justify-content: center; /* Центрирует элементы по горизонтали */
    padding: 10px; /* Отступ вокруг элементов */
    background-color: #f8f9fa; /* Цвет фона */
}

.section {
    text-decoration: none; /* Убирает подчеркивание */
    background-color: #e2e6ea; /* Цвет фона при наведении */
    border-color: #007bff; /* Цвет границы при наведении */    
    color: #007bff; /* Цвет текста */
    padding: 10px 15px; /* Внутренние отступы */
    margin: 5px; /* Внешние отступы между элементами */
    border: 1px solid transparent; /* Граница для эффекта */
    border-radius: 5px; /* Скругление углов */
    transition: background-color 0.3s, border-color 0.3s; /* Плавный переход для фона и границы */
}

.section:hover {
    background-color: #e2e6ea; /* Цвет фона при наведении */
    border-color: #007bff; /* Цвет границы при наведении */
}