/* Страница «Правила и документы» */

.doc-hero {
  position: relative;
  padding: clamp(88px, 12vw, 128px) 0 clamp(36px, 5vw, 56px);
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(59, 125, 232, 0.22), transparent 55%),
    linear-gradient(180deg, #071a33, #0b2243);
  color: #fff;
  overflow: hidden;
}

.doc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 85% 100%, rgba(240, 191, 119, 0.14), transparent 70%),
    url("../img/noise.png");
  opacity: 0.6;
  pointer-events: none;
}

.doc-hero .container {
  position: relative;
  z-index: 1;
}

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

.doc-hero__back:hover {
  color: #fff;
}

.doc-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.doc-hero p {
  margin-top: 16px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
  line-height: 1.65;
}

.doc-body {
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 100px);
  background: var(--paper);
}

.doc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.doc-nav {
  position: sticky;
  top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.doc-nav p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.doc-nav a {
  display: block;
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 14.5px;
  text-decoration: none;
  line-height: 1.4;
}

.doc-nav a:hover {
  color: var(--accent-ink);
}

.draft-note {
  display: flex;
  gap: 14px;
  margin-bottom: 34px;
  padding: 18px 20px;
  border: 1px solid rgba(201, 154, 85, 0.4);
  border-radius: var(--radius-sm);
  background: #fdf6ea;
  color: #6d4f1c;
  font-size: 14.5px;
  line-height: 1.6;
}

.draft-note strong {
  color: #543d14;
}

.doc section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.doc section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.doc h2 {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
}

.doc .doc__updated {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.doc h3 {
  margin: 26px 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.doc p,
.doc li {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.72;
}

.doc p + p,
.doc p + ul,
.doc ul + p {
  margin-top: 12px;
}

.doc ul,
.doc ol {
  padding-left: 20px;
  list-style: revert;
}

.doc li + li {
  margin-top: 8px;
}

.doc a {
  color: var(--accent-ink);
}

.doc__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.doc__card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.doc__card p {
  margin: 0;
  font-size: 14px;
}

.doc__card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ph {
  padding: 1px 5px;
  border-radius: 5px;
  background: #fdf1dc;
  color: #7c5a1e;
  font-weight: 700;
  white-space: nowrap;
}

.doc__foot {
  margin-top: 36px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px;
  line-height: 1.6;
}

.doc__foot a {
  color: var(--gold-light);
}

@media (max-width: 860px) {
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-nav {
    position: static;
  }

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