/* ============================================
   xk-article.css — общие переиспользуемые блоки статей-обзоров (xa-)
   Адаптировано из owner-шаблона tournaments 2026-05-28.
   Блоки: hero+art, section-panel, format-cards, steps, rewards, rating,
   faq, sidebar (nav+filter+related), related-cards, databar.
   Используется на: /knowledge/encyclopedia/tournaments (далее — achievements, alliances).
   ============================================ */
/* ============================================
   TOURNAMENTS — Encyclopedia article page
   ============================================ */

/* ─── HERO ─── */
.xa-hero { position: relative; z-index: 1; padding: 40px 0 36px; overflow: hidden; }
.xa-hero-bg { position: absolute; inset: 0; z-index: 0; background: #0a0e16; }
.xa-hero-bg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.xa-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--xh-bg-deep) 0%, rgba(6,10,20,.86) 42%, rgba(6,10,20,.45) 70%, rgba(6,10,20,.7) 100%),
              linear-gradient(180deg, rgba(6,10,20,.4) 0%, rgba(6,10,20,.2) 50%, var(--xh-bg-deep) 100%);
}
.xa-hero-inner { position: relative; z-index: 1; max-width: var(--xh-max-w); margin: 0 auto; padding: 0 32px; }
.xa-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.xa-hero-title {
  font-family: var(--xh-font-display); font-size: clamp(34px, 5vw, 56px);
  text-transform: none; letter-spacing: .5px; color: #fff; line-height: 1.02; margin-bottom: 18px;
}
.xa-hero-desc { font-size: 16px; color: var(--xh-text-secondary); line-height: 1.6; max-width: 480px; margin-bottom: 26px; }

/* hero tabs */
.xa-tabs { display: flex; gap: 12px; flex-wrap: wrap; }
.xa-tab {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--xh-font-heading); font-size: 14px; font-weight: 600;
  color: var(--xh-text-secondary); padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--xh-border-light); background: rgba(12,19,34,.6);
  backdrop-filter: blur(6px); transition: all var(--xh-transition); letter-spacing: .2px;
}
.xa-tab svg { width: 16px; height: 16px; color: var(--xh-orange); flex-shrink: 0; }
.xa-tab:hover { border-color: var(--xh-orange); color: var(--xh-text); background: rgba(232,132,30,.08); }

/* hero trophy art */
.xa-hero-art { position: relative; aspect-ratio: 5/4; display: flex; align-items: center; justify-content: center; }
.xa-hero-art::before {
  content: ''; position: absolute; width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,132,30,.32) 0%, rgba(42,125,225,.16) 45%, transparent 72%);
  filter: blur(6px);
}
.xa-trophy { position: relative; width: 200px; height: 200px; color: var(--xh-orange); filter: drop-shadow(0 0 28px rgba(232,132,30,.45)); }
.xa-trophy svg { width: 100%; height: 100%; }
.xa-hero-art-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* ─── LAYOUT ─── */
.xa-layout { position: relative; z-index: 1; padding: 8px 0 56px; }
.xa-layout-inner {
  max-width: var(--xh-max-w); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start;
}
.xa-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* intro callout */
.xa-intro {
  display: flex; align-items: center; gap: 22px;
  padding: 24px 28px; border-radius: var(--xh-radius-lg);
  border: 1px solid rgba(232,132,30,.22); border-left: 3px solid var(--xh-orange);
  background: linear-gradient(135deg, rgba(232,132,30,.08) 0%, rgba(232,132,30,.02) 60%);
}
.xa-intro-badge {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--xh-radius);
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,132,30,.1); border: 1px solid rgba(232,132,30,.3);
}
.xa-intro-badge svg { width: 32px; height: 32px; color: var(--xh-orange); }
.xa-intro p { font-size: 15px; color: var(--xh-text-secondary); line-height: 1.6; margin: 0; }
.xa-intro p strong { color: var(--xh-text); font-weight: 600; }

/* generic section panel */
.xa-section { background: var(--xh-bg-card); border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg); padding: 28px 30px; }
.xa-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.xa-section-icon {
  width: 36px; height: 36px; border-radius: var(--xh-radius); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,132,30,.1); border: 1px solid rgba(232,132,30,.28);
}
.xa-section-icon svg { width: 19px; height: 19px; color: var(--xh-orange); }
.xa-section-title { font-family: var(--xh-font-heading); font-size: 22px; font-weight: 700; color: #fff; letter-spacing: .4px; }
.xa-section-sub { font-size: 14px; color: var(--xh-text-secondary); line-height: 1.55; margin: 0 0 22px; }

/* ─── FORMAT CARDS ─── */
.xa-formats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.xa-fcard {
  display: flex; flex-direction: column;
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg);
  background: rgba(12,19,34,.5); overflow: hidden; transition: all var(--xh-transition); cursor: pointer;
}
.xa-fcard:hover { transform: translateY(-4px); border-color: var(--xa-acc); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.xa-fcard-art {
  position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--xa-acc) 26%, transparent) 0%, transparent 62%),
    linear-gradient(160deg, color-mix(in srgb, var(--xa-acc) 10%, #0a1322) 0%, #080d18 100%);
  border-bottom: 1px solid var(--xh-border);
  overflow: hidden;
}
.xa-fcard-art::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(color-mix(in srgb, var(--xa-acc) 30%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--xa-acc) 30%, transparent) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: radial-gradient(circle at 50% 45%, #000 10%, transparent 70%);
}
.xa-fcard-icon { position: relative; width: 56px; height: 56px; color: var(--xa-acc); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--xa-acc) 60%, transparent)); }
.xa-fcard-icon svg { width: 100%; height: 100%; }
.xa-fcard-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.xa-fcard-name { font-family: var(--xh-font-heading); font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; }
.xa-fcard-desc { font-size: 12.5px; color: var(--xh-text-secondary); line-height: 1.5; flex: 1; }
.xa-fcard-badge {
  align-self: flex-start; font-family: var(--xh-font-heading); font-size: 11px; font-weight: 700;
  letter-spacing: .3px; padding: 4px 10px; border-radius: 999px; margin-top: 2px;
  color: var(--xa-acc); background: color-mix(in srgb, var(--xa-acc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--xa-acc) 30%, transparent);
}
.xa-f--orange { --xa-acc: var(--xh-orange); }
.xa-f--blue   { --xa-acc: var(--xh-blue-light); }
.xa-f--green  { --xa-acc: var(--xh-green); }
.xa-f--gold   { --xa-acc: #d8b13a; }
.xa-f--purple { --xa-acc: #9a6ff0; }

/* ─── PARTICIPATION STEPS ─── */
.xa-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; align-items: stretch; }
.xa-step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; border: 1px solid var(--xh-border); border-radius: var(--xh-radius); background: rgba(255,255,255,.015); }
.xa-step + .xa-step { margin-left: 14px; }
.xa-step + .xa-step::before {
  content: ''; position: absolute; left: -14px; top: 50%; width: 14px; height: 1px;
  background: var(--xh-border-light);
}
.xa-step + .xa-step::after {
  content: ''; position: absolute; left: -7px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-top: 1px solid var(--xh-orange); border-right: 1px solid var(--xh-orange);
  rotate: 45deg;
}
.xa-step-num {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--xh-font-heading); font-size: 14px; font-weight: 700; color: var(--xh-orange);
  background: rgba(232,132,30,.1); border: 1px solid rgba(232,132,30,.32);
}
.xa-step-name { font-family: var(--xh-font-heading); font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; }
.xa-step-desc { font-size: 12.5px; color: var(--xh-text-secondary); line-height: 1.5; }

/* ─── REWARDS ─── */
.xa-rewards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.xa-reward {
  display: flex; align-items: center; gap: 11px; padding: 12px 13px;
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius);
  background: rgba(255,255,255,.015); transition: all var(--xh-transition);
}
.xa-reward:hover { border-color: var(--xh-border-light); background: rgba(255,255,255,.035); }
.xa-reward-icon { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(42,125,225,.08); border: 1px solid rgba(42,125,225,.25); }
.xa-reward-icon svg { width: 16px; height: 16px; color: var(--xh-blue-light); }
.xa-reward span { font-family: var(--xh-font-heading); font-size: 12px; font-weight: 600; color: var(--xh-text-secondary); line-height: 1.25; }

/* ─── RATING LOGIC ─── */
.xa-rating { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.xa-rating-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--xh-border); border-radius: var(--xh-radius); background: rgba(255,255,255,.015); }
.xa-rating-icon { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(232,132,30,.08); border: 1px solid rgba(232,132,30,.24); }
.xa-rating-icon svg { width: 16px; height: 16px; color: var(--xh-orange); }
.xa-rating-card p { font-size: 12.5px; color: var(--xh-text-secondary); line-height: 1.5; margin: 2px 0 0; }

