/* docs - Figma 135:1044 "Документы и лицензии"; privacy по аналогии */
body.tpl-airgrill2.is-docs {
  background: #fff;
  color: #282828;
}

.ag2-docs-page {
  padding: 48px 0;
}

.ag2-docs-page .ag2-breadcrumbs {
  margin-bottom: 24px;
}

.ag2-docs__title {
  margin: 0 0 48px;
  font-family: Onest, sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 44px;
  color: #282828;
}

/* privacy-policy и прочие простые статьи в is-docs */
.ag2-page-article__title {
  margin: 0 0 48px;
  max-width: 840px;
  font-family: Onest, sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 44px;
  color: #282828;
}

.ag2-page-article__body {
  max-width: 840px;
  font-size: 16px;
  line-height: 24px;
  color: #7a7a7a;
}

.ag2-page-article__body > *:first-child {
  margin-top: 0;
}

.ag2-page-article__body > *:last-child {
  margin-bottom: 0;
}

.ag2-page-article__body p {
  margin: 0 0 16px;
}

.ag2-page-article__body h2,
.ag2-page-article__body h3 {
  margin: 32px 0 16px;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: #282828;
}

.ag2-page-article__body ul,
.ag2-page-article__body ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.ag2-page-article__body a {
  color: #282828;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ag2-page-article__body a:hover {
  color: #ff6123;
}

.ag2-docs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 406px;
  gap: 48px;
  align-items: start;
}

.ag2-docs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ag2-docs__row {
  margin: 0;
  padding: 0;
}

.ag2-docs__item {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 72px;
  padding: 0 24px 0 0;
  color: #282828 !important;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.15s ease;
}

.ag2-docs__item:hover,
.ag2-docs__item:focus-visible {
  background: #f7f7f7;
  outline: none;
}

.ag2-docs__item.is-placeholder {
  cursor: default;
}

.ag2-docs__item-icon {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
}

.ag2-docs__item-icon img {
  display: block;
  width: 24px;
  height: 24px;
}

.ag2-docs__item-title {
  flex: 1 1 auto;
  font-family: Onest, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
}

.ag2-docs__item-chevron {
  flex: 0 0 auto;
  opacity: 0;
  font-size: 18px;
  line-height: 1;
  color: #282828;
  transition: opacity 0.15s ease;
}

.ag2-docs__item:hover .ag2-docs__item-chevron,
.ag2-docs__item:focus-visible .ag2-docs__item-chevron {
  opacity: 1;
}

/* aside CTA - как delivery / Figma */
.ag2-docs__aside .ag2-blog-aside {
  position: sticky;
  top: 96px;
  padding: 36px;
  background: #f7f7f7;
  box-sizing: border-box;
}

.ag2-docs__aside .ag2-blog-aside__logo {
  width: 144px;
  height: auto;
  margin-bottom: 24px;
}

.ag2-docs__aside .ag2-blog-aside__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.ag2-docs__aside .ag2-blog-aside__text {
  margin: 0 0 36px;
  font-size: 16px;
  line-height: 24px;
  color: #7a7a7a;
}

.ag2-docs__aside .ag2-blog-aside__btn {
  gap: 4px;
  min-height: 60px;
  padding: 0;
  background: transparent;
}

.ag2-docs__aside .ag2-blog-aside__btn > span:first-child {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 16px;
  background: #282828;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.ag2-docs__aside .ag2-blog-aside__arrow {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  min-width: 60px;
  min-height: 60px;
  border-radius: 0;
  background: #282828;
  padding: 16px;
  box-sizing: border-box;
}

.ag2-docs__aside .ag2-blog-aside__arrow img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

@media (max-width: 1199px) {
  .ag2-docs__grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
  }
}

@media (max-width: 959px) {
  .ag2-docs-page {
    padding: 32px 0;
  }

  .ag2-docs__title,
  .ag2-page-article__title {
    margin-bottom: 32px;
    font-size: 28px;
    line-height: 1.2;
  }

  .ag2-docs__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ag2-docs__aside .ag2-blog-aside {
    position: static;
  }
}
