/* =====================================================================
   KURGAN-HUNT — раздел «Документы»: карточки-папки из изумрудной кожи (C7)
   ===================================================================== */
.kh-docs { overflow: hidden; }
.kh-docs__aura {
  position: absolute;
  left: 50%;
  top: 30%;
  width: min(1400px, 140vw);
  height: 900px;
  margin-left: max(-700px, -70vw);
  background:
    radial-gradient(40% 40% at 30% 50%, rgba(18, 148, 102, .16), transparent 70%),
    radial-gradient(35% 35% at 72% 45%, rgba(221, 176, 74, .10), transparent 70%);
  pointer-events: none;
}
.kh-docs .kh-container { position: relative; }

/* Печать над заголовком */
.kh-docs__seal { position: relative; width: 74px; height: 74px; margin: 0 auto 6px; }
.kh-docs__seal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(221, 176, 74, .6);
  box-shadow: inset 0 0 0 7px rgba(4, 13, 9, .6), inset 0 0 0 8px rgba(221, 176, 74, .35);
}
.kh-docs__seal-ring::before, .kh-docs__seal-ring::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -4px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  transform: rotate(45deg);
  background: var(--gold-300);
  box-shadow: 0 0 10px rgba(221, 176, 74, .7);
}
.kh-docs__seal-ring::after { top: auto; bottom: -4px; }
.kh-docs__seal-core {
  position: absolute;
  inset: 24px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #5fe0ad, #0d7150 55%, #04231a);
  box-shadow: 0 0 0 1px var(--gold-400), 0 0 22px rgba(31, 191, 133, .55);
}

/* Сетка */
.kh-docs__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 40px) clamp(18px, 2.4vw, 32px);
}
.kh-docs__grid--static { grid-template-columns: 1fr; gap: 10px; max-width: 760px; margin-inline: auto; counter-reset: kh-docs; }
.kh-docs__static { color: var(--text-3); }
.kh-docs__static a { color: var(--gold-200); }

/* Карточка */
.kh-doc {
  position: relative;
  padding-top: 22px;
  cursor: pointer;
  outline: none;
}
.kh-doc__inner {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
}
/* Лист бумаги, выглядывающий из папки */
.kh-doc__paper {
  position: absolute;
  top: -16px;
  left: 34%;
  right: 7%;
  height: 72%;
  padding: 16px 16px 0;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5), transparent 30%),
    linear-gradient(160deg, #f7efd9 0%, #eadcb6 60%, #d9c798 100%);
  box-shadow: 0 -6px 20px -8px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(111, 79, 23, .25);
  transform: translateY(0) rotate(1.5deg);
  transform-origin: 50% 100%;
  transition: transform .8s var(--ease-out);
}
.kh-doc__paper-head { display: block; width: 55%; height: 6px; margin: 0 auto 10px; border-radius: 2px; background: rgba(111, 79, 23, .55); }
.kh-doc__paper i { display: block; height: 3px; margin-bottom: 7px; border-radius: 2px; background: rgba(111, 79, 23, .22); }
.kh-doc__paper i:nth-child(3) { width: 82%; }
.kh-doc__paper i:nth-child(5) { width: 64%; }
.kh-doc__paper-stamp {
  position: absolute;
  right: 14px;
  top: 34px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(154, 112, 36, .55);
  box-shadow: inset 0 0 0 3px rgba(247, 239, 217, 1), inset 0 0 0 4px rgba(154, 112, 36, .4);
}