/* ─── FAQ (chevron variant) ─── */
.xa-faq-list { display: flex; flex-direction: column; gap: 8px; }
.xa-faq-list .xh-faq-item { border-radius: var(--xh-radius); }
.xa-faq-list .xh-faq-q { font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.xa-faq-list .xh-faq-q::-webkit-details-marker { display: none; }
.xa-faq-list .xh-faq-q::after { content: none !important; }
.xa-faq-list .xh-faq-q svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--xh-text-muted); transition: transform var(--xh-transition); }
.xa-faq-list .xh-faq-item[open] .xh-faq-q svg,
.xa-faq-list .xh-faq-item.is-open .xh-faq-q svg { transform: rotate(180deg); }
/* Хлебные крошки на статьях: ссылки приглушены, текущий раздел выделен (owner 2026-05-30) */
.xh-breadcrumbs a { color: var(--xh-text-mute, #9aa6b6); text-decoration: none; transition: color .15s; }
.xh-breadcrumbs a:hover { color: var(--xh-text, #e8eef7); }
.xh-breadcrumbs > span { color: var(--xh-text-mute, #9aa6b6); opacity: .55; }
.xh-breadcrumbs [aria-current="page"] { color: var(--xh-text, #e8eef7); font-weight: 600; opacity: 1; }

/* ─── SIDEBAR ─── */
.xa-sidebar { position: sticky; top: calc(var(--xh-header-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.xa-side-card { background: var(--xh-bg-card); border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg); padding: 20px; }
.xa-side-title { font-family: var(--xh-font-heading); font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .4px; margin-bottom: 14px; }

/* sidebar nav (scrollspy) */
.xa-nav { display: flex; flex-direction: column; gap: 1px; }
.xa-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: var(--xh-radius);
  font-family: var(--xh-font-heading); font-size: 14px; font-weight: 600;
  color: var(--xh-text-secondary); letter-spacing: .2px; transition: all var(--xh-transition);
}
.xa-nav a:hover { color: var(--xh-text); background: rgba(255,255,255,.03); }
.xa-nav a.is-active { color: var(--xh-orange); background: rgba(232,132,30,.08); }
.xa-nav a .xa-nav-chev { width: 14px; height: 14px; opacity: 0; transform: rotate(180deg); transition: opacity var(--xh-transition); }
.xa-nav a.is-active .xa-nav-chev { opacity: 1; }

/* filter radios */
.xa-filter { display: flex; flex-direction: column; gap: 2px; }
.xa-radio {
  display: flex; align-items: center; gap: 10px; padding: 7px 4px;
  font-family: var(--xh-font-heading); font-size: 14px; font-weight: 600;
  color: var(--xh-text-secondary); cursor: pointer; transition: color var(--xh-transition); width: 100%; text-align: left;
}
.xa-radio:hover { color: var(--xh-text); }
.xa-radio-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--xh-text-muted); flex-shrink: 0; position: relative; transition: all var(--xh-transition); }
.xa-radio.is-active { color: var(--xh-text); }
.xa-radio.is-active .xa-radio-dot { border-color: var(--xh-orange); }
.xa-radio.is-active .xa-radio-dot::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--xh-orange); }

/* related list */
.xa-rel-list { display: flex; flex-direction: column; gap: 1px; }
.xa-rel-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 4px; border-bottom: 1px solid var(--xh-border);
  font-family: var(--xh-font-heading); font-size: 14px; font-weight: 600;
  color: var(--xh-text-secondary); transition: all var(--xh-transition);
}
.xa-rel-list a:last-child { border-bottom: none; }
.xa-rel-list a:hover { color: var(--xh-orange); padding-left: 8px; }
.xa-rel-list a svg { width: 15px; height: 15px; color: var(--xh-text-muted); flex-shrink: 0; }

/* ─── RELATED SECTION CARDS (bottom) ─── */
.xa-related { position: relative; z-index: 1; padding: 0 0 56px; }
.xa-related-inner { max-width: var(--xh-max-w); margin: 0 auto; padding: 0 32px; }
.xa-related-title { font-family: var(--xh-font-heading); font-size: 16px; font-weight: 700; color: var(--xh-text); letter-spacing: .4px; margin-bottom: 16px; }
.xa-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.xa-rcard {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg);
  background: var(--xh-bg-card); transition: all var(--xh-transition);
}
.xa-rcard:hover { transform: translateY(-3px); border-color: var(--xa-acc); }
.xa-rcard-art {
  width: 56px; height: 56px; border-radius: var(--xh-radius); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--xa-acc) 24%, transparent) 0%, transparent 70%), #0a1322;
  border: 1px solid color-mix(in srgb, var(--xa-acc) 26%, transparent);
}
.xa-rcard-art svg { width: 28px; height: 28px; color: var(--xa-acc); }
.xa-rcard-name { font-family: var(--xh-font-heading); font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.xa-rcard-desc { font-size: 12.5px; color: var(--xh-text-secondary); line-height: 1.45; }
.xa-r--red { --xa-acc: var(--xh-woa-red); }
.xa-r--teal { --xa-acc: var(--xh-teal); }
.xa-r--orange { --xa-acc: var(--xh-orange); }
.xa-r--blue { --xa-acc: var(--xh-blue-light); }
.xa-r--purple { --xa-acc: var(--xh-purple); }

/* ─── FOOTER EXT ─── */
.xa-footer-desc { font-size: 13px; color: var(--xh-text-muted); line-height: 1.55; margin: 12px 0 16px; max-width: 230px; }
.xa-databar {
  position: relative; z-index: 1; border-top: 1px solid var(--xh-border); padding: 14px 0; text-align: left;
}
.xa-databar-inner { max-width: var(--xh-max-w); margin: 0 auto; padding: 0 32px; font-family: var(--xh-font-heading); font-size: 12px; font-weight: 600; color: var(--xh-text-muted); letter-spacing: .3px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .xa-hero-grid { grid-template-columns: 1fr; }
  .xa-hero-art { display: none; }
  .xa-layout-inner { grid-template-columns: 1fr; }
  .xa-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .xa-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .xa-formats { grid-template-columns: repeat(3, 1fr); }
  .xa-steps { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .xa-step + .xa-step { margin-left: 0; }
  .xa-step + .xa-step::before, .xa-step + .xa-step::after { display: none; }
  .xa-rewards { grid-template-columns: repeat(3, 1fr); }
  .xa-rating { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .xa-hero-inner, .xa-layout-inner, .xa-related-inner, .xa-databar-inner { padding-left: 20px; padding-right: 20px; }
  .xa-section { padding: 22px 20px; }
  .xa-section-title { font-size: 19px; }
  .xa-formats { grid-template-columns: repeat(2, 1fr); }
  .xa-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .xa-hero-inner, .xa-layout-inner, .xa-related-inner, .xa-databar-inner { padding-left: 16px; padding-right: 16px; }
  .xa-formats { grid-template-columns: 1fr 1fr; }
  .xa-steps, .xa-rewards { grid-template-columns: 1fr 1fr; }
  .xa-rating { grid-template-columns: 1fr; }
  .xa-related-grid { grid-template-columns: 1fr; }
  .xa-intro { flex-direction: column; align-items: flex-start; gap: 14px; }
}


/* ===== achievements (owner-шаблон, адаптировано 2026-05-28) ===== */
/* ============================================
   ACHIEVEMENTS — Encyclopedia article page
   ============================================ */

/* ─── HERO ─── */
.ach-hero { position: relative; z-index: 1; padding: 36px 0 30px; overflow: hidden; }
.ach-hero-bg { position: absolute; inset: 0; z-index: 0; background: url('/media/v2/img/heroes/achievements.webp') center 30% / cover no-repeat; }
.ach-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--xh-bg-deep) 0%, rgba(6,10,20,.85) 40%, rgba(6,10,20,.4) 70%, rgba(6,10,20,.65) 100%),
    radial-gradient(ellipse at 78% 50%, rgba(232,132,30,.18) 0%, transparent 55%),
    linear-gradient(180deg, rgba(6,10,20,.4) 0%, rgba(6,10,20,.15) 60%, var(--xh-bg-deep) 100%);
}
.ach-hero-inner { position: relative; z-index: 1; max-width: var(--xh-max-w); margin: 0 auto; padding: 0 32px; }
.ach-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; }
.ach-hero-title {
  font-family: var(--xh-font-display); font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase; letter-spacing: 2px; color: #fff; line-height: 1.05; margin-bottom: 16px;
}
.ach-hero-desc { font-size: 15px; color: var(--xh-text-secondary); line-height: 1.6; max-width: 480px; margin-bottom: 22px; }

/* hero tabs */
.ach-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.ach-tab {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--xh-font-heading); font-size: 13px; font-weight: 600;
  color: var(--xh-text-secondary); padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--xh-border-light); background: rgba(12,19,34,.6);
  backdrop-filter: blur(6px); transition: all var(--xh-transition); letter-spacing: .2px;
}
.ach-tab svg { width: 14px; height: 14px; color: var(--xh-orange); flex-shrink: 0; }
.ach-tab:hover { border-color: var(--xh-orange); color: var(--xh-text); background: rgba(232,132,30,.08); }

/* hero art - trophy column */
.ach-hero-art { position: relative; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.ach-hero-art::before {
  content: ''; position: absolute; width: 60%; height: 60%; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,132,30,.4) 0%, rgba(232,132,30,.1) 50%, transparent 75%);
  filter: blur(8px);
}
.ach-medal { position: relative; width: 170px; height: 170px; color: var(--xh-orange); filter: drop-shadow(0 0 28px rgba(232,132,30,.55)); }
.ach-medal svg { width: 100%; height: 100%; }

/* ─── LAYOUT ─── */
.ach-layout { position: relative; z-index: 1; padding: 0 0 48px; }
.ach-layout-inner {
  max-width: var(--xh-max-w); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start;
}
.ach-main { min-width: 0; display: flex; flex-direction: column; gap: 36px; }

/* intro callout */
.ach-intro {
  padding: 26px 30px; border-radius: var(--xh-radius);
  border: 1px solid rgba(232,132,30,.22); border-left: 3px solid var(--xh-orange);
  background: rgba(232,132,30,.04);
  display: flex; flex-direction: column; gap: 14px;
}
.ach-intro p { font-size: 15px; color: var(--xh-text-secondary); line-height: 1.65; margin: 0; }

/* section heads — naked (no panel wrapper) */
.ach-sec { display: flex; flex-direction: column; gap: 18px; }
.ach-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ach-sec-titles { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ach-sec-title {
  font-family: var(--xh-font-heading); font-size: 18px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.6px; color: #fff;
}
.ach-sec-sub { font-size: 13.5px; color: var(--xh-text-secondary); line-height: 1.5; }
.ach-sec-link {
  font-family: var(--xh-font-heading); font-size: 13px; font-weight: 700;
  color: var(--xh-orange); display: inline-flex; align-items: center; gap: 4px;
  letter-spacing: .3px; text-transform: none; white-space: nowrap; padding-top: 2px;
}
.ach-sec-link:hover { color: var(--xh-orange-hover); }
.ach-sec-link svg { width: 14px; height: 14px; }

/* ─── CATEGORY CARDS (6) ─── */
.ach-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ach-ccard {
  display: flex; flex-direction: column;
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg);
  background: var(--xh-bg-card); overflow: hidden; transition: all var(--xh-transition); cursor: pointer;
}
.ach-ccard:hover { transform: translateY(-3px); border-color: var(--ach-acc); }
.ach-ccard-art {
  position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--ach-acc) 26%, transparent) 0%, transparent 65%),
    linear-gradient(160deg, color-mix(in srgb, var(--ach-acc) 9%, #0a1322) 0%, #080d18 100%);
  border-bottom: 1px solid var(--xh-border);
  overflow: hidden;
}
.ach-ccard-art::after {
  content: ''; position: absolute; inset: 0; opacity: .45;
  background-image:
    linear-gradient(color-mix(in srgb, var(--ach-acc) 30%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ach-acc) 30%, transparent) 1px, transparent 1px);
  background-size: 18px 18px; mask-image: radial-gradient(circle at 50% 45%, #000 8%, transparent 70%);
}
.ach-ccard-icon { position: relative; width: 52px; height: 52px; color: var(--ach-acc); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--ach-acc) 55%, transparent)); }
.ach-ccard-icon svg { width: 100%; height: 100%; }
.ach-ccard-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ach-ccard-name { font-family: var(--xh-font-heading); font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; }
.ach-ccard-desc { font-size: 12px; color: var(--xh-text-secondary); line-height: 1.5; flex: 1; }
.ach-ccard-count {
  align-self: flex-start; font-family: var(--xh-font-heading); font-size: 11px; font-weight: 700;
  letter-spacing: .3px; padding: 4px 10px; border-radius: 4px; margin-top: 4px;
  color: var(--xh-text-secondary); background: rgba(255,255,255,.04); border: 1px solid var(--xh-border-light);
}

/* accent colors */
.ach-c--red    { --ach-acc: #d05050; }
.ach-c--gold   { --ach-acc: #d8a830; }
.ach-c--cyan   { --ach-acc: var(--xh-blue-light); }
.ach-c--teal   { --ach-acc: var(--xh-teal); }
.ach-c--purple { --ach-acc: #b070d8; }
.ach-c--orange { --ach-acc: var(--xh-orange); }

/* ─── RARE ACHIEVEMENT CARDS ─── */
.ach-rare { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ach-rcard {
  display: flex; flex-direction: column;
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg);
  background: var(--xh-bg-card); overflow: hidden; transition: all var(--xh-transition); cursor: pointer;
}
.ach-rcard:hover { transform: translateY(-3px); border-color: var(--ach-acc); box-shadow: 0 12px 32px rgba(0,0,0,.4); }
.ach-rcard-art {
  position: relative; aspect-ratio: 1/1.05; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--ach-acc) 30%, transparent) 0%, transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--ach-acc) 10%, #0a1322) 0%, #080d18 100%);
  border-bottom: 1px solid var(--xh-border);
  overflow: hidden;
}
.ach-rcard-art::after {
  content: ''; position: absolute; inset: 0; opacity: .55;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--ach-acc) 22%, transparent), transparent 65%),
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--ach-acc) 8%, transparent) 0 2px, transparent 2px 8px);
  mask-image: radial-gradient(circle at 50% 50%, #000 18%, transparent 80%);
}
.ach-rcard-icon { position: relative; width: 60px; height: 60px; color: var(--ach-acc); filter: drop-shadow(0 0 16px color-mix(in srgb, var(--ach-acc) 60%, transparent)); }
.ach-rcard-icon svg { width: 100%; height: 100%; }
.ach-rcard-body { padding: 14px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.ach-rcard-name { font-family: var(--xh-font-heading); font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; }
.ach-rcard-desc { font-size: 11.5px; color: var(--xh-text-secondary); line-height: 1.45; flex: 1; }
.ach-badge {
  align-self: flex-start; font-family: var(--xh-font-heading); font-size: 11px; font-weight: 700;
  letter-spacing: .3px; padding: 3px 9px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 5px; margin-top: 2px;
}
.ach-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ach-badge--rare    { color: var(--xh-blue-light); background: rgba(74,157,245,.10); border: 1px solid rgba(74,157,245,.30); }
.ach-badge--unique  { color: var(--xh-orange); background: rgba(232,132,30,.10); border: 1px solid rgba(232,132,30,.30); }

/* ─── BATTLE / ECON CHIPS (4 per row, hex badge) ─── */
.ach-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ach-chip {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius);
  background: var(--xh-bg-card); transition: all var(--xh-transition);
}
.ach-chip:hover { border-color: var(--ach-acc); transform: translateY(-2px); }
.ach-hex {
  width: 40px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ach-acc) 14%, #0a1322);
  border: 1px solid color-mix(in srgb, var(--ach-acc) 40%, transparent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  color: var(--ach-acc);
}
.ach-hex svg { width: 18px; height: 18px; }
.ach-chip-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ach-chip-name { font-family: var(--xh-font-heading); font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; }
.ach-chip-desc { font-size: 12px; color: var(--xh-text-secondary); line-height: 1.5; }

