/* =====================================================================
   KURGAN-HUNT — главная: первый экран, «О компании», трофейная дичь,
   диплом CIC (владелец C4b). Анимации — в assets/js/kh-home.js.
   ===================================================================== */

@property --kh-shx { syntax: '<length>'; inherits: true; initial-value: 0px; }

/* ---------------------------------------------------------------------
   ПЕРВЫЙ ЭКРАН
   Секция закрепляется (pin) — трансформируем только .kh-hero__stage
   --------------------------------------------------------------------- */
.kh-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  z-index: var(--z-content);
  color: var(--text);
}
.kh-hero__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 1500px;
  perspective-origin: 50% 35%;
}
.kh-hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 55%, rgba(13, 113, 80, .28), transparent 70%),
    radial-gradient(40% 30% at 50% 100%, rgba(221, 176, 74, .12), transparent 70%);
  pointer-events: none;
}
.kh-hero__shadow {
  position: absolute;
  left: 12%; right: 12%; bottom: 4%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent);
  opacity: 0;
  pointer-events: none;
}
.kh-hero__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-origin: 50% 75%;
  background: #030a07;
  transform-style: flat;
}

/* Слайды */
.kh-hero__media {
  position: absolute;
  inset: -3%;
  z-index: 0;              /* свой контекст наложения: z-index слайдов не перекрывает текст */
  background:
    radial-gradient(55% 60% at 72% 45%, rgba(18, 148, 102, .32), transparent 70%),
    radial-gradient(35% 40% at 80% 70%, rgba(221, 176, 74, .14), transparent 70%),
    linear-gradient(160deg, #0a1d16 0%, #04120c 55%, #020805 100%);
}
.kh-hero__slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
}
.kh-hero__slide.is-active { opacity: 1; }
.kh-hero--css .kh-hero__slide { transition: opacity 1.8s ease; }
.kh-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  transform-origin: 65% 50%;
  backface-visibility: hidden;
}
.kh-hero__slide.is-missing .kh-hero__img { visibility: hidden; }

.kh-hero__slide.is-zooming .kh-hero__img {
  transform-origin: 62% 48%;
  animation: kh-hero-zoom var(--kh-zoom-time) linear both paused;
}
.kh-hero__slide.is-zooming:nth-child(even) .kh-hero__img {
  transform-origin: 60% 46%;
  animation-direction: reverse;
}
.kh-hero__media.is-playing .is-zooming .kh-hero__img { animation-play-state: running; }
@keyframes kh-hero-zoom {
  from { transform: scale(1.18); }
  to { transform: scale(1); }
}

.kh-hero__dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}
.kh-hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 10, 7, .92) 0%, rgba(3, 10, 7, .6) 35%, rgba(3, 10, 7, 0) 65%),
    linear-gradient(180deg, rgba(3, 10, 7, .55) 0%, rgba(3, 10, 7, 0) 22%);
}
.kh-hero__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 60% 45%, transparent 55%, rgba(2, 8, 5, .7) 100%),
    linear-gradient(180deg, transparent 70%, rgba(4, 13, 9, .75) 92%, #040d09 100%);
}
.kh-hero__dim {
  position: absolute;
  inset: 0;
  background: #020604;
  opacity: 0;
  pointer-events: none;
}
.kh-hero__border {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(239, 205, 115, .55);
  border-radius: inherit;
  box-shadow: inset 0 0 0 7px rgba(3, 10, 7, .0), inset 0 0 0 8px rgba(221, 176, 74, .25);
  opacity: 0;
  pointer-events: none;
}

/* Контент слева */
.kh-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) * .7);
  padding-bottom: clamp(40px, 7vh, 90px);
}
.kh-hero__inner {
  max-width: min(800px, 56vw);
  transform-style: preserve-3d;
}
.kh-hero__emblem {
  width: clamp(150px, min(19vw, 27vh), 290px);
  height: auto;
  margin: 0 0 clamp(10px, 2vh, 24px) -2%;
  filter: drop-shadow(0 0 18px rgba(221, 176, 74, .35)) drop-shadow(0 12px 24px rgba(0, 0, 0, .6));
  animation: kh-hero-glow 5s ease-in-out infinite;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}
