.documents-page .primary-nav .is-current::after {
  transform: scaleX(1);
}

.docs-hero {
  padding: 174px 0 76px;
}

.docs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: start;
}

.docs-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.25rem, 6vw, 5.4rem);
}

.docs-lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: #626068;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.6;
}

.docs-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 8px;
  padding: 12px 17px;
  border: 1px solid rgba(16, 16, 20, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #626068;
  font-size: 0.87rem;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.docs-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 5px rgba(207, 75, 142, 0.12);
}

.docs-section {
  padding: 0 0 clamp(96px, 10vw, 140px);
}

.docs-panel {
  position: relative;
  padding: clamp(18px, 3vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(16, 16, 20, 0.1);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 24px 70px rgba(32, 24, 48, 0.12);
  backdrop-filter: blur(16px);
}

.docs-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--gradient);
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.document-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid rgba(16, 16, 20, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.document-card:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 58, 214, 0.25);
  box-shadow: 0 20px 46px rgba(32, 24, 48, 0.1);
}

.document-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.pdf-icon {
  display: grid;
  width: 50px;
  height: 62px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(#fff, #fff) padding-box, var(--gradient) border-box;
  color: var(--violet);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 30px rgba(130, 58, 214, 0.1);
}

.document-version {
  color: #6d6a73;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: right;
}

.document-card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.1vw, 1.7rem);
  line-height: 1.08;
}

.document-card p {
  margin: 16px 0 28px;
  color: #626068;
  font-size: 0.95rem;
  line-height: 1.58;
}

.document-download {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 12px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(130, 58, 214, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.document-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(130, 58, 214, 0.32);
}

.document-download:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.document-download svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.document-file {
  display: block;
  margin-top: 9px;
  color: rgba(16, 16, 20, 0.5);
  font-size: 0.76rem;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .docs-hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .docs-badge {
    justify-self: start;
    margin-top: 0;
  }

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

  .document-card {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .docs-hero {
    padding: 132px 0 54px;
  }

  .docs-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .docs-panel {
    padding: 14px;
    border-radius: 28px;
  }

  .document-card {
    padding: 22px;
  }
}