.ach-acc--red  { --ach-acc: #d05050; }
.ach-acc--gold { --ach-acc: #d8a830; }
.ach-acc--orange { --ach-acc: var(--xh-orange); }

/* rewards row — circle badge variant */
.ach-rewards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ach-reward {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius);
  background: var(--xh-bg-card); transition: all var(--xh-transition);
}
.ach-reward:hover { border-color: rgba(232,132,30,.4); transform: translateY(-2px); }
.ach-reward-icon { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(232,132,30,.08); border: 1px solid rgba(232,132,30,.28); }
.ach-reward-icon svg { width: 18px; height: 18px; color: var(--xh-orange); }
.ach-reward-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ach-reward-name { font-family: var(--xh-font-heading); font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; }
.ach-reward-desc { font-size: 12px; color: var(--xh-text-secondary); line-height: 1.5; }

/* ─── FAQ (chevron variant, 2-col) ─── */
.ach-faq { display: flex; flex-direction: column; gap: 8px; max-width: 880px; }
.ach-faq .xh-faq-item { border-radius: var(--xh-radius); }
.ach-faq .xh-faq-q { font-size: 14px; padding: 14px 18px; }
.ach-faq .xh-faq-q svg { width: 16px; height: 16px; transition: transform var(--xh-transition); }
.ach-faq .xh-faq-item.is-open .xh-faq-q svg { transform: rotate(180deg); }
.ach-faq .xh-faq-a { padding: 0 18px 14px; font-size: 13px; }

/* ─── SIDEBAR ─── */
.ach-sidebar { position: sticky; top: calc(var(--xh-header-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.ach-side-card { background: var(--xh-bg-card); border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg); padding: 20px; }
.ach-side-title { font-family: var(--xh-font-heading); font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .4px; margin-bottom: 14px; }

.ach-nav { display: flex; flex-direction: column; gap: 1px; }
.ach-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: var(--xh-radius);
  font-family: var(--xh-font-heading); font-size: 13.5px; font-weight: 600;
  color: var(--xh-text-secondary); letter-spacing: .2px; transition: all var(--xh-transition);
}
.ach-nav a:hover { color: var(--xh-text); background: rgba(255,255,255,.03); }
.ach-nav a.is-active { color: var(--xh-orange); background: rgba(232,132,30,.08); }
.ach-nav a .ach-nav-chev { width: 13px; height: 13px; opacity: 0; transform: rotate(180deg); transition: opacity var(--xh-transition); }
.ach-nav a.is-active .ach-nav-chev { opacity: 1; }

.ach-filter { display: flex; flex-direction: column; gap: 2px; }
.ach-radio {
  display: flex; align-items: center; gap: 10px; padding: 7px 4px;
  font-family: var(--xh-font-heading); font-size: 13.5px; font-weight: 600;
  color: var(--xh-text-secondary); cursor: pointer; transition: color var(--xh-transition);
  width: 100%; text-align: left; justify-content: flex-start;
}
.ach-radio:hover { color: var(--xh-text); }
.ach-radio-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--xh-text-muted); flex-shrink: 0; position: relative; transition: all var(--xh-transition); }
.ach-radio.is-active { color: var(--xh-text); }
.ach-radio.is-active .ach-radio-dot { border-color: var(--xh-orange); }
.ach-radio.is-active .ach-radio-dot::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--xh-orange); }
.ach-radio-count {
  margin-left: auto; font-family: var(--xh-font-heading); font-size: 11px; font-weight: 700;
  color: var(--xh-text-muted); background: rgba(255,255,255,.04); border: 1px solid var(--xh-border);
  padding: 2px 8px; border-radius: 4px; letter-spacing: .3px;
}

/* ─── RELATED BOTTOM ─── */
.ach-related { position: relative; z-index: 1; padding: 0 0 48px; }
.ach-related-inner { max-width: var(--xh-max-w); margin: 0 auto; padding: 0 32px; }
.ach-related-wrap {
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg);
  background: var(--xh-bg-card); padding: 22px 24px;
}
.ach-related-title { font-family: var(--xh-font-heading); font-size: 14px; font-weight: 700; color: var(--xh-text); letter-spacing: .4px; margin-bottom: 16px; }
.ach-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ach-rl {
  display: flex; align-items: center; gap: 14px; padding: 0;
  border-radius: var(--xh-radius); transition: all var(--xh-transition);
}
.ach-rl-art {
  width: 78px; height: 60px; border-radius: var(--xh-radius); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--ach-acc) 28%, transparent) 0%, transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--ach-acc) 14%, #0a1322) 0%, #060c18 100%);
  border: 1px solid color-mix(in srgb, var(--ach-acc) 26%, transparent);
}
.ach-rl-art svg { width: 28px; height: 28px; color: var(--ach-acc); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--ach-acc) 50%, transparent)); }
.ach-rl-name { font-family: var(--xh-font-heading); font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.ach-rl-desc { font-size: 12px; color: var(--xh-text-secondary); line-height: 1.45; }
.ach-rl:hover .ach-rl-name { color: var(--ach-acc); }
.ach-rl-1 { --ach-acc: var(--xh-orange); }
.ach-rl-2 { --ach-acc: #d8a830; }
.ach-rl-3 { --ach-acc: var(--xh-blue-light); }
.ach-rl-4 { --ach-acc: var(--xh-woa-red); }

/* footer ext */
.ach-footer-desc { font-size: 13px; color: var(--xh-text-muted); line-height: 1.55; margin: 12px 0 16px; max-width: 230px; }
.ach-databar { position: relative; z-index: 1; border-top: 1px solid var(--xh-border); padding: 14px 0; text-align: left; }
.ach-databar-inner { max-width: var(--xh-max-w); margin: 0 auto; padding: 0 32px; font-family: var(--xh-font-heading); font-size: 12px; font-weight: 600; color: var(--xh-text-muted); letter-spacing: .3px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .ach-hero-grid { grid-template-columns: 1fr; }
  .ach-hero-art { display: none; }
  .ach-layout-inner { grid-template-columns: 1fr; }
  .ach-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .ach-cats { grid-template-columns: repeat(3, 1fr); }
  .ach-rare { grid-template-columns: repeat(3, 1fr); }
  .ach-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .ach-chips, .ach-rewards { grid-template-columns: repeat(2, 1fr); }
  .ach-faq { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ach-hero-inner, .ach-layout-inner, .ach-related-inner, .ach-databar-inner { padding-left: 20px; padding-right: 20px; }
  .ach-cats { grid-template-columns: repeat(2, 1fr); }
  .ach-rare { grid-template-columns: repeat(2, 1fr); }
  .ach-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ach-hero-inner, .ach-layout-inner, .ach-related-inner, .ach-databar-inner { padding-left: 16px; padding-right: 16px; }
  .ach-chips, .ach-rewards { grid-template-columns: 1fr; }
  .ach-related-grid { grid-template-columns: 1fr; }
}

/* ===== alliances (owner-шаблон, адаптировано 2026-05-28) ===== */
/* ============================================
   ALLIANCES — Encyclopedia article page
   ============================================ */

/* ─── HERO ─── */
.al-hero { position: relative; z-index: 1; padding: 32px 0 26px; overflow: hidden; }
.al-hero-bg { position: absolute; inset: 0; z-index: 0; background: url('/media/v2/img/galaxy-map-v2.webp') center 40% / cover no-repeat; }
.al-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--xh-bg-deep) 0%, rgba(6,10,20,.88) 38%, rgba(6,10,20,.35) 65%, rgba(6,10,20,.55) 100%),
    radial-gradient(ellipse at 78% 50%, rgba(42,125,225,.18) 0%, transparent 60%),
    linear-gradient(180deg, rgba(6,10,20,.3) 0%, rgba(6,10,20,.15) 60%, var(--xh-bg-deep) 100%);
}
.al-hero-inner { position: relative; z-index: 1; max-width: var(--xh-max-w); margin: 0 auto; padding: 0 32px; }
.al-hero-title {
  font-family: var(--xh-font-display); font-size: clamp(30px, 4.4vw, 48px);
  color: #fff; line-height: 1.05; margin-bottom: 14px; letter-spacing: .5px;
}
.al-hero-desc { font-size: 15px; color: var(--xh-text-secondary); line-height: 1.6; max-width: 460px; margin-bottom: 22px; }

/* hero feature pills */
.al-features { display: flex; gap: 10px; flex-wrap: wrap; }
.al-feat {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 14px 12px; border-radius: var(--xh-radius);
  border: 1px solid var(--xh-border-light); background: rgba(12,19,34,.7);
  backdrop-filter: blur(6px); min-width: 100px; text-align: center;
}
.al-feat-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.al-feat-icon svg { width: 18px; height: 18px; }
.al-feat-icon--red    { background: rgba(208,80,32,.10); border: 1px solid rgba(208,80,32,.30); color: var(--xh-woa-red); }
.al-feat-icon--blue   { background: rgba(74,157,245,.10); border: 1px solid rgba(74,157,245,.30); color: var(--xh-blue-light); }
.al-feat-icon--green  { background: rgba(32,168,104,.10); border: 1px solid rgba(32,168,104,.30); color: var(--xh-green); }
.al-feat-icon--purple { background: rgba(176,112,216,.10); border: 1px solid rgba(176,112,216,.30); color: #b070d8; }
.al-feat-name { font-family: var(--xh-font-heading); font-size: 12.5px; font-weight: 700; color: var(--xh-text); line-height: 1.2; letter-spacing: .2px; }

/* ─── LAYOUT ─── */
.al-layout { position: relative; z-index: 1; padding: 24px 0 32px; }
.al-layout-inner {
  max-width: var(--xh-max-w); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start;
}
.al-main { min-width: 0; display: flex; flex-direction: column; gap: 28px; }

/* intro */
.al-intro {
  padding: 22px 28px; border-radius: var(--xh-radius);
  border: 1px solid rgba(232,132,30,.22); border-left: 3px solid var(--xh-orange);
  background: rgba(232,132,30,.04);
}
.al-intro p { font-size: 14.5px; color: var(--xh-text-secondary); line-height: 1.65; margin: 0; }

/* section heads with orange bar */
.al-sec { display: flex; flex-direction: column; gap: 16px; }
.al-sec-head { display: flex; flex-direction: column; gap: 6px; }
.al-sec-title {
  position: relative; padding-left: 18px;
  font-family: var(--xh-font-heading); font-size: 22px; font-weight: 700; color: #fff; letter-spacing: .3px;
}
.al-sec-title::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--xh-orange); }
.al-sec-sub { font-size: 13.5px; color: var(--xh-text-secondary); line-height: 1.55; padding-left: 18px; }