.kh-hero__emblem.is-missing { display: none; }
@keyframes kh-hero-glow {
  50% { filter: drop-shadow(0 0 32px rgba(239, 205, 115, .55)) drop-shadow(0 12px 24px rgba(0, 0, 0, .6)); }
}

.kh-hero__title {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(3.2rem, min(9vw, 13vh), 9rem);
  line-height: .95;
  letter-spacing: .04em;
  perspective: 900px;
  animation: kh-hero-shine 9s linear infinite;
}
@keyframes kh-hero-shine { to { --kh-shx: 900px; } }
.kh-hero__wm { display: block; }
.kh-hero__line { display: block; white-space: nowrap; }
.kh-hero__line--2 { display: flex; align-items: center; gap: .22em; margin-top: .02em; }
.kh-hero__word {
  display: inline-block;
  background: linear-gradient(100deg, #b8862a 0%, #f1d27a 14%, #fff4cf 24%, #e0b552 37%, #9a7024 52%, #e9c766 67%, #fbe7a6 78%, #c9952f 90%, #b8862a 100%);
  background-size: 900px 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 .05em .06em rgba(0, 0, 0, .55));
}
.kh-hero__word.is-split { background: none; filter: none; transform-style: preserve-3d; }
.kh-hero__ch {
  position: relative;
  display: inline-block;
  transform-origin: 50% 80%;
  backface-visibility: hidden;
}
.kh-hero__ch-face, .kh-hero__ch-back { display: block; }
.kh-hero__ch-face {
  position: relative;
  background: linear-gradient(100deg, #b8862a 0%, #f1d27a 14%, #fff4cf 24%, #e0b552 37%, #9a7024 52%, #e9c766 67%, #fbe7a6 78%, #c9952f 90%, #b8862a 100%);
  background-size: 900px 100%;
  background-repeat: repeat-x;
  background-position: calc(var(--kh-shx) - var(--x, 0px)) 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.kh-hero__ch-back {
  position: absolute;
  inset: 0;
  color: #6f4f17;
  -webkit-text-fill-color: #6f4f17;
  text-shadow:
    .01em .012em 0 #5e4313, .02em .024em 0 #523a10, .03em .036em 0 #46310d,
    .04em .048em 0 #3a280a, .05em .06em 0 #2e2008, .06em .07em .12em rgba(0, 0, 0, .7),
    .02em .1em .3em rgba(0, 0, 0, .55);
  pointer-events: none;
}
.kh-hero__rule { position: relative; display: inline-flex; align-items: center; width: .95em; height: .2em; flex: none; }
.kh-hero__rule-line { flex: 1; height: max(2px, .035em); background: linear-gradient(90deg, rgba(221, 176, 74, 0), var(--gold-300)); }
.kh-hero__rule-gem {
  width: .16em; height: .16em; margin-left: .06em;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #5fe0ad, #0d7150 55%, #04231a);
  box-shadow: 0 0 0 max(1px, .015em) var(--gold-300), 0 0 .2em rgba(31, 191, 133, .8);
}

.kh-hero__slogan {
  display: flex;
  align-items: center;
  gap: .6em;
  margin-top: clamp(14px, 2.4vh, 26px);
  font-family: var(--ff-head);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, min(2.6vw, 4.2vh), 2.6rem);
  line-height: 1.2;
  color: var(--gold-50);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .7);
}
.kh-hero__dash { width: 1.6em; height: 1px; flex: none; background: linear-gradient(90deg, transparent, var(--gold-300)); }
.kh-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5em 1em;
  margin-top: clamp(12px, 2vh, 20px);
  font-size: clamp(.68rem, .62rem + .25vw, .82rem);
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-2);
}
.kh-hero__gem {
  width: .62em; height: .62em;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #5fe0ad, #0d7150 55%, #04231a);
  box-shadow: 0 0 0 1px var(--gold-400), 0 0 10px rgba(31, 191, 133, .6);
}
.kh-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(20px, 3.6vh, 40px); }
.kh-hero__ico { display: inline-flex; }
/* «Оставить заявку» — без размытия фона: в Safari, когда блок кнопок заканчивает
   выезжать (прозрачность доходит до 1), размытие на пару кадров вспыхивало красным
   у левого края (сбой отрисовки свечения соседней золотой кнопки) */
