* {
  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 {
  font-family: "Vela Sans", sans-serif !important;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  height: auto;
  background-color: #d4e7f5 !important;
}

.main-header {
  width: 100%;
  padding: 1.5rem; /* 24px */
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar-container {
  width: 80%; /* Или фиксированная ширина, например, max-width: 1200px; */
  height: 80px;
  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: 0.3s all;

    &:hover {
      opacity: 0.8;
      scale: 0.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); /* Пример синего при наведении */
  }

  .nav-item.active {
    color: var(--main-color);
  }
}

.container {
  width: 80%;
  margin: 0 auto;
  padding: 20px;
}

/* Хлебные крошки */
.breadcrumbs {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--text-light-gray);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 5px;
}

.main-title {
  font-size: 56px;
  font-weight: 700;
  color: var(--header-color); /* Более темный заголовок */
  margin-bottom: 30px;
}

.content-wrapper {
  display: flex;
  gap: 30px;
  background-color: var(--light-blue-bg); /* Фон для основной части контента */
  padding: 30px;
  border-radius: 8px;
}

/* Боковая панель фильтров */
.sidebar {
  flex: 0 0 280px; /* Фиксированная ширина сайдбара */
  padding: 20px;
  border-radius: 8px;
}

.sidebar h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--text-color); /* Или темный, как на скрине */
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  display: block;
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 8px;
}

.filter-group input[type="text"],
.filter-group select {
  width: calc(100% - 20px); /* Учитываем padding */
  padding: 10px;
  border: 1px solid #a1aecb;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box; /* Чтобы padding не увеличивал ширину */
  appearance: none; /* Убираем стандартные стрелки у select */
  background-color: transparent;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"%3E%3Cpath d="M7 10l5 5 5-5z"%3E%3C/path%3E%3C/svg%3E'); /* Кастомная стрелка для select */
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
}

.filter-group input[type="text"] {
  padding-right: 30px; /* Место для иконки поиска */
  background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"%3E%3Cpath d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"%3E%3C/path%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
}

/* Основная область контента со списком документов */
.main-content {
  flex-grow: 1;
}

.document-list {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Расстояние между элементами списка */
}

.document-item {
  background-color: var(--white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Выравнивание по верху, т.к. описание может быть длинным */
  border: 1px solid var(--white); /* Бордер, как на скрине */
}

.document-info {
  flex-grow: 1;
  padding-right: 20px; /* Отступ от правой части с кнопкой */
}

.document-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color); /* Заголовок синим цветом */
  margin-bottom: 5px;
  text-decoration: none; /* Убрать подчеркивание у ссылки */
}

.document-title:hover {
  text-decoration: underline; /* Добавить подчеркивание при наведении */
}

.document-description {
  font-size: 15px;
  color: var(--header-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.document-meta {
  font-size: 13px;
  color: #a1aecb;
  display: flex;
  gap: 15px;
}

.document-meta a {
  color: var(--main-color);
  text-decoration: none;
}

.document-meta a:hover {
  text-decoration: underline;
}

.download-button {
  background-color: #c9d3e8; /* Светло-синий фон кнопки */
  border: 1px solid #c9d3e8; /* Легкий бордер */
  border-radius: 5px;
  width: 40px; /* Квадратная кнопка */
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0; /* Не сжимать кнопку */
}

.download-button:hover {
  background-color: #d2e0f0;
}

.download-button svg {
  width: 20px;
  height: 20px;
  fill: var(--white); /* Цвет иконки */
}

/* Пагинация */
.slider-pagination {
  display: flex;
  justify-content: flex-end; /* Выравнивание вправо, как на макете */
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-right: 10px; /* Отступ справа, чтобы выровнять с карточками */
  font-size: 16px;
  color: var(--text-color);

  .left-arrow {
    transform: rotateZ(180deg);
  }
}

.current-slide {
  font-size: 24px;
}

.pagination-info {
  font-size: 20px;
}

.slider-pagination .current-slide {
  font-weight: bold;
}

.pagination-arrow {
  width: 100px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--text-color);
  background: none;
  border-radius: 100px;
  padding: 5px 10px;
  margin-left: 10px; /* Отступ между цифрами и стрелками */
  cursor: pointer;
  font-size: 16px;
  color: var(--text-color);
  transition: 0.3s all;
}

.pagination-arrow:hover {
  background-color: #f0f0f0;
}

.footer {
  width: 90%;
  height: 60vh;
  border-radius: 8px;
  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;
    column-rule-color: var(--header-color);
  }

  .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: 0.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);
}