/* ─── ЧТО ТАКОЕ АЛЬЯНС — 5 art tiles ─── */
.al-feat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.al-fcard {
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--xh-transition);
}
.al-fcard:hover { transform: translateY(-3px); }
.al-fcard-art {
  aspect-ratio: 1/1; border-radius: var(--xh-radius-lg);
  border: 1px solid var(--xh-border); overflow: hidden;
  position: relative; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(74,157,245,.28) 0%, transparent 60%),
    linear-gradient(160deg, #0d1830 0%, #060c18 100%);
}
.al-fcard-art::after {
  content: ''; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(74,157,245,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(74,157,245,.25) 1px, transparent 1px);
  background-size: 16px 16px; mask-image: radial-gradient(circle at 50% 45%, #000 8%, transparent 70%);
}
.al-fcard-icon { position: relative; width: 46px; height: 46px; color: var(--xh-blue-light); filter: drop-shadow(0 0 12px rgba(74,157,245,.55)); }
.al-fcard-icon svg { width: 100%; height: 100%; }
.al-fcard-art.is-warm { background: radial-gradient(circle at 50% 45%, rgba(232,132,30,.28) 0%, transparent 60%), linear-gradient(160deg, #1f1208 0%, #0c0a08 100%); }
.al-fcard-art.is-warm::after { background-image: linear-gradient(rgba(232,132,30,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(232,132,30,.22) 1px, transparent 1px); }
.al-fcard-art.is-warm .al-fcard-icon { color: var(--xh-orange); filter: drop-shadow(0 0 12px rgba(232,132,30,.55)); }
.al-fcard-label {
  font-family: var(--xh-font-heading); font-size: 12.5px; font-weight: 600;
  color: var(--xh-text-secondary); line-height: 1.4; text-align: center;
}

/* ─── СТРУКТУРА И РОЛИ — 4 portrait cards ─── */
.al-roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.al-role {
  display: flex; flex-direction: column;
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg);
  background: var(--xh-bg-card); overflow: hidden; transition: all var(--xh-transition); cursor: pointer;
}
.al-role:hover { transform: translateY(-3px); border-color: var(--al-acc); }
.al-role-portrait {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 38%, color-mix(in srgb, var(--al-acc) 22%, transparent) 0%, transparent 65%),
    linear-gradient(180deg, #1a1f30 0%, #0a0f20 100%);
  display: flex; align-items: flex-end; justify-content: center;
}
.al-role-portrait::before {
  /* stylized silhouette */
  content: ''; position: absolute; bottom: 0; width: 56%; height: 70%;
  background: radial-gradient(ellipse at 50% 20%, color-mix(in srgb, var(--al-acc) 22%, #444a5f) 0%, color-mix(in srgb, var(--al-acc) 8%, #1a1d28) 60%, transparent 80%);
  border-radius: 50% 50% 8% 8%;
  filter: blur(2px);
}
.al-role-portrait::after {
  content: ''; position: absolute; bottom: 16%; left: 50%; transform: translateX(-50%);
  width: 22%; aspect-ratio: 1/1; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--al-acc) 28%, #5a6075) 0%, color-mix(in srgb, var(--al-acc) 10%, #2c303c) 70%);
  box-shadow: 0 0 30px color-mix(in srgb, var(--al-acc) 22%, transparent);
}
.al-role-badge {
  position: absolute; top: 10px; right: 10px;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--al-acc) 16%, rgba(12,19,34,.85));
  border: 1px solid color-mix(in srgb, var(--al-acc) 40%, transparent);
  color: var(--al-acc); z-index: 1;
}
.al-role-badge svg { width: 13px; height: 13px; }
.al-role-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.al-role-name { font-family: var(--xh-font-heading); font-size: 16px; font-weight: 700; color: #fff; line-height: 1.2; }
.al-role-desc { font-size: 12.5px; color: var(--xh-text-secondary); line-height: 1.5; }

.al-r--gold   { --al-acc: #d8a830; }
.al-r--blue   { --al-acc: var(--xh-blue-light); }
.al-r--orange { --al-acc: var(--xh-orange); }
.al-r--purple { --al-acc: #b070d8; }

/* ─── 2x2 PANEL GRID ─── */
.al-pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.al-panel { border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg); background: var(--xh-bg-card); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.al-panel-title {
  position: relative; padding-left: 14px;
  font-family: var(--xh-font-heading); font-size: 17px; font-weight: 700; color: #fff;
}
.al-panel-title::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 2px; background: var(--xh-orange); }
.al-panel-desc { font-size: 13px; color: var(--xh-text-secondary); line-height: 1.55; margin: 0; }

/* small diplomacy chips inside panel */
.al-chips2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.al-chip2 {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius); background: rgba(255,255,255,.018);
  transition: all var(--xh-transition);
}
.al-chip2:hover { border-color: rgba(74,157,245,.35); background: rgba(74,157,245,.04); }
.al-chip2-icon { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(74,157,245,.08); border: 1px solid rgba(74,157,245,.26); }
.al-chip2-icon svg { width: 15px; height: 15px; color: var(--xh-blue-light); }
.al-chip2 span { font-family: var(--xh-font-heading); font-size: 13px; font-weight: 600; color: var(--xh-text-secondary); }

/* media panel (image bg + bottom button) */
.al-mpanel { border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg); background: var(--xh-bg-card); display: flex; flex-direction: column; overflow: hidden; }
.al-mpanel-head { padding: 22px 24px 14px; display: flex; flex-direction: column; gap: 6px; }
.al-mpanel-art {
  position: relative; flex: 1; min-height: 180px;
  display: flex; align-items: flex-end; justify-content: flex-start; padding: 18px;
  background:
    radial-gradient(ellipse at 30% 40%, color-mix(in srgb, var(--al-acc) 26%, transparent) 0%, transparent 65%),
    radial-gradient(ellipse at 75% 70%, color-mix(in srgb, var(--al-acc) 18%, transparent) 0%, transparent 50%),
    linear-gradient(160deg, color-mix(in srgb, var(--al-acc) 8%, #0a0f20) 0%, #050a14 100%);
  border-top: 1px solid var(--xh-border);
  overflow: hidden;
}
.al-mpanel-art::after {
  content: ''; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--al-acc) 10%, transparent) 0 2px, transparent 2px 10px),
    radial-gradient(circle at 70% 50%, color-mix(in srgb, var(--al-acc) 14%, transparent) 0%, transparent 50%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.al-mpanel-art-deco {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60%; max-width: 220px; color: var(--al-acc); opacity: .25; filter: blur(.5px);
  pointer-events: none;
}
.al-mpanel-art-deco svg { width: 100%; height: 100%; }
.al-mpanel-btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--xh-radius);
  background: var(--xh-orange); color: #fff;
  font-family: var(--xh-font-heading); font-size: 13px; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase; box-shadow: 0 0 18px var(--xh-orange-glow);
  transition: all var(--xh-transition);
}
.al-mpanel-btn:hover { background: var(--xh-orange-hover); transform: translateY(-1px); }
.al-mpanel-btn svg { width: 12px; height: 12px; }

.al-acc-red   { --al-acc: var(--xh-woa-red); }
.al-acc-orange { --al-acc: var(--xh-orange); }
.al-acc-blue  { --al-acc: var(--xh-blue-light); }

/* ─── FAQ + CTA ─── */
.al-faqrow { display: grid; grid-template-columns: 1fr 320px; gap: 14px; align-items: stretch; }
.al-faq-panel { border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg); background: var(--xh-bg-card); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.al-faq-list { display: flex; flex-direction: column; gap: 6px; }
.al-faq-list .xh-faq-item { background: rgba(255,255,255,.018); }
.al-faq-list .xh-faq-q { font-size: 14px; padding: 12px 16px; }
.al-faq-list .xh-faq-q svg { width: 16px; height: 16px; transition: transform var(--xh-transition); }
.al-faq-list .xh-faq-item.is-open .xh-faq-q svg { transform: rotate(180deg); }
.al-faq-list .xh-faq-a { padding: 0 16px 12px; font-size: 13px; }
.al-faq-more { font-family: var(--xh-font-heading); font-size: 13px; font-weight: 700; color: var(--xh-orange); letter-spacing: .3px; align-self: flex-start; padding-top: 4px; }
.al-faq-more:hover { color: var(--xh-orange-hover); }

.al-cta {
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg);
  background:
    radial-gradient(ellipse at 50% 60%, rgba(232,132,30,.18) 0%, transparent 60%),
    linear-gradient(180deg, #1a1208 0%, #0a0c18 100%);
  padding: 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  overflow: hidden; position: relative;
}
.al-cta::before { content: ''; position: absolute; inset: 0; opacity: .35;
  background: radial-gradient(circle at 50% 60%, rgba(232,132,30,.4) 0%, transparent 35%); pointer-events: none; }
.al-cta-title { position: relative; font-family: var(--xh-font-heading); font-size: 17px; font-weight: 700; color: #fff; letter-spacing: .3px; }
.al-cta-desc { position: relative; font-size: 13px; color: var(--xh-text-secondary); line-height: 1.55; margin: 0; }
.al-cta-emblem { position: relative; width: 72px; height: 72px; color: var(--xh-orange); filter: drop-shadow(0 0 16px rgba(232,132,30,.55)); margin-top: 4px; }
.al-cta-emblem svg { width: 100%; height: 100%; }
.al-cta-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--xh-radius);
  background: var(--xh-orange); color: #fff;
  font-family: var(--xh-font-heading); font-size: 13px; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase; box-shadow: 0 0 18px var(--xh-orange-glow);
  transition: all var(--xh-transition);
}
.al-cta-btn:hover { background: var(--xh-orange-hover); transform: translateY(-1px); }
.al-cta-btn svg { width: 12px; height: 12px; }

/* ─── PROCESS FLOW ─── */
.al-flow {
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg); background: var(--xh-bg-card);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 18px;
}
.al-flow-title { font-family: var(--xh-font-heading); font-size: 16px; font-weight: 700; color: #fff; letter-spacing: .3px; }
.al-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.al-step { position: relative; display: flex; gap: 12px; padding: 4px 16px 4px 8px; }
.al-step + .al-step { border-left: 1px dashed var(--xh-border); }
.al-step-arrow { position: absolute; left: -7px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; color: var(--xh-text-muted); }
.al-step-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(74,157,245,.08); border: 1px solid rgba(74,157,245,.25); }
.al-step-icon svg { width: 16px; height: 16px; color: var(--xh-blue-light); }
.al-step-body { min-width: 0; }
.al-step-num { font-family: var(--xh-font-heading); font-size: 12px; font-weight: 700; color: var(--xh-orange); letter-spacing: .3px; margin-bottom: 2px; }
.al-step-name { font-family: var(--xh-font-heading); font-size: 13px; font-weight: 700; color: var(--xh-text); line-height: 1.25; margin-bottom: 3px; }
.al-step-desc { font-size: 11.5px; color: var(--xh-text-secondary); line-height: 1.45; }