.kh-hero__btn.kh-btn--ghost { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgba(4, 13, 9, .38); }
.kh-hero__btn.kh-btn--ghost:hover { background-color: rgba(221, 176, 74, .1); }

/* Подпись, счётчик и полосы слайдов */
.kh-hero__ui {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(26px, 5vh, 54px);
  width: min(360px, 30vw);
  z-index: 3;
}
.kh-hero__ui[hidden] { display: none; }
.kh-hero__cap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  min-height: 34px;
}
.kh-hero__cap-ico {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-300);
  background: rgba(3, 10, 7, .5);
}
.kh-hero__cap-ico img { width: 22px; height: 22px; object-fit: contain; }
.kh-hero__cap-ico .kh-icon { width: 18px; height: 18px; }
.kh-hero__cap-title {
  flex: 1;
  font-family: var(--ff-head);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-100);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kh-hero__count { font-family: var(--ff-display); font-size: .95rem; letter-spacing: .12em; color: var(--text-2); white-space: nowrap; }
.kh-hero__count b { color: var(--gold-200); font-weight: 700; font-size: 1.25rem; }
.kh-hero__bars { display: flex; gap: 6px; }
.kh-hero__bar {
  position: relative;
  flex: 1;
  height: 20px;
  cursor: pointer;
}
.kh-hero__bar::before, .kh-hero__fill {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
}
.kh-hero__bar::before { background: rgba(236, 230, 214, .22); transition: background-color .3s; }
.kh-hero__bar:hover::before { background: rgba(236, 230, 214, .45); }
.kh-hero__fill { background: var(--grad-gold-line); background: linear-gradient(90deg, var(--gold-500), var(--gold-200)); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 8px rgba(239, 205, 115, .6); }
.kh-hero__bar.is-done .kh-hero__fill { transform: scaleX(1); }

/* Подсказка «Листайте вниз» */
.kh-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3.5vh, 36px);
  transform: translateX(-50%);
  z-index: 3;
  color: var(--gold-200);
}
.kh-hero__scroll-in { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.kh-hero__mouse {
  position: relative;
  width: 24px; height: 38px;
  border: 1.5px solid var(--gold-300);
  border-radius: 13px;
  box-shadow: 0 0 14px rgba(221, 176, 74, .3);
}
.kh-hero__wheel {
  position: absolute;
  left: 50%; top: 7px;
  width: 4px; height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold-200);
  animation: kh-hero-wheel 1.8s var(--ease-in-out) infinite;
}
@keyframes kh-hero-wheel {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}
.kh-hero__scroll-text { font-size: .66rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }

@media (max-width: 1100px) {
  .kh-hero__inner { max-width: 62vw; }
}
/* слоган — в одну строку на компьютере */
@media (min-width: 1024px) {
  .kh-hero__slogan-text { white-space: nowrap; }
}
@media (max-width: 767px) {
  .kh-hero__content { align-items: flex-end; padding-bottom: 118px; }
  .kh-hero__inner { max-width: none; }
  .kh-hero__shade {
    background:
      linear-gradient(0deg, rgba(3, 10, 7, .95) 0%, rgba(3, 10, 7, .7) 45%, rgba(3, 10, 7, .15) 80%),
      linear-gradient(180deg, rgba(3, 10, 7, .6) 0%, rgba(3, 10, 7, 0) 20%);
  }
  .kh-hero__img { object-position: 68% 50%; }
  .kh-hero__emblem { width: clamp(120px, 34vw, 170px); }
  .kh-hero__title { font-size: clamp(2.7rem, 13.5vw, 4rem); }
  .kh-hero__meta { letter-spacing: .16em; }
  /* на телефоне «7 охотничьих хозяйств» — отдельной строкой, без висящего ромба */
  .kh-hero__meta > span:nth-child(4) { display: none; }
  .kh-hero__meta > span:nth-child(5) { flex-basis: 100%; }
  .kh-hero__actions .kh-btn { flex: 1 1 100%; }
  .kh-hero__ui { left: var(--gutter); right: var(--gutter); width: auto; bottom: 22px; }
  .kh-hero__cap { margin-bottom: 6px; }
  .kh-hero__cap-title { font-size: 1.1rem; }
  .kh-hero__scroll { display: none; }
}
@media (max-height: 640px) and (min-width: 768px) {
  .kh-hero__scroll { display: none; }
}