/* Обложка папки — изумрудная кожа с золотой строчкой */
.kh-doc__cover {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 300px;
  padding: clamp(22px, 2vw, 30px);
  border-radius: 4px 16px 16px 16px;
  border: 1px solid rgba(221, 176, 74, .42);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(95, 224, 173, .16), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(0, 0, 0, .45), transparent 70%),
    repeating-radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
    linear-gradient(155deg, #0f4c37 0%, #0a3527 45%, #05190f 100%);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -20px 40px -20px rgba(0, 0, 0, .5);
  transition: box-shadow .6s var(--ease-out), border-color .6s var(--ease-out);
}
/* Строчка по краю */
.kh-doc__cover::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(221, 176, 74, .28);
  border-radius: 2px 11px 11px 11px;
  pointer-events: none;
}
/* Ярлычок папки */
.kh-doc__tab {
  position: absolute;
  left: -1px;
  top: -15px;
  width: 30%;
  height: 16px;
  border: 1px solid rgba(221, 176, 74, .42);
  border-bottom: 0;
  border-radius: 10px 12px 0 0;
  background: linear-gradient(180deg, #11563e, #0f4c37);
}
.kh-doc__tab::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 6px;
  height: 2px;
  background: var(--grad-gold-line);
  opacity: .6;
}
.kh-doc__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.kh-doc__num {
  font-family: var(--ff-head);
  font-size: 3.2rem;
  font-weight: 600;
  line-height: .9;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .85;
}
/* Золотая медаль с иконкой */
.kh-doc__seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #1a1206;
  background: radial-gradient(circle at 35% 30%, #fff4cf 0%, #efcd73 30%, #c39233 65%, #7a5716 100%);
  box-shadow: 0 0 0 3px #08241a, 0 0 0 4px rgba(221, 176, 74, .6), 0 12px 26px -8px rgba(0, 0, 0, .8), inset 0 -3px 6px rgba(70, 49, 13, .5);
  transition: transform .8s var(--ease-out);
}
.kh-doc__seal .kh-icon { width: 28px; height: 28px; stroke-width: 1.7; }
.kh-doc__seal-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(221, 176, 74, .45);
  transition: transform 1.6s var(--ease-out);
}
.kh-doc__title {
  margin: 0;
  font-family: var(--ff-head);
  font-size: clamp(1.35rem, 1.1rem + .6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--gold-100);
}
.kh-doc__note { margin: .6em 0 0; font-size: var(--fs-sm); color: var(--text-2); opacity: .8; line-height: 1.5; }
.kh-doc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; position: relative; z-index: 2; }
.kh-doc .kh-btn { letter-spacing: .12em; padding: 0 1.1em; }
.kh-doc .kh-btn .kh-icon { width: 1.2em; height: 1.2em; }
.kh-doc__glare {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 200, .16), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s;
}

/* Заявка — особая папка */
.kh-doc--form .kh-doc__cover {
  border-color: rgba(239, 205, 115, .7);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(239, 205, 115, .16), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(0, 0, 0, .45), transparent 70%),
    linear-gradient(155deg, #13684a 0%, #0b3d2c 45%, #05190f 100%);
}
.kh-doc--form .kh-doc__note::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: .6em; vertical-align: 1px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* Наведение и фокус */
.kh-doc:hover .kh-doc__paper, .kh-doc:focus-within .kh-doc__paper { transform: translateY(-26px) rotate(-1.5deg); }
.kh-doc:hover .kh-doc__cover, .kh-doc:focus-within .kh-doc__cover {
  border-color: rgba(239, 205, 115, .85);
  box-shadow: 0 40px 70px -26px rgba(0, 0, 0, .95), 0 0 0 1px rgba(221, 176, 74, .3), 0 0 50px -10px rgba(221, 176, 74, .4), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.kh-doc:hover .kh-doc__seal { transform: translateZ(40px) rotate(-8deg) scale(1.06); }
.kh-doc:hover .kh-doc__seal-ring { transform: rotate(180deg); }
.kh-doc:hover .kh-doc__glare { opacity: 1; }
.kh-doc__open:focus-visible, .kh-doc__dl:focus-visible { outline: 2px solid var(--gold-200); outline-offset: 3px; }

@media (max-width: 1023px) {
  .kh-docs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .kh-docs__grid { grid-template-columns: 1fr; gap: 34px; }
  .kh-doc__cover { min-height: 0; }
  .kh-doc__num { font-size: 2.6rem; }
  .kh-doc__seal { width: 56px; height: 56px; }
  .kh-doc__seal .kh-icon { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .kh-doc__paper, .kh-doc__seal, .kh-doc__seal-ring { transition: none; }
}
.kh-doc__depth { height: 100%; transform-style: preserve-3d; }