/* ─── SIDEBAR ─── */
.al-sidebar { position: sticky; top: calc(var(--xh-header-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
.al-side-card { background: var(--xh-bg-card); border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg); padding: 18px 20px; }
.al-side-title { font-family: var(--xh-font-heading); font-size: 14.5px; font-weight: 700; color: #fff; letter-spacing: .4px; margin-bottom: 14px; }
.al-nav { display: flex; flex-direction: column; gap: 1px; }
.al-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: var(--xh-radius);
  font-family: var(--xh-font-heading); font-size: 13.5px; font-weight: 600;
  color: var(--xh-text-secondary); letter-spacing: .2px; transition: all var(--xh-transition);
}
.al-nav a:hover { color: var(--xh-text); background: rgba(255,255,255,.03); }
.al-nav a.is-active { color: var(--xh-orange); background: rgba(232,132,30,.08); }
.al-nav a .al-nav-chev { width: 13px; height: 13px; opacity: 0; transform: rotate(180deg); transition: opacity var(--xh-transition); }
.al-nav a.is-active .al-nav-chev { opacity: 1; }

.al-filter { display: flex; flex-direction: column; gap: 1px; }
.al-radio {
  display: flex; align-items: center; gap: 10px; padding: 7px 4px;
  font-family: var(--xh-font-heading); font-size: 13.5px; font-weight: 600;
  color: var(--xh-text-secondary); cursor: pointer; transition: color var(--xh-transition);
  width: 100%; text-align: left; justify-content: flex-start;
}
.al-radio:hover { color: var(--xh-text); }
.al-radio-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--xh-text-muted); flex-shrink: 0; position: relative; transition: all var(--xh-transition); }
.al-radio.is-active { color: var(--xh-text); }
.al-radio.is-active .al-radio-dot { border-color: var(--xh-orange); }
.al-radio.is-active .al-radio-dot::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--xh-orange); }
.al-radio-count {
  margin-left: auto; font-family: var(--xh-font-heading); font-size: 11px; font-weight: 700;
  color: var(--xh-text-muted); background: rgba(255,255,255,.04); border: 1px solid var(--xh-border);
  padding: 2px 8px; border-radius: 4px; letter-spacing: .3px;
}

.al-rel-list { display: flex; flex-direction: column; gap: 0; }
.al-rel-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 4px; border-bottom: 1px solid var(--xh-border);
  font-family: var(--xh-font-heading); font-size: 13.5px; font-weight: 600;
  color: var(--xh-text-secondary); transition: all var(--xh-transition);
}
.al-rel-list a:last-child { border-bottom: none; }
.al-rel-list a:hover { color: var(--xh-orange); padding-left: 6px; }
.al-rel-list a svg { width: 14px; height: 14px; color: var(--xh-text-muted); flex-shrink: 0; }

.al-link-list { display: flex; flex-direction: column; gap: 2px; }
.al-link-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px;
  font-family: var(--xh-font-heading); font-size: 13.5px; font-weight: 600;
  color: var(--xh-text-secondary); transition: color var(--xh-transition);
}
.al-link-list a:hover { color: var(--xh-text); }
.al-link-list a svg { width: 16px; height: 16px; color: var(--xh-orange); flex-shrink: 0; opacity: .8; }

/* ─── FOOTER EXT ─── */
.al-footer-desc { font-size: 13px; color: var(--xh-text-muted); line-height: 1.55; margin: 12px 0 16px; max-width: 230px; }
.al-databar { position: relative; z-index: 1; border-top: 1px solid var(--xh-border); padding: 14px 0; text-align: left; }
.al-databar-inner { max-width: var(--xh-max-w); margin: 0 auto; padding: 0 32px; font-family: var(--xh-font-heading); font-size: 12px; font-weight: 600; color: var(--xh-text-muted); letter-spacing: .3px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .al-layout-inner { grid-template-columns: 1fr; }
  .al-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .al-feat-grid { grid-template-columns: repeat(3, 1fr); }
  .al-roles { grid-template-columns: repeat(2, 1fr); }
  .al-pgrid { grid-template-columns: 1fr; }
  .al-faqrow { grid-template-columns: 1fr; }
  .al-steps { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .al-step + .al-step { border-left: none; }
}
@media (max-width: 768px) {
  .al-hero-inner, .al-layout-inner, .al-databar-inner { padding-left: 20px; padding-right: 20px; }
  .al-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .al-roles { grid-template-columns: 1fr 1fr; }
  .al-steps { grid-template-columns: 1fr 1fr; }
  .al-sidebar { grid-template-columns: 1fr; }
  .al-features { gap: 8px; }
  .al-feat { min-width: 80px; padding: 10px 10px; }
}
@media (max-width: 480px) {
  .al-hero-inner, .al-layout-inner, .al-databar-inner { padding-left: 16px; padding-right: 16px; }
  .al-feat-grid { grid-template-columns: 1fr 1fr; }
  .al-roles { grid-template-columns: 1fr; }
  .al-steps { grid-template-columns: 1fr; }
  .al-chips2 { grid-template-columns: 1fr; }
}

/* ===== expedition (owner-шаблон, адаптировано 2026-05-28) ===== */
/* ============================================
   EXPEDITIONS — Encyclopedia article page
   ============================================ */

/* ─── HERO ─── */
.ex-hero { position: relative; z-index: 1; padding: 32px 0 28px; overflow: hidden; }
.ex-hero-bg { position: absolute; inset: 0; z-index: 0; background: url('/media/v2/img/heroes/expedition.webp') center 35% / cover no-repeat; }
.ex-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--xh-bg-deep) 0%, rgba(6,10,20,.88) 32%, rgba(6,10,20,.35) 60%, rgba(6,10,20,.55) 100%),
    radial-gradient(ellipse at 78% 50%, rgba(74,157,245,.22) 0%, transparent 60%),
    linear-gradient(180deg, rgba(6,10,20,.35) 0%, rgba(6,10,20,.15) 60%, var(--xh-bg-deep) 100%);
}
.ex-hero-inner { position: relative; z-index: 1; max-width: var(--xh-max-w); margin: 0 auto; padding: 0 32px; }
.ex-hero-title {
  font-family: var(--xh-font-display); font-size: clamp(28px, 4.2vw, 44px);
  color: #fff; line-height: 1.05; margin-bottom: 14px; letter-spacing: 1.5px;
  text-transform: uppercase;
}
.ex-hero-desc { font-size: 14.5px; color: var(--xh-text-secondary); line-height: 1.6; max-width: 440px; }

/* ─── LAYOUT ─── */
.ex-layout { position: relative; z-index: 1; padding: 16px 0 40px; }
.ex-layout-inner {
  max-width: var(--xh-max-w); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 240px; gap: 24px; align-items: start;
}
.ex-main { min-width: 0; display: flex; flex-direction: column; gap: 32px; }

/* intro hex callout */
.ex-intro {
  display: flex; align-items: center; gap: 22px;
  padding: 22px 26px; border-radius: var(--xh-radius-lg);
  border: 1px solid var(--xh-border); background: rgba(12,19,34,.55);
}
.ex-intro-badge {
  width: 56px; height: 60px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(232,132,30,.10);
  border: 1px solid rgba(232,132,30,.30);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  color: var(--xh-orange);
}
.ex-intro-badge svg { width: 22px; height: 22px; }
.ex-intro p { font-size: 14px; color: var(--xh-text-secondary); line-height: 1.65; margin: 0; }

/* section heading (plain) */
.ex-sec { display: flex; flex-direction: column; gap: 14px; }
.ex-sec-title {
  font-family: var(--xh-font-heading); font-size: 22px; font-weight: 700;
  color: #fff; letter-spacing: .3px;
}

/* ─── FEATURED CARD — Бесконечные дали ─── */
.ex-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch;
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg);
  background: var(--xh-bg-card); overflow: hidden;
}
.ex-feature-body { padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.ex-feature-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ex-feature-name {
  font-family: var(--xh-font-heading); font-size: 22px; font-weight: 700;
  color: #fff; text-transform: uppercase; letter-spacing: 1.5px;
}
.ex-tag {
  font-family: var(--xh-font-heading); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(74,157,245,.10); border: 1px solid rgba(74,157,245,.30); color: var(--xh-blue-light);
}
.ex-tag--res { background: rgba(32,168,104,.10); border: 1px solid rgba(32,168,104,.30); color: var(--xh-green); }
.ex-tag--hostile { background: rgba(208,80,32,.10); border: 1px solid rgba(208,80,32,.30); color: #e0673f; }
.ex-feature-desc { font-size: 14px; color: var(--xh-text-secondary); line-height: 1.6; margin: 0; }

/* small chip row */
.ex-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ex-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: var(--xh-radius);
  border: 1px solid var(--xh-border); background: rgba(255,255,255,.018);
  font-family: var(--xh-font-heading); font-size: 11.5px; font-weight: 600; color: var(--xh-text-secondary);
  line-height: 1.2;
}
.ex-chip svg { width: 14px; height: 14px; color: var(--ex-acc, var(--xh-blue-light)); flex-shrink: 0; }
.ex-chip--res { --ex-acc: var(--xh-green); }
.ex-chip--red { --ex-acc: var(--xh-woa-red); }

.ex-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--xh-radius);
  background: var(--xh-orange); color: #fff;
  font-family: var(--xh-font-heading); font-size: 13px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  box-shadow: 0 0 18px var(--xh-orange-glow);
  transition: all var(--xh-transition); margin-top: 4px;
}
.ex-btn:hover { background: var(--xh-orange-hover); transform: translateY(-1px); }
.ex-btn svg { width: 12px; height: 12px; }

/* feature art (right side) */
.ex-feature-art {
  position: relative; overflow: hidden; min-height: 260px;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(74,157,245,.18) 0%, transparent 55%),
    radial-gradient(circle at 88% 48%, rgba(232,132,30,.28) 0%, transparent 30%),
    linear-gradient(135deg, #0a1228 0%, #060810 60%, #0a0a18 100%);
}
.ex-feature-art::before {
  content: ''; position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 35% 50%, transparent 18%, rgba(232,132,30,.65) 22%, rgba(232,132,30,.15) 32%, transparent 60%);
  filter: blur(2px);
}
.ex-feature-art-paths { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }

/* ─── TYPE CARDS GRID 2x2 ─── */
.ex-types { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ex-type {
  display: flex; flex-direction: column;
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg);
  background: var(--xh-bg-card); overflow: hidden;
  transition: all var(--xh-transition);
}
.ex-type:hover { transform: translateY(-3px); border-color: var(--ex-acc); }
.ex-type-head { padding: 22px 24px 14px; display: flex; flex-direction: column; gap: 10px; }
.ex-type-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ex-type-name { font-family: var(--xh-font-heading); font-size: 19px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.ex-type-desc { font-size: 13px; color: var(--xh-text-secondary); line-height: 1.55; margin: 0; }
.ex-type-art {
  position: relative; height: 110px; overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 50%, color-mix(in srgb, var(--ex-acc) 22%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 60%, color-mix(in srgb, var(--ex-acc) 14%, transparent) 0%, transparent 45%),
    linear-gradient(180deg, color-mix(in srgb, var(--ex-acc) 8%, #0a0e1c) 0%, #050810 100%);
  border-top: 1px solid var(--xh-border); border-bottom: 1px solid var(--xh-border);
}
.ex-type-art::before {
  content: ''; position: absolute; inset: 0; opacity: .35;
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--ex-acc) 16%, transparent) 0 2px, transparent 2px 9px);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.ex-type-art-deco { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 70%; height: 70%; color: var(--ex-acc); opacity: .4; }
.ex-type-art-deco svg { width: 100%; height: 100%; }
.ex-type-foot { padding: 16px 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.ex-type-chips { display: flex; gap: 14px; flex-wrap: wrap; }
.ex-type-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--xh-font-heading); font-size: 12px; font-weight: 600;
  color: var(--xh-text-secondary); line-height: 1.25;
}
.ex-type-chip svg { width: 14px; height: 14px; color: var(--ex-acc); flex-shrink: 0; }