/* ---------------------------------------------------------------------
   О КОМПАНИИ
   --------------------------------------------------------------------- */
.kh-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.kh-about__text { font-size: clamp(1rem, .96rem + .2vw, 1.1rem); line-height: 1.8; }
.kh-about__first::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 4.4em;
  line-height: .8;
  color: var(--gold-300);
  text-shadow: 0 0 24px rgba(221, 176, 74, .35);
}
.kh-about__aside {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  perspective: 1400px;
}
.kh-about__visual {
  position: relative;
  aspect-ratio: 5 / 6;
  transform-style: preserve-3d;
}
.kh-about__halo {
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(18, 148, 102, .35), transparent);
  filter: blur(10px);
}
.kh-about__outline {
  position: absolute;
  left: 18%; top: 10%; width: 62%; height: 80%;
  border: 1px solid rgba(221, 176, 74, .35);
}
.kh-about__ph {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-1));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-3);
}
.kh-about__ph::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(239, 205, 115, .35);
  pointer-events: none;
}
.kh-about__ph img { width: 100%; height: 100%; object-fit: cover; }
.kh-about__ph.is-missing img { visibility: hidden; }
.kh-about__ph.is-missing { background: radial-gradient(70% 60% at 50% 40%, rgba(18, 148, 102, .25), transparent), linear-gradient(160deg, #0f2a20, #04120c); }
.kh-about__ph--main { left: 14%; top: 4%; width: 60%; aspect-ratio: 3 / 4; }
.kh-about__ph--low { left: 0; bottom: 3%; width: 54%; aspect-ratio: 4 / 3; }
.kh-about__ph--top { right: 0; top: 0; width: 36%; aspect-ratio: 3 / 4; }
.kh-about__medal {
  position: absolute;
  right: 6%; bottom: 10%;
  width: clamp(92px, 9vw, 128px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 4px;
  background: var(--grad-gold);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8), 0 0 30px rgba(221, 176, 74, .3);
}
.kh-about__medal-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #0f6e4d, #04231a 75%);
  border: 1px solid rgba(255, 243, 207, .5);
  color: var(--gold-200);
  text-align: center;
  line-height: 1;
}
.kh-about__medal-top, .kh-about__medal-bottom { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; }
.kh-about__medal-year { margin: .25em 0; font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.25rem, 1.8vw, 1.7rem); color: var(--gold-100); }

.kh-about__divider { margin-block: clamp(56px, 8vw, 110px); }

.kh-about__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
  padding: 0;
  list-style: none;
  perspective: 1200px;
}
.kh-about__stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(26px, 3vw, 42px) 18px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(221, 176, 74, .1), transparent 70%),
    linear-gradient(160deg, rgba(15, 42, 32, .75), rgba(5, 16, 12, .85));
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 243, 207, .06);
}
.kh-about__stat::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(221, 176, 74, .12);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}
.kh-about__num {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(3rem, 2rem + 3vw, 5rem);
  line-height: 1;
}
.kh-about__num--word { font-family: var(--ff-display); font-size: clamp(2.4rem, 1.6rem + 2.4vw, 4rem); letter-spacing: .06em; }
.kh-about__label { max-width: 220px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.45; }

