/* ─────────────────────────────────────────────────────────────────────────
   Документы — page-specific styles
   Figma node: 302-5679
   Базовые переменные, хедер, футер определены в home/styles.css
   Горизонтальные отступы — только через var(--px), как на других страницах
───────────────────────────────────────────────────────────────────────── */

/* ──────────────────────────────────────────────────────────────────────
   BREADCRUMB  (тот же паттерн, что на contacts / anticorruption)
────────────────────────────────────────────────────────────────────── */
.page-crumb-wrap {
  padding: 20px var(--px) 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: #fff; }

.breadcrumb-sep {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--text-muted);
  flex-shrink: 0;
}

.breadcrumb-current { color: #fff; }

/* ──────────────────────────────────────────────────────────────────────
   PAGE HERO
────────────────────────────────────────────────────────────────────── */
.doc-hero {
  padding: 56px var(--px) 48px;
}

.doc-title {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: #fff;
}

/* ──────────────────────────────────────────────────────────────────────
   CATEGORY FILTER TABS
────────────────────────────────────────────────────────────────────── */
.doc-tabs-section {
  padding: 0 var(--px) 40px;
}

.doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.doc-tab {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  text-decoration: none;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.doc-tab--inactive {
  border-color: #56718F;
}
.doc-tab--inactive:hover {
  border-color: #fff;
}

.doc-tab--active {
  background: #FF8368;
  border-color: #FF8368;
}

/* ──────────────────────────────────────────────────────────────────────
   DOCUMENT CARDS SECTION (file-based docs)
────────────────────────────────────────────────────────────────────── */
.doc-body {
  padding: 0 var(--px) 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* File document card */
.doc-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(6, 26, 47, 1) 0%, rgba(53, 66, 84, 1) 100%);
  text-decoration: none;
  color: #fff;
  transition: filter 0.2s;
}

.doc-card:hover {
  filter: brightness(1.12);
}

.doc-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 1px;
}

.doc-card__icon svg {
  width: 24px;
  height: 24px;
  color: #56718F;
}

.doc-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.doc-card__title {
  font-family: 'Play', Arial, sans-serif;
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
  color: #fff;
}

/* Download button — hidden on desktop, visible on mobile/tablet */
.doc-card__download-btn {
  display: none;
  align-self: flex-start;
  padding: 12px 24px;
  border: 1px solid #56718F;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #fff;
  white-space: nowrap;
}

/* ──────────────────────────────────────────────────────────────────────
   PAGINATION
────────────────────────────────────────────────────────────────────── */
.doc-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

.doc-page-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  text-decoration: none;
  border: 1px solid #56718F;
  min-width: 40px;
  transition: border-color 0.2s, background 0.2s;
}

.doc-page-btn:hover {
  border-color: #fff;
}

.doc-page-btn--active {
  border-color: #FF8368;
  color: #FF8368;
}

.doc-page-btn--arrow {
  border-color: #56718F;
}

.doc-page-btn--arrow svg {
  width: 8px;
  height: 12px;
}

/* ──────────────────────────────────────────────────────────────────────
   EXTERNAL LINK CARDS SECTION
────────────────────────────────────────────────────────────────────── */
.doc-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.doc-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 24px;
  border: 1px solid #56718F;
  border-radius: 8px;
}

.doc-link-card__title {
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 26px;
  color: #fff;
  margin: 0;
}

.doc-link-card__btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 12px 24px;
  border: 1px solid #56718F;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s;
}

.doc-link-card__btn:hover {
  border-color: #fff;
}

/* ──────────────────────────────────────────────────────────────────────
   EMPTY STATE
────────────────────────────────────────────────────────────────────── */
.doc-empty {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #56718F;
  padding: 48px 0;
  text-align: center;
}

/* ──────────────────────────────────────────────────────────────────────
   RESPONSIVE — TABLET (≤1024px)
────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .doc-links {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────────────────────────────────
   RESPONSIVE — MOBILE/TABLET (≤768px)
   Download button becomes visible on cards
────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .doc-hero {
    padding: 32px var(--px) 32px;
  }

  .doc-tabs-section {
    padding-bottom: 24px;
    overflow-x: auto;
  }

  .doc-tabs {
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .doc-tab {
    padding: 10px 20px;
    font-size: 14px;
  }

  .doc-card {
    flex-direction: column;
    gap: 16px;
  }

  /* Show download button on mobile/tablet */
  .doc-card__download-btn {
    display: inline-flex;
  }

  .doc-links {
    grid-template-columns: 1fr;
  }

  .doc-link-card {
    gap: 24px;
  }

  .doc-pagination {
    flex-wrap: wrap;
  }
}