.ex-t--green  { --ex-acc: var(--xh-green); }
.ex-t--red    { --ex-acc: var(--xh-woa-red); }
.ex-t--orange { --ex-acc: var(--xh-orange); }
.ex-t--gray   { --ex-acc: #7e90a8; }

/* ─── HOW IT WORKS — 4 info cards ─── */
.ex-how { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ex-info {
  display: flex; gap: 14px; padding: 18px 18px;
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg);
  background: var(--xh-bg-card); transition: all var(--xh-transition);
}
.ex-info:hover { border-color: var(--xh-border-light); }
.ex-info-icon { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ex-info-icon svg { width: 20px; height: 20px; }
.ex-info-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ex-info-name { font-family: var(--xh-font-heading); font-size: 13.5px; font-weight: 700; color: #fff; letter-spacing: .3px; line-height: 1.25; }
.ex-info-desc { font-size: 12px; color: var(--xh-text-secondary); line-height: 1.5; }
.ex-info--warn .ex-info-icon { background: rgba(232,132,30,.10); border: 1px solid rgba(232,132,30,.30); color: var(--xh-orange); }
.ex-info--gift .ex-info-icon { background: rgba(74,157,245,.10); border: 1px solid rgba(74,157,245,.30); color: var(--xh-blue-light); }
.ex-info--gear .ex-info-icon { background: rgba(74,157,245,.10); border: 1px solid rgba(74,157,245,.30); color: var(--xh-blue-light); }
.ex-info--sci  .ex-info-icon { background: rgba(176,112,216,.10); border: 1px solid rgba(176,112,216,.30); color: #b070d8; }

/* ─── RELATED — 5 horizontal cards ─── */
.ex-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ex-rcard {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg);
  background: var(--xh-bg-card); transition: all var(--xh-transition);
}
.ex-rcard:hover { border-color: var(--xh-border-light); transform: translateY(-2px); }
.ex-rcard-icon { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(74,157,245,.08); border: 1px solid rgba(74,157,245,.25); }
.ex-rcard-icon svg { width: 18px; height: 18px; color: var(--xh-blue-light); }
.ex-rcard-body { min-width: 0; flex: 1; }
.ex-rcard-name { font-family: var(--xh-font-heading); font-size: 13px; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 2px; }
.ex-rcard-desc { font-size: 11.5px; color: var(--xh-text-muted); line-height: 1.35; }
.ex-rcard-arrow { width: 14px; height: 14px; color: var(--xh-text-muted); flex-shrink: 0; }

/* ─── FAQ (plus icons) ─── */
.ex-faq-list { display: flex; flex-direction: column; gap: 6px; }
.ex-faq-list .xh-faq-item { background: rgba(255,255,255,.018); }
.ex-faq-list .xh-faq-q { font-size: 14px; padding: 14px 18px; }
.ex-faq-list .xh-faq-q svg { width: 18px; height: 18px; color: var(--xh-text-secondary); }

/* ─── SIDEBAR ─── */
.ex-sidebar { position: sticky; top: calc(var(--xh-header-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
.ex-side-card { background: var(--xh-bg-card); border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg); padding: 18px 20px; }
.ex-side-title { font-family: var(--xh-font-heading); font-size: 14px; font-weight: 700; color: #fff; letter-spacing: .4px; margin-bottom: 14px; }
.ex-nav { display: flex; flex-direction: column; gap: 1px; }
.ex-nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 4px 7px 16px; position: relative;
  font-family: var(--xh-font-heading); font-size: 13.5px; font-weight: 600;
  color: var(--xh-text-secondary); transition: color var(--xh-transition);
}
.ex-nav a::before { content: ''; position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--xh-text-muted); }
.ex-nav a:hover { color: var(--xh-text); }
.ex-nav a:hover::before { background: var(--xh-text-secondary); }
.ex-nav a.is-active { color: var(--xh-orange); }
.ex-nav a.is-active::before { background: var(--xh-orange); }

/* sidebar note */
.ex-note { display: flex; gap: 12px; align-items: flex-start; }
.ex-note-icon { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(74,157,245,.08); border: 1px solid rgba(74,157,245,.25); color: var(--xh-blue-light); }
.ex-note-icon svg { width: 14px; height: 14px; }
.ex-note-body { font-size: 12px; color: var(--xh-text-muted); line-height: 1.55; }

/* ─── FOOTER (4-col + brand row) ─── */
.ex-footer { position: relative; z-index: 1; border-top: 1px solid var(--xh-border); background: var(--xh-bg-primary); padding: 40px 0 28px; }
.ex-footer-inner { max-width: var(--xh-max-w); margin: 0 auto; padding: 0 32px; }
.ex-footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.ex-footer-col h4 { font-family: var(--xh-font-heading); font-size: 14px; font-weight: 700; color: var(--xh-text); margin-bottom: 14px; letter-spacing: .2px; }
.ex-footer-col a { display: block; font-size: 13px; color: var(--xh-text-muted); padding: 4px 0; transition: color var(--xh-transition); }
.ex-footer-col a:hover { color: var(--xh-text); }
.ex-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 22px; border-top: 1px solid var(--xh-border);
}
.ex-footer-brand-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ex-footer-brand-row .xh-logo { margin: 0; }
.ex-footer-copy { font-size: 12px; color: var(--xh-text-muted); }
.ex-footer-socials { display: flex; gap: 12px; }
.ex-footer-social {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(12,19,34,.6);
  border: 1px solid var(--xh-border); display: flex; align-items: center; justify-content: center;
  color: var(--xh-text-muted); transition: all var(--xh-transition);
}
.ex-footer-social:hover { border-color: var(--xh-text-secondary); color: var(--xh-text); }
.ex-footer-social svg { width: 16px; height: 16px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .ex-layout-inner { grid-template-columns: 1fr; }
  .ex-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .ex-feature { grid-template-columns: 1fr; }
  .ex-feature-art { min-height: 200px; }
  .ex-types { grid-template-columns: 1fr; }
  .ex-how { grid-template-columns: 1fr 1fr; }
  .ex-related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .ex-hero-inner, .ex-layout-inner, .ex-footer-inner { padding-left: 20px; padding-right: 20px; }
  .ex-how { grid-template-columns: 1fr; }
  .ex-related { grid-template-columns: 1fr; }
  .ex-sidebar { grid-template-columns: 1fr; }
  .ex-footer-cols { grid-template-columns: 1fr 1fr; }
  .ex-footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 480px) {
  .ex-hero-inner, .ex-layout-inner, .ex-footer-inner { padding-left: 16px; padding-right: 16px; }
  .ex-intro { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ex-feature-body { padding: 22px 20px; }
  .ex-footer-cols { grid-template-columns: 1fr; }
}

/* ============================================
   Аудит-фиксы 2026-05-28 (a11y/UX, без изменения вида)
   ============================================ */
/* FAQ: иконка раскрытия крутится на ВСЕХ страницах (раньше — только турниры через [open]).
   На ach/al/ex была привязка к .is-open, который никто не ставил → стрелка не крутилась. */
.ach-faq .xh-faq-item[open] .xh-faq-q svg,
.al-faq-list .xh-faq-item[open] .xh-faq-q svg { transform: rotate(180deg); }
.ex-faq-list .xh-faq-item[open] .xh-faq-q svg { transform: rotate(45deg); }
/* Видимый фокус на вопросах FAQ (details/summary) на тёмном фоне. */
.xa-faq-list .xh-faq-q:focus-visible,
.ach-faq .xh-faq-q:focus-visible,
.al-faq-list .xh-faq-q:focus-visible,
.ex-faq-list .xh-faq-q:focus-visible { outline: 2px solid var(--xh-orange); outline-offset: 2px; border-radius: 6px; }
/* Уважать prefers-reduced-motion для якорной прокрутки. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ============================================
   Иконка-бейдж слева в шапке статей (как на страницах категорий).
   Owner 2026-05-28: убрать правую арт-иконку, значок — слева перед заголовком.
   ============================================ */
.xa-hero-badge {
  width: 56px; height: 56px; border-radius: var(--xh-radius-lg);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: rgba(232,132,30,.12); border: 1px solid rgba(232,132,30,.38);
  color: var(--xh-orange); box-shadow: 0 0 26px rgba(232,132,30,.28);
}
.xa-hero-badge svg { width: 30px; height: 30px; }
/* Убираем правую арт-колонку (кубок/медаль) и схлопываем сетку шапки. */
.xa-hero-art, .ach-hero-art { display: none !important; }
.xa-hero-grid, .ach-hero-grid { grid-template-columns: 1fr !important; }

/* ============================================
   Достижения — доработки (owner 2026-05-28): описания разделов крупнее,
   карточки шире, иконки наград (очки/АМ/опыт).
   ============================================ */
.ach-sec-sub { font-size: 14.5px; color: var(--xh-text-secondary); line-height: 1.55; }
.ach-cats { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)) !important; }
.ach-ccard-stats { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.ach-ccard-stat { display: inline-flex; align-items: center; gap: 4px; font-family: var(--xh-font-heading); font-size: 12px; font-weight: 700; color: var(--xh-text-secondary); white-space: nowrap; }
.ach-ccard-stat svg { width: 13px; height: 13px; color: var(--xh-orange); flex-shrink: 0; }
.ach-st--am svg { color: var(--xh-blue-light); }
.ach-st--exp svg { color: var(--xh-green); }
.ach-st--lvl { color: var(--xh-text-muted); }

/* Обзор разделов достижений — компактные карточки БЕЗ иконок (owner 2026-05-28, вар.3):
   название + счётчик, визуально отличаются от карточек достижений. */
.ach-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ach-ovcard { display: block; padding: 13px 16px; border: 1px solid var(--xh-border); border-left: 3px solid var(--xh-orange); border-radius: var(--xh-radius); background: rgba(255,255,255,.02); text-decoration: none; transition: border-color var(--xh-transition), background var(--xh-transition); }
.ach-ovcard:hover { background: rgba(255,255,255,.045); border-color: var(--xh-border-light); border-left-color: var(--xh-orange); }
.ach-ovcard-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ach-ovcard-name { font-family: var(--xh-font-heading); font-size: 15px; font-weight: 700; color: #fff; }
.ach-ovcard-count { font-family: var(--xh-font-heading); font-size: 20px; font-weight: 700; color: var(--xh-orange); line-height: 1; }
.ach-ovcard-desc { font-size: 12.5px; color: var(--xh-text-muted); line-height: 1.45; }

/* Достижения: реальная игровая иконка крупнее и заметнее, карточка уже (owner 2026-05-28) */
.ach-cats { grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)) !important; }
.ach-ccard-art img.ach-real-icon { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 2px 9px rgba(0,0,0,.45)); }
.ach-ccard-art::after { opacity: .18; }

/* Реальные иконки валют в статах достижений (АМ/опыт/очки) */
.ach-ccard-stat img { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; vertical-align: middle; }

/* На телефоне иконка достижения крупнее (owner 2026-05-28) */
@media (max-width: 768px) {
  .ach-cats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; }
  .ach-ccard-art img.ach-real-icon { width: 120px; height: 120px; }
}
@media (max-width: 480px) {
  .ach-ccard-art img.ach-real-icon { width: 132px; height: 132px; }
}

/* FAQ достижений (.ach-faq) — выравнивание summary + размер стрелки (как у .xa-faq-list) */
.ach-faq .xh-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.ach-faq .xh-faq-q::-webkit-details-marker { display: none; }
.ach-faq .xh-faq-q::after { content: none !important; }
.ach-faq .xh-faq-q svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--xh-text-muted); transition: transform var(--xh-transition); }
/* Мобильная раскладка статей — стек (сайдбар под контентом), без пустоты сбоку/снизу */
@media (max-width: 1024px) {
  .ach-layout-inner, .al-layout-inner, .ex-layout-inner { grid-template-columns: 1fr !important; }
  .ach-sidebar, .al-sidebar, .ex-sidebar { position: static !important; }
}

