/* Базовый контейнер сетки */
.grid-container {
  display: grid;
  gap: 18px; /* Отступ между карточками */
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

/* 1 колонка */
.grid-1 {
  grid-template-columns: repeat(1, 1fr);
}

/* 2 колонки */
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* 3 колонки */
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* 4 колонки */
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* --- Responsive (Адаптивность) --- */

/* Планшеты: если колонок 3 или 4, сбрасываем до 2 */
@media (max-width: 1024px) {
  .hero-stats,
  .grid-3cols,
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Мобильные: всё в 1 колонку */
@media (max-width: 600px) {
  .features-grid,
  .hero-stats,
  .grid-3cols,
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
  }
}

.grid-auto {
  display: grid;
  gap: 18px;
  /* Заполнит ряд колонками шириной минимум 250px, максимум 1fr */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 1400px) {
  .site-header > .container.nav {
    padding-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
}
@media (max-width: 900px) {
  .site-header > .container.nav > .nav-links {
    justify-content: center;
  }
}

.menu-toggle {
  width: 30px;
  height: 24px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

@media (max-width: 630px) {
  .site-header > .container.nav {
    flex-direction: row;
    align-items: flex-start;
  }
  .site-header > .container.nav > a > .brand-text {
    display: none;
  }
  .site-header > .container.nav > .nav-links {
    flex-direction: column;
    width: auto;
  }
  .site-header > .container.nav > .nav-links.open {
    flex-direction: column;
  }
  .site-header > .container.nav > .nav-links {
    gap: 0;
  }
  .site-header > .container.nav > .nav-links > a,
  .site-header > .container.nav > .nav-links > a.nav-cta {
    height: 0;
    padding: 0 !important;
    max-height: 0;
    transition: all 0.5s linear;
    overflow: hidden;
  }
  .site-header > .container.nav > .nav-links.open {
    gap: 6px;
  }
  .site-header > .container.nav > .nav-links.open > a {
    height: auto;
    padding: 11px 16px !important;
    max-height: inherit;
  }

  .menu-toggle {
    display: flex;
    margin-top: 8px;
  }
}



.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333; /* Цвет линий */
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* Эффект при нажатии (Класс добавляется через JS) */

/* Верхняя линия наклоняется */
.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

/* Средняя линия исчезает */
.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

/* Нижняя линия наклоняется в другую сторону */
.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}