.kh-about__what-head { text-align: center; margin-bottom: clamp(32px, 5vw, 60px); }
.kh-about__what-title { margin-top: 1rem; }
.kh-about__features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 26px);
  padding: 0;
  list-style: none;
  perspective: 1200px;
}
.kh-about__feature { display: flex; }
.kh-about__card {
  position: relative;
  flex: 1;
  padding: clamp(26px, 2.4vw, 36px) clamp(22px, 2vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(15, 42, 32, .8), rgba(5, 16, 12, .9));
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: border-color .4s, box-shadow .4s;
}
.kh-about__card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--grad-gold-line);
  opacity: .6;
}
.kh-about__card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2), 0 0 40px -12px rgba(221, 176, 74, .35); }
.kh-about__ico {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: var(--gold-200);
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 35% 30%, rgba(18, 148, 102, .5), rgba(4, 35, 26, .9));
  box-shadow: 0 0 24px -6px rgba(31, 191, 133, .5);
}
.kh-about__ico .kh-icon { width: 26px; height: 26px; }
.kh-about__card-title { font-family: var(--ff-head); font-weight: 600; font-size: 1.6rem; line-height: 1.15; color: var(--gold-100); margin-bottom: 10px; }
.kh-about__card-text { font-size: .95rem; line-height: 1.65; color: var(--text-2); }

@media (max-width: 1023px) {
  .kh-about__grid { grid-template-columns: 1fr; }
  .kh-about__aside { position: relative; top: 0; max-width: 560px; width: 100%; margin-inline: auto; }
  .kh-about__stats, .kh-about__features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .kh-about__features { grid-template-columns: 1fr; }
  .kh-about__stat { padding: 22px 10px; }
  .kh-about__label { font-size: .8rem; }
}

/* ---------------------------------------------------------------------
   ТРОФЕЙНАЯ ДИЧЬ
   --------------------------------------------------------------------- */
.kh-trophy__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 34px);
  perspective: 1700px;
  perspective-origin: 50% 40%;
}
.kh-tcard { position: relative; min-width: 0; }
.kh-tcard__turn, .kh-tcard__tilt { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
/* Мышь ловит только кнопка .kh-tcard__open. Иначе при наклоне часть карточки под
   курсором уходит в глубину за плоскость .kh-tcard__turn (общий 3D-контекст), и Safari
   и Chrome отдают наведение и щелчок самому слою поворота — фото не открываются */
.kh-tcard__turn { pointer-events: none; }
.kh-tcard__tilt {
  aspect-ratio: 3 / 4.25;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, #0f2a20, #04120c);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  isolation: isolate;
}
.kh-tcard__tilt::before {
  content: '';
  position: absolute;
  inset: 8px;
  z-index: 3;
  border: 1px solid rgba(239, 205, 115, .32);
  border-radius: calc(var(--radius) - 5px);
  pointer-events: none;
}
.kh-tcard__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.kh-tcard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.72) saturate(.85);
  transform: scale(1.06);
  transition: transform 1.4s var(--ease-out), filter .8s var(--ease-out);
}
.kh-tcard__media.is-missing img { visibility: hidden; }
.kh-tcard__media.is-missing { background: radial-gradient(70% 50% at 50% 30%, rgba(18, 148, 102, .3), transparent), linear-gradient(160deg, #0f2a20, #04120c); }
.kh-tcard__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 10, 7, .35) 0%, rgba(3, 10, 7, 0) 25%, rgba(3, 10, 7, .55) 50%, rgba(3, 10, 7, .96) 82%);
}
.kh-tcard:hover .kh-tcard__media img, .kh-tcard:focus-within .kh-tcard__media img { transform: scale(1.12); filter: brightness(.85) saturate(1); }
.kh-tcard__top {
  position: absolute;
  left: 22px; right: 22px; top: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kh-tcard__emblem {
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 35% 30%, rgba(18, 148, 102, .55), rgba(3, 14, 10, .9));
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .8), 0 0 24px -6px rgba(221, 176, 74, .4);
  transform: translateZ(40px);
}
.kh-tcard__emblem img { width: 42px; height: 42px; object-fit: contain; }
.kh-tcard__emblem .kh-icon { width: 28px; height: 28px; color: var(--gold-300); }
.kh-tcard__num { font-family: var(--ff-display); font-size: 1.7rem; font-weight: 700; line-height: 1; letter-spacing: .08em; color: var(--gold-300); opacity: .8; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.kh-tcard__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(22px, 2.2vw, 34px);
  transform: translateZ(30px);
}
.kh-tcard__name {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.9rem);
  line-height: 1.02;
  background: var(--grad-gold);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.kh-tcard__latin { margin-top: 4px; font-family: var(--ff-head); font-style: italic; font-size: 1.1rem; color: var(--text-3); }