/* ===== tn-* (Турниры) — витринный дизайн, перенесён из owner-шаблона tournaments.html 2026-05-30 ===== */
/* ============================================
   TOURNAMENTS — Encyclopedia article page
   ============================================ */

/* ─── HERO ─── */
.tn-hero { position: relative; z-index: 1; padding: 40px 0 36px; overflow: hidden; }
.tn-hero-bg { position: absolute; inset: 0; z-index: 0; background: url('/media/v2/img/galaxy-map.jpg') center 25% / cover no-repeat; }
.tn-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--xh-bg-deep) 0%, rgba(6,10,20,.86) 42%, rgba(6,10,20,.45) 70%, rgba(6,10,20,.7) 100%),
              linear-gradient(180deg, rgba(6,10,20,.4) 0%, rgba(6,10,20,.2) 50%, var(--xh-bg-deep) 100%);
}
.tn-hero-inner { position: relative; z-index: 1; max-width: var(--xh-max-w); margin: 0 auto; padding: 0 32px; }
.tn-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.tn-hero-title {
  font-family: var(--xh-font-display); font-size: clamp(34px, 5vw, 56px);
  text-transform: none; letter-spacing: .5px; color: #fff; line-height: 1.02; margin-bottom: 18px;
}
.tn-hero-desc { font-size: 16px; color: var(--xh-text-secondary); line-height: 1.6; max-width: 480px; margin-bottom: 26px; }

/* hero tabs */
.tn-tabs { display: flex; gap: 12px; flex-wrap: wrap; }
.tn-tab {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--xh-font-heading); font-size: 14px; font-weight: 600;
  color: var(--xh-text-secondary); padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--xh-border-light); background: rgba(12,19,34,.6);
  backdrop-filter: blur(6px); transition: all var(--xh-transition); letter-spacing: .2px;
}
.tn-tab svg { width: 16px; height: 16px; color: var(--xh-orange); flex-shrink: 0; }
.tn-tab:hover { border-color: var(--xh-orange); color: var(--xh-text); background: rgba(232,132,30,.08); }

/* hero trophy art */
.tn-hero-art { position: relative; aspect-ratio: 5/4; display: flex; align-items: center; justify-content: center; }
.tn-hero-art::before {
  content: ''; position: absolute; width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,132,30,.32) 0%, rgba(42,125,225,.16) 45%, transparent 72%);
  filter: blur(6px);
}
.tn-trophy { position: relative; width: 200px; height: 200px; color: var(--xh-orange); filter: drop-shadow(0 0 28px rgba(232,132,30,.45)); }
.tn-trophy svg { width: 100%; height: 100%; }
.tn-hero-art-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* ─── LAYOUT ─── */
.tn-layout { position: relative; z-index: 1; padding: 8px 0 56px; }
.tn-layout-inner {
  max-width: var(--xh-max-w); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start;
}
.tn-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* intro callout */
.tn-intro {
  display: flex; align-items: center; gap: 22px;
  padding: 24px 28px; border-radius: var(--xh-radius-lg);
  border: 1px solid rgba(232,132,30,.22); border-left: 3px solid var(--xh-orange);
  background: linear-gradient(135deg, rgba(232,132,30,.08) 0%, rgba(232,132,30,.02) 60%);
}
.tn-intro-badge {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--xh-radius);
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,132,30,.1); border: 1px solid rgba(232,132,30,.3);
}
.tn-intro-badge svg { width: 32px; height: 32px; color: var(--xh-orange); }
.tn-intro p { font-size: 15px; color: var(--xh-text-secondary); line-height: 1.6; margin: 0; }
.tn-intro p strong { color: var(--xh-text); font-weight: 600; }

/* generic section panel */
.tn-section { background: var(--xh-bg-card); border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg); padding: 28px 30px; }
.tn-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.tn-section-icon {
  width: 36px; height: 36px; border-radius: var(--xh-radius); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,132,30,.1); border: 1px solid rgba(232,132,30,.28);
}
.tn-section-icon svg { width: 19px; height: 19px; color: var(--xh-orange); }
.tn-section-title { font-family: var(--xh-font-heading); font-size: 22px; font-weight: 700; color: #fff; letter-spacing: .4px; }
.tn-section-sub { font-size: 14px; color: var(--xh-text-secondary); line-height: 1.55; margin: 0 0 22px; }

/* ─── FORMAT CARDS ─── */
.tn-formats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tn-fcard {
  display: flex; flex-direction: column;
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg);
  background: rgba(12,19,34,.5); overflow: hidden; transition: all var(--xh-transition); cursor: pointer;
}
.tn-fcard:hover { transform: translateY(-4px); border-color: var(--tn-acc); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.tn-fcard-art {
  position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--tn-acc) 26%, transparent) 0%, transparent 62%),
    linear-gradient(160deg, color-mix(in srgb, var(--tn-acc) 10%, #0a1322) 0%, #080d18 100%);
  border-bottom: 1px solid var(--xh-border);
  overflow: hidden;
}
.tn-fcard-art::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(color-mix(in srgb, var(--tn-acc) 30%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--tn-acc) 30%, transparent) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: radial-gradient(circle at 50% 45%, #000 10%, transparent 70%);
}
.tn-fcard-icon { position: relative; width: 56px; height: 56px; color: var(--tn-acc); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--tn-acc) 60%, transparent)); }
.tn-fcard-icon svg { width: 100%; height: 100%; }
.tn-fcard-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tn-fcard-name { font-family: var(--xh-font-heading); font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; }
.tn-fcard-desc { font-size: 12.5px; color: var(--xh-text-secondary); line-height: 1.5; flex: 1; }
.tn-fcard-badge {
  align-self: flex-start; font-family: var(--xh-font-heading); font-size: 11px; font-weight: 700;
  letter-spacing: .3px; padding: 4px 10px; border-radius: 999px; margin-top: 2px;
  color: var(--tn-acc); background: color-mix(in srgb, var(--tn-acc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tn-acc) 30%, transparent);
}
.tn-f--orange { --tn-acc: var(--xh-orange); }
.tn-f--blue   { --tn-acc: var(--xh-blue-light); }
.tn-f--green  { --tn-acc: var(--xh-green); }
.tn-f--gold   { --tn-acc: #d8b13a; }
.tn-f--purple { --tn-acc: #9a6ff0; }

/* ─── PARTICIPATION STEPS ─── */
.tn-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; align-items: stretch; }
.tn-step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; border: 1px solid var(--xh-border); border-radius: var(--xh-radius); background: rgba(255,255,255,.015); }
.tn-step + .tn-step { margin-left: 14px; }
.tn-step + .tn-step::before {
  content: ''; position: absolute; left: -14px; top: 50%; width: 14px; height: 1px;
  background: var(--xh-border-light);
}
.tn-step + .tn-step::after {
  content: ''; position: absolute; left: -7px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-top: 1px solid var(--xh-orange); border-right: 1px solid var(--xh-orange);
  rotate: 45deg;
}
.tn-step-num {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--xh-font-heading); font-size: 14px; font-weight: 700; color: var(--xh-orange);
  background: rgba(232,132,30,.1); border: 1px solid rgba(232,132,30,.32);
}
.tn-step-name { font-family: var(--xh-font-heading); font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; }
.tn-step-desc { font-size: 12.5px; color: var(--xh-text-secondary); line-height: 1.5; }

/* ─── REWARDS ─── */
.tn-rewards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tn-reward {
  display: flex; align-items: center; gap: 11px; padding: 12px 13px;
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius);
  background: rgba(255,255,255,.015); transition: all var(--xh-transition);
}
.tn-reward:hover { border-color: var(--xh-border-light); background: rgba(255,255,255,.035); }
.tn-reward-icon { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(42,125,225,.08); border: 1px solid rgba(42,125,225,.25); }
.tn-reward-icon svg { width: 16px; height: 16px; color: var(--xh-blue-light); }
.tn-reward span { font-family: var(--xh-font-heading); font-size: 12px; font-weight: 600; color: var(--xh-text-secondary); line-height: 1.25; }

/* ─── RATING LOGIC ─── */
.tn-rating { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tn-rating-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--xh-border); border-radius: var(--xh-radius); background: rgba(255,255,255,.015); }
.tn-rating-icon { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(232,132,30,.08); border: 1px solid rgba(232,132,30,.24); }
.tn-rating-icon svg { width: 16px; height: 16px; color: var(--xh-orange); }
.tn-rating-card p { font-size: 12.5px; color: var(--xh-text-secondary); line-height: 1.5; margin: 2px 0 0; }

/* ─── FAQ (chevron variant) ─── */
.tn-faq-list { display: flex; flex-direction: column; gap: 8px; }
.tn-faq-list .xh-faq-item { border-radius: var(--xh-radius); }
.tn-faq-list .xh-faq-q { font-size: 14px; }
.tn-faq-list .xh-faq-item.is-open .xh-faq-q svg { transform: rotate(180deg); }

/* ─── SIDEBAR ─── */
.tn-sidebar { position: sticky; top: calc(var(--xh-header-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.tn-side-card { background: var(--xh-bg-card); border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg); padding: 20px; }
.tn-side-title { font-family: var(--xh-font-heading); font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .4px; margin-bottom: 14px; }

/* sidebar nav (scrollspy) */
.tn-nav { display: flex; flex-direction: column; gap: 1px; }
.tn-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: var(--xh-radius);
  font-family: var(--xh-font-heading); font-size: 14px; font-weight: 600;
  color: var(--xh-text-secondary); letter-spacing: .2px; transition: all var(--xh-transition);
}
.tn-nav a:hover { color: var(--xh-text); background: rgba(255,255,255,.03); }
.tn-nav a.is-active { color: var(--xh-orange); background: rgba(232,132,30,.08); }
.tn-nav a .tn-nav-chev { width: 14px; height: 14px; opacity: 0; transform: rotate(180deg); transition: opacity var(--xh-transition); }
.tn-nav a.is-active .tn-nav-chev { opacity: 1; }

/* filter radios */
.tn-filter { display: flex; flex-direction: column; gap: 2px; }
.tn-radio {
  display: flex; align-items: center; gap: 10px; padding: 7px 4px;
  font-family: var(--xh-font-heading); font-size: 14px; font-weight: 600;
  color: var(--xh-text-secondary); cursor: pointer; transition: color var(--xh-transition); width: 100%; text-align: left;
}
.tn-radio:hover { color: var(--xh-text); }
.tn-radio-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--xh-text-muted); flex-shrink: 0; position: relative; transition: all var(--xh-transition); }
.tn-radio.is-active { color: var(--xh-text); }
.tn-radio.is-active .tn-radio-dot { border-color: var(--xh-orange); }
.tn-radio.is-active .tn-radio-dot::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--xh-orange); }

/* related list */
.tn-rel-list { display: flex; flex-direction: column; gap: 1px; }
.tn-rel-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 4px; border-bottom: 1px solid var(--xh-border);
  font-family: var(--xh-font-heading); font-size: 14px; font-weight: 600;
  color: var(--xh-text-secondary); transition: all var(--xh-transition);
}
.tn-rel-list a:last-child { border-bottom: none; }
.tn-rel-list a:hover { color: var(--xh-orange); padding-left: 8px; }
.tn-rel-list a svg { width: 15px; height: 15px; color: var(--xh-text-muted); flex-shrink: 0; }

