.content {
  display: grid;
  grid-template-areas: "main";
  grid-template-columns: 1fr;
  gap: var(--Spacing-x5);
  padding-bottom: var(--Spacing-x9);
  max-width: var(--max-width-page);
  margin: 0 auto;
  width: 100%;
}

.content:has(> aside) {
  grid-template-areas:
    "main"
    "sidebar";
}

.blocks {
  grid-area: main;
  display: grid;
  gap: var(--Spacing-x7);
}

.header {
  display: grid;
  gap: var(--Spacing-x4);
}

@media screen and (min-width: 1367px) {
  .content:has(> aside) {
    grid-template-areas: "sidebar main";
    grid-template-columns: 360px 1fr;
  }

  .blocks {
    gap: var(--Spacing-x9);
  }

  .blocks > section:first-of-type > header {
    gap: var(--Spacing-x2);
  }
}