.kh-tcard__short { margin-top: 12px; font-size: .95rem; line-height: 1.6; color: var(--text); }
.kh-tcard__season { display: flex; align-items: center; gap: .5em; margin-top: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.kh-tcard__season .kh-icon { width: 16px; height: 16px; }
.kh-tcard__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding: 0; list-style: none; }
.kh-tcard__chips .kh-chip { padding: .4em .9em; font-size: .75rem; }
/* В трёхколоночном ряду последняя метка косули идёт на вторую строку. */
.kh-tcard[data-key="roe"] .kh-tcard__chips { max-width: 20rem; }
.kh-tcard__open {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: var(--radius);
  cursor: pointer;
  pointer-events: auto;
}
.kh-tcard__open:focus-visible { outline: 2px solid var(--gold-300); outline-offset: -6px; }
.kh-tcard__glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 243, 207, .18), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
}
.kh-tcard:hover .kh-tcard__glare { opacity: 1; }

@media (max-width: 1023px) {
  .kh-trophy__cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .kh-tcard__tilt { aspect-ratio: auto; min-height: 520px; }
  .kh-tcard[data-key="roe"] .kh-tcard__chips { max-width: none; }
}
@media (max-width: 767px) {
  .kh-tcard__tilt { min-height: 500px; }
}

/* ---------------------------------------------------------------------
   ДИПЛОМ CIC
   --------------------------------------------------------------------- */
.kh-diploma__divider { margin-bottom: clamp(48px, 7vw, 96px); }
.kh-diploma__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 5.5vw, 96px);
  align-items: center;
}
.kh-diploma__visual { perspective: 1600px; perspective-origin: 60% 40%; }
.kh-diploma__turn, .kh-diploma__tilt { transform-style: preserve-3d; }
/* Мышь ловит только слой поворота .kh-diploma__turn: за мышью он не наклоняется
   (наклон — у вложенного .kh-diploma__tilt), поэтому наведение и щелчок срабатывают
   при любом угле рамки. Иначе часть рамки под курсором при наклоне уходит в глубину
   за плоскость этого слоя (общий 3D-контекст), и Safari и Chrome отдают наведение
   и щелчок самому слою — диплом не открывается. Клавиатура — через кнопку-рамку */