/* ─── RELATED SECTION CARDS (bottom) ─── */
/* .tn-related/-inner/-title/-grid удалены 2026-06-01 — related вынесен в _partials/article-related.php (классы xa-*). .tn-rcard ниже ОСТАВЛЕН — ещё используется в hero. */
.tn-rcard {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg);
  background: var(--xh-bg-card); transition: all var(--xh-transition);
}
.tn-rcard:hover { transform: translateY(-3px); border-color: var(--tn-acc); }
.tn-rcard-art {
  width: 56px; height: 56px; border-radius: var(--xh-radius); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tn-acc) 24%, transparent) 0%, transparent 70%), #0a1322;
  border: 1px solid color-mix(in srgb, var(--tn-acc) 26%, transparent);
}
.tn-rcard-art svg { width: 28px; height: 28px; color: var(--tn-acc); }
.tn-rcard-name { font-family: var(--xh-font-heading); font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.tn-rcard-desc { font-size: 12.5px; color: var(--xh-text-secondary); line-height: 1.45; }
/* .tn-r--* удалены 2026-06-01 (0 usage — цветовые акценты related теперь через xa-r--*). */

/* ─── FOOTER EXT ─── */
/* .tn-footer-desc удалён 2026-06-01 (0 usage). */
.tn-databar {
  position: relative; z-index: 1; border-top: 1px solid var(--xh-border); padding: 14px 0; text-align: left;
}
.tn-databar-inner { max-width: var(--xh-max-w); margin: 0 auto; padding: 0 32px; font-family: var(--xh-font-heading); font-size: 12px; font-weight: 600; color: var(--xh-text-muted); letter-spacing: .3px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .tn-hero-grid { grid-template-columns: 1fr; }
  .tn-hero-art { display: none; }
  .tn-layout-inner { grid-template-columns: 1fr; }
  .tn-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  /* .tn-related-grid responsive удалён 2026-06-01 (dead) */
}
@media (max-width: 900px) {
  .tn-formats { grid-template-columns: repeat(3, 1fr); }
  .tn-steps { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .tn-step + .tn-step { margin-left: 0; }
  .tn-step + .tn-step::before, .tn-step + .tn-step::after { display: none; }
  .tn-rewards { grid-template-columns: repeat(3, 1fr); }
  .tn-rating { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .tn-hero-inner, .tn-layout-inner, .tn-databar-inner { padding-left: 20px; padding-right: 20px; }
  .tn-section { padding: 22px 20px; }
  .tn-section-title { font-size: 19px; }
  .tn-formats { grid-template-columns: repeat(2, 1fr); }
  .tn-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .tn-hero-inner, .tn-layout-inner, .tn-databar-inner { padding-left: 16px; padding-right: 16px; }
  .tn-formats { grid-template-columns: 1fr 1fr; }
  .tn-steps, .tn-rewards { grid-template-columns: 1fr 1fr; }
  .tn-rating { grid-template-columns: 1fr; }
  /* .tn-related-grid responsive (1fr) удалён 2026-06-01 (dead) */
  .tn-intro { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* FAQ-стрелки в витринных статьях (tn-/al-/ex-) — ограничение размера + раскладка (фикс 2026-05-30) */
.tn-faq-list .xh-faq-q, .al-faq-list .xh-faq-q, .ex-faq-list .xh-faq-q { display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; }
.tn-faq-list .xh-faq-q svg, .al-faq-list .xh-faq-q svg, .ex-faq-list .xh-faq-q svg { width:18px; height:18px; flex-shrink:0; color:var(--xh-text-muted); transition:transform var(--xh-transition); }
.tn-faq-list .xh-faq-q::-webkit-details-marker, .al-faq-list .xh-faq-q::-webkit-details-marker, .ex-faq-list .xh-faq-q::-webkit-details-marker { display:none; }
.tn-faq-list .xh-faq-q::after, .al-faq-list .xh-faq-q::after, .ex-faq-list .xh-faq-q::after { content: none !important; }
/* Категория в боковом меню статьи */
.ex-side-cat, .tn-side-cat, .al-side-cat { font-size: 13px; color: var(--xh-text-secondary); line-height: 1.45; }
.ex-side-cat a, .tn-side-cat a, .al-side-cat a { color: var(--xh-text-secondary); }
/* Карточки фракций альянса (реальные бонусы из allianceFractions.php) */
.al-frac-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.al-frac { padding: 12px 14px; border: 1px solid var(--xh-border); border-radius: var(--xh-radius); background: rgba(255,255,255,.02); }
.al-frac-name { font-family: var(--xh-font-heading); font-size: 14.5px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 5px; }
.al-frac-tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--xh-orange); background: rgba(232,132,30,.12); border: 1px solid rgba(232,132,30,.3); border-radius: 4px; padding: 2px 8px; }
.al-frac-desc { font-size: 12.5px; color: var(--xh-text-secondary); line-height: 1.55; }
/* Экспедиция: реальные картинки секторов + характеристики (2026-05-31) */
/* картинка-фон всей плитки (как у featured), контент поверх + затемнение для читаемости */
.ex-type { position: relative; overflow: hidden; }
.ex-type-bg { position: absolute; inset: 0; z-index: 0; }
.ex-type-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; display: block; }
.ex-type-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,22,.40) 0%, rgba(8,12,22,.74) 52%, color-mix(in srgb, var(--ex-acc, #0a0e1c) 22%, rgba(8,12,22,.93)) 100%); }
.ex-type-head, .ex-type-foot { position: relative; z-index: 1; }
.ex-feature { border: 1px solid rgba(74,157,245,.35); }
.ex-feature-art { position: relative; overflow: hidden; }
.ex-feature-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block; }
.ex-feature-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--xh-bg-card) 0%, rgba(8,12,22,0) 30%), linear-gradient(180deg, rgba(8,12,22,0) 55%, rgba(8,12,22,.45) 100%); }
/* обводки секторов под цвет картинки */
.ex-t--amber { --ex-acc: #e8a838; }
.ex-t--purple { --ex-acc: #9a6cff; }
/* сложность цветом: легко (зелёный) → сложно (красный) */
.ex-tag.ex-diff { border: 1px solid; }
.ex-diff--1 { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.42); color: #34d399; }
.ex-diff--2 { background: rgba(163,208,57,.12); border-color: rgba(163,208,57,.42); color: #b6d957; }
.ex-diff--3 { background: rgba(232,168,56,.12); border-color: rgba(232,168,56,.42); color: #e8a838; }
.ex-diff--4 { background: rgba(240,130,60,.14); border-color: rgba(240,130,60,.46); color: #f0823c; }
.ex-diff--5 { background: rgba(224,92,74,.14); border-color: rgba(224,92,74,.46); color: #e85c4a; }
.ex-type-stats { display: flex; flex-direction: column; gap: 0; width: 100%; }
.ex-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12.5px; line-height: 1.35; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.07); }
.ex-stat:first-child { border-top: none; }
.ex-stat-k { color: #fff; font-weight: 600; flex-shrink: 0; }
.ex-stat-v { color: var(--xh-text-secondary); text-align: right; }
.tn-faq-list .xh-faq-item[open] .xh-faq-q svg, .al-faq-list .xh-faq-item[open] .xh-faq-q svg, .ex-faq-list .xh-faq-item[open] .xh-faq-q svg { transform:rotate(180deg); }

/* ===== Турниры — бенто-витрина (2026-05-31, owner: разноразмерные блоки по важности) ===== */
/* FEATURED: крупный блок «Альянсовый» (2 колонки: текст + арт под картинку owner) */
.tn-feature { display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg); background: var(--xh-bg-card); overflow: hidden; }
.tn-feature-text { padding: 30px 32px; display: flex; flex-direction: column; gap: 15px; justify-content: center; min-width: 0; }
.tn-feature-tag { align-self: flex-start; font-family: var(--xh-font-heading); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 11px; border-radius: 4px; background: color-mix(in srgb, var(--tn-acc, #d8b13a) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tn-acc, #d8b13a) 38%, transparent); color: var(--tn-acc, #d8b13a); }
.tn-feature-name { font-family: var(--xh-font-display); font-size: clamp(24px, 3vw, 34px); color: #fff; line-height: 1.05; letter-spacing: .4px; }
.tn-feature-desc { font-size: 14.5px; color: var(--xh-text-secondary); line-height: 1.6; margin: 0; }
.tn-feature-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.tn-fchip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--xh-radius); border: 1px solid var(--xh-border); background: rgba(255,255,255,.02); font-family: var(--xh-font-heading); font-size: 12px; font-weight: 600; color: var(--xh-text-secondary); line-height: 1.2; }
.tn-fchip svg { width: 15px; height: 15px; color: var(--tn-acc, #d8b13a); flex-shrink: 0; }
.tn-feature-art { position: relative; overflow: hidden; min-height: 240px; background: radial-gradient(ellipse at 64% 50%, color-mix(in srgb, var(--tn-acc, #d8b13a) 24%, transparent) 0%, transparent 58%), linear-gradient(135deg, #0c1326 0%, #070a14 70%); border-left: 1px solid var(--xh-border); }
.tn-feature-art::after { content: ''; position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(color-mix(in srgb, var(--tn-acc,#d8b13a) 26%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--tn-acc,#d8b13a) 26%, transparent) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(circle at 55% 50%, #000 8%, transparent 68%); }
.tn-feature-art-deco { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54%; height: 54%; color: var(--tn-acc, #d8b13a); opacity: .55; filter: drop-shadow(0 0 20px color-mix(in srgb, var(--tn-acc,#d8b13a) 45%, transparent)); }
.tn-feature-art-deco svg { width: 100%; height: 100%; }

/* Личные треки — 4 колонки (альянсовый вынесен в featured) */
.tn-formats--4 { grid-template-columns: repeat(4, 1fr); }

/* 19 типов — тематические группы (3 колонки) */
.tn-tgroups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tn-tgroup { border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg); background: rgba(12,19,34,.5); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 13px; transition: border-color var(--xh-transition); }
.tn-tgroup:hover { border-color: color-mix(in srgb, var(--tn-acc) 45%, var(--xh-border)); }
.tn-tgroup-head { display: flex; align-items: center; gap: 10px; }
.tn-tgroup-icon { width: 34px; height: 34px; border-radius: var(--xh-radius); flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--tn-acc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tn-acc) 30%, transparent); }
.tn-tgroup-icon svg { width: 18px; height: 18px; color: var(--tn-acc); }
.tn-tgroup-name { font-family: var(--xh-font-heading); font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; }
.tn-tgroup-list { display: flex; flex-direction: column; gap: 8px; }
.tn-titem { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--xh-text-secondary); line-height: 1.3; }
.tn-titem::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--tn-acc); flex-shrink: 0; }

/* Награды — карточки с описанием */
.tn-rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tn-rcard2 { display: flex; gap: 13px; padding: 15px 16px; border: 1px solid var(--xh-border); border-radius: var(--xh-radius-lg); background: rgba(255,255,255,.015); transition: all var(--xh-transition); }
.tn-rcard2:hover { border-color: var(--xh-border-light); transform: translateY(-2px); }
.tn-rcard2-icon { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(216,177,58,.10); border: 1px solid rgba(216,177,58,.30); }
.tn-rcard2-icon svg { width: 19px; height: 19px; color: #d8b13a; }
.tn-rcard2-body { min-width: 0; }
.tn-rcard2-name { font-family: var(--xh-font-heading); font-size: 14px; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 4px; }
.tn-rcard2-desc { font-size: 12px; color: var(--xh-text-secondary); line-height: 1.45; }

@media (max-width: 900px) {
  .tn-feature { grid-template-columns: 1fr; }
  .tn-feature-art { min-height: 150px; order: -1; border-left: 0; border-bottom: 1px solid var(--xh-border); }
  .tn-formats--4 { grid-template-columns: repeat(2, 1fr); }
  .tn-tgroups { grid-template-columns: 1fr; }
}
