/*
  Здесь только каркас: контейнеры, сетки, общие секции и адаптив.
  Благодаря этому компоненты остаются проще и предсказуемее.
*/
.container {
  width: min(100% - 32px, 1400px);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(17, 24, 39, 0.95);
  border-bottom: 1px solid rgba(248, 250, 252, 0.1);
  backdrop-filter: blur(8px);
}

.site-header__bar,
.footer__inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-main {
  display: block;
}

.section {
  padding: 80px 0;
}

.section--light {
  background: var(--background);
}

.section--muted {
  background: var(--muted);
}

.section--dark {
  background: var(--surface-dark);
  color: var(--surface-dark-foreground);
}

.section__intro {
  margin-bottom: 40px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.inline-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 1199px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 24px, 1400px);
  }

  .section {
    padding: 64px 0;
  }

  .site-header__bar,
  .footer__inner {
    min-height: 64px;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .inline-row {
    flex-wrap: wrap;
  }
}