.kh-diploma__turn { cursor: zoom-in; }
.kh-diploma__tilt { pointer-events: none; }
.kh-diploma__frame {
  position: relative;
  display: block;
  width: 100%;
  padding: clamp(10px, 1.1vw, 16px);
  border-radius: 4px;
  background: linear-gradient(135deg, #f6dd94 0%, #b8862a 22%, #fbe7a6 45%, #8c6420 70%, #e9c766 100%);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(221, 176, 74, .45), inset 0 1px 0 rgba(255, 255, 255, .5);
  cursor: zoom-in;
  overflow: hidden;
}
.kh-diploma__mat {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  padding: 5.5% 6%;
  background:
    radial-gradient(80% 70% at 50% 40%, rgba(18, 148, 102, .35), transparent 75%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 5px),
    linear-gradient(160deg, #0a553d 0%, #063a2a 45%, #02110b 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 243, 207, .45), inset 0 0 0 7px rgba(4, 35, 26, .9), inset 0 0 0 8px rgba(221, 176, 74, .45), inset 0 20px 60px rgba(0, 0, 0, .55);
}
.kh-diploma__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .65));
}
.kh-diploma__mat.is-missing .kh-diploma__img { visibility: hidden; }
.kh-diploma__corner {
  position: absolute;
  width: clamp(34px, 4.4vw, 64px);
  height: clamp(34px, 4.4vw, 64px);
  background: url('../../media/ornaments/corner.svg') center / contain no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6));
}
.kh-diploma__corner--tl { left: 16px; top: 16px; }
.kh-diploma__corner--tr { right: 16px; top: 16px; transform: scaleX(-1); }
.kh-diploma__corner--bl { left: 16px; bottom: 16px; transform: scaleY(-1); }
.kh-diploma__corner--br { right: 16px; bottom: 16px; transform: scale(-1, -1); }
.kh-diploma__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 250, 235, .2) 47%, rgba(255, 255, 255, .05) 52%, transparent 62%);
  transform: translateX(-110%);
  animation: kh-diploma-sheen 7s var(--ease-in-out) 1.5s infinite;
}
@keyframes kh-diploma-sheen { 0% { transform: translateX(-110%); } 35%, 100% { transform: translateX(110%); } }
.kh-diploma__zoom {
  position: absolute;
  right: 26px; bottom: 26px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-100);
  background: rgba(3, 10, 7, .7);
  border: 1px solid var(--line-strong);
  opacity: 0;
  transform: scale(.8);
  transition: opacity .4s, transform .4s var(--ease-out);
}
.kh-diploma__turn:hover .kh-diploma__zoom, .kh-diploma__frame:focus-visible .kh-diploma__zoom { opacity: 1; transform: scale(1); }
.kh-diploma__caption { margin-top: 18px; text-align: center; font-family: var(--ff-head); font-style: italic; font-size: 1.1rem; color: var(--text-3); }

.kh-diploma__record { position: relative; }
.kh-diploma__roundel {
  position: absolute;
  right: 0; top: -6px;
  width: clamp(70px, 7vw, 96px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding: 3px;
  background: var(--grad-gold);
  box-shadow: 0 0 30px -6px rgba(221, 176, 74, .55);
}
.kh-diploma__roundel::before {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px dashed rgba(239, 205, 115, .5);
  animation: kh-diploma-spin 30s linear infinite;
}
@keyframes kh-diploma-spin { to { transform: rotate(360deg); } }
.kh-diploma__roundel span {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #0f6e4d, #04231a 75%);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  letter-spacing: .06em;
  color: var(--gold-200);
}
.kh-diploma__record > .kh-eyebrow { max-width: calc(100% - clamp(84px, 8.5vw, 116px)); flex-wrap: wrap; row-gap: .4em; }
.kh-diploma__title { margin-top: 18px; padding-right: clamp(80px, 8vw, 110px); color: var(--gold-100); }
.kh-diploma__text { margin-top: 26px; font-size: 1rem; line-height: 1.78; }
.kh-diploma__text p:first-child::first-letter { font-family: var(--ff-head); font-size: 1.6em; color: var(--gold-300); }
.kh-diploma__meta {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--text-3);
}
.kh-diploma__meta p { display: flex; align-items: center; gap: .6em; min-width: 0; }
.kh-diploma__ico { display: inline-flex; color: var(--gold-400); }
.kh-diploma__link { color: var(--gold-300); border-bottom: 1px solid rgba(239, 205, 115, .35); overflow-wrap: anywhere; transition: border-color .3s, color .3s; }
.kh-diploma__link:hover { color: var(--gold-100); border-color: var(--gold-200); }

@media (max-width: 1023px) {
  .kh-diploma__grid { grid-template-columns: 1fr; }
  .kh-diploma__visual { max-width: 680px; width: 100%; margin-inline: auto; }
}
@media (max-width: 520px) {
  .kh-diploma__corner { display: none; }
  .kh-diploma__mat { padding: 4%; }
}
