*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  background-color: #070611;
  color: #ffffff;
}

/* Фон с "пятнами" как в Next-странице */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.page-bg__blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.8;
}

.page-bg__blob--1 {
  left: 10%;
  top: -10%;
  width: 280px;
  height: 280px;
  background: rgba(111, 45, 168, 0.4);
}

.page-bg__blob--2 {
  right: -15%;
  top: 25%;
  width: 320px;
  height: 320px;
  background: rgba(244, 114, 182, 0.3);
}

.page-bg__blob--3 {
  left: 50%;
  bottom: -20%;
  width: 380px;
  height: 380px;
  transform: translateX(-50%);
  background: rgba(79, 70, 229, 0.25);
}

/* Общий контейнер */
.page {
  min-height: 100vh;
  padding: 40px 16px 60px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.page__inner {
  width: 100%;
  max-width: 960px;
}

/* Лэндинг документов */

.docs-header {
  text-align: center;
  margin-bottom: 40px;
}

.docs-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.docs-header__icon {
  width: 16px;
  height: 16px;
}

.docs-header__title {
  margin: 24px 0 8px;
  font-size: 32px;
  font-weight: 600;
}

.docs-header__subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* Сетка карточек */
.docs-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.docs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 20px 45px -25px rgba(111, 45, 168, 0.6);
  transition: border-color 0.18s ease, background 0.18s ease,
    transform 0.18s ease;
}

.docs-card:hover {
  border-color: rgba(183, 148, 246, 0.5);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.docs-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.docs-card__icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(111, 45, 168, 0.2);
  color: #c4b5fd;
  flex-shrink: 0;
}

.docs-card__title {
  font-size: 18px;
  font-weight: 600;
}

.docs-card__text {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  flex: 1;
}

.docs-card__link {
  margin-top: 20px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c4b5fd;
}

/* Простые иконки на SVG */
.docs-card__link-icon {
  width: 16px;
  height: 16px;
}

/* Футер на лэндинге */
.docs-footer {
  margin-top: 16px;
  padding: 20px;
  font-size: 13px;
  text-align: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
}

.docs-footer a {
  color: #c4b5fd;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s ease;
}

.docs-footer a:hover {
  border-color: #c4b5fd;
}

/* Документ-страницы */

.doc-header {
  margin-bottom: 32px;
}

.doc-header__back {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.doc-header__back:hover {
  color: #c4b5fd;
}

.doc-header__title {
  margin: 0 0 8px;
  font-size: 32px;
  text-align: center;
}

.doc-header__meta {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.doc-body {
  font-size: 15px;
  line-height: 1.7;
}

.doc-body section {
  margin-bottom: 28px;
}

.doc-body h2 {
  font-size: 20px;
  margin: 0 0 10px;
}

.doc-body p {
  margin: 4px 0 10px;
}

.doc-body ul,
.doc-body ol {
  padding-left: 20px;
  margin: 4px 0 10px;
}

.doc-body li {
  margin-bottom: 6px;
}

.doc-body a {
  color: #c4b5fd;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s ease;
}

.doc-body a:hover {
  border-color: #c4b5fd;
}
