.xgkh,
.xgkh * {
  box-sizing: border-box;
}

.xgkh {
  --xgkh-bg: #ffffff;
  --xgkh-surface: #fcfcfc;
  --xgkh-surface-strong: #f7f7f7;
  --xgkh-border: rgba(19, 22, 47, 0.10);
  --xgkh-border-strong: rgba(19, 22, 47, 0.18);
  --xgkh-text: #151b1f;
  --xgkh-text-soft: #737373;
  --xgkh-primary: #13162f;
  --xgkh-accent: #f9b11c;
  --xgkh-accent-soft: #fcfaf5;
  --xgkh-radius: 22px;
  color: var(--xgkh-text);
}

.xgkh__hero {
  background: #ffffff;
  border: 1px solid var(--xgkh-border);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 38px);
  margin-bottom: 22px;
  box-shadow: none;
}

.xgkh__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--xgkh-accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 15px;
}

.xgkh__hero h2,
.xgkh-tools__intro h3,
.xgkh-single-cta h3 {
  margin: 0 0 12px;
  color: var(--xgkh-text);
  line-height: 1.12;
  font-size: clamp(26px, 4vw, 42px);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.xgkh__hero p,
.xgkh-tools__intro p,
.xgkh-single-cta p {
  margin: 0;
  color: var(--xgkh-text-soft);
  line-height: 1.7;
  font-size: 16px;
  max-width: 920px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.xgkh-tools {
  background: #ffffff;
  border: 1px solid var(--xgkh-border);
  border-radius: 26px;
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 22px;
  box-shadow: none;
}

.xgkh-tools__intro {
  margin-bottom: 18px;
}

.xgkh-tools__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.xgkh-tool {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  align-items: start;
  background: var(--xgkh-surface);
  border: 1px solid var(--xgkh-border);
  border-radius: 22px;
  padding: 20px;
  color: var(--xgkh-text);
  text-decoration: none;
  box-shadow: none;
  transition: border-color .2s ease, background-color .2s ease;
}

.xgkh-tool:hover {
  border-color: rgba(249, 177, 28, .6);
  background: #ffffff;
  color: var(--xgkh-text);
  text-decoration: none;
}

.xgkh-tool__label {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--xgkh-primary);
  color: #ffffff;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.xgkh-tool strong {
  color: var(--xgkh-text);
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.xgkh-tool span:not(.xgkh-tool__label) {
  grid-column: 2;
  color: var(--xgkh-text-soft);
  line-height: 1.6;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.xgkh-tool em {
  grid-column: 2;
  color: var(--xgkh-primary);
  font-weight: 800;
  font-style: normal;
}

.xgkh__controls {
  background: #ffffff;
  border: 1px solid var(--xgkh-border);
  border-radius: 24px;
  padding: 18px;
  margin-bottom: 22px;
  box-shadow: none;
}

.xgkh__search {
  margin-bottom: 14px;
}

.xgkh__search input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--xgkh-border-strong);
  border-radius: 12px;
  padding: 0 15px;
  font-size: 15px;
  color: var(--xgkh-text);
  background: #ffffff;
  box-shadow: none;
  outline: none;
}

.xgkh__search input:focus {
  border-color: var(--xgkh-accent);
}

.xgkh__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.xgkh-topic {
  appearance: none;
  border: 1px solid var(--xgkh-border);
  background: var(--xgkh-surface);
  color: var(--xgkh-text);
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.xgkh-topic:hover,
.xgkh-topic.is-active {
  background: var(--xgkh-primary);
  border-color: var(--xgkh-primary);
  color: #ffffff;
}

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

.xgkh-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--xgkh-border);
  border-radius: 24px;
  padding: 22px;
  min-height: 100%;
  box-shadow: none;
}

.xgkh-card.is-featured {
  border-color: rgba(249, 177, 28, .55);
  background: linear-gradient(180deg, #fff, #fffdf9);
  box-shadow: none;
}

.xgkh-card[hidden] {
  display: none !important;
}

.xgkh-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--xgkh-text-soft);
  font-size: 12px;
  font-weight: 700;
}

.xgkh-card__type {
  color: #ffffff;
  background: var(--xgkh-accent);
  border-radius: 999px;
  padding: 5px 10px;
  line-height: 1;
}

.xgkh-card__title {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.3vw, 25px);
  line-height: 1.18;
  color: var(--xgkh-text);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.xgkh-card__title a {
  color: inherit;
  text-decoration: none;
}

.xgkh-card__title a:hover {
  color: var(--xgkh-primary);
  text-decoration: none;
}

.xgkh-card__lead {
  color: var(--xgkh-text-soft);
  line-height: 1.65;
  font-size: 15px;
  margin: 0 0 16px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.xgkh-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 18px;
}

.xgkh-card__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--xgkh-surface-strong);
  border: 1px solid var(--xgkh-border);
  color: var(--xgkh-text);
  font-size: 12px;
  font-weight: 700;
}

.xgkh-btn {
  appearance: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  box-shadow: none;
}

.xgkh-btn--primary {
  background: var(--xgkh-primary);
  color: #ffffff;
}

.xgkh-btn--primary:hover {
  background: #101015;
  color: #ffffff;
  text-decoration: none;
}

.xgkh-btn--ghost {
  background: transparent;
  color: var(--xgkh-text);
  border: 1px solid var(--xgkh-border-strong);
}

.xgkh-btn--ghost:hover {
  border-color: var(--xgkh-accent);
  color: var(--xgkh-text);
  text-decoration: none;
}

.xgkh__empty {
  background: #ffffff;
  border: 1px solid var(--xgkh-border);
  border-radius: 22px;
  padding: 24px;
  margin-top: 18px;
  color: var(--xgkh-text-soft);
  box-shadow: none;
}

.xgkh-single-cta,
.xgkh-single-cta * {
  box-sizing: border-box;
}

.xgkh-single-cta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(19, 22, 47, .12);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 28px);
  margin: 34px 0;
  box-shadow: none;
}

.xgkh-single-cta h3 {
  font-size: clamp(22px, 3vw, 30px);
}

.xgkh-single-cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .xgkh__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .xgkh__hero,
  .xgkh-tools,
  .xgkh__controls,
  .xgkh-card,
  .xgkh-single-cta {
    border-radius: 20px;
  }

  .xgkh-tools__cards,
  .xgkh__grid {
    grid-template-columns: 1fr;
  }

  .xgkh-tool {
    grid-template-columns: auto 1fr;
    padding: 18px;
  }

  .xgkh-tool__label {
    width: 40px;
    min-width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .xgkh-tool strong,
  .xgkh-tool span:not(.xgkh-tool__label),
  .xgkh-tool em {
    grid-column: 2;
  }

  .xgkh-topic {
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }

  .xgkh-single-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .xgkh-single-cta__actions,
  .xgkh-btn {
    width: 100%;
  }
}


.xgkh-single-faq {
  margin: 34px 0 0;
  padding: 26px;
  background: #ffffff;
  border: 1px solid rgba(19, 22, 47, 0.10);
  border-radius: 24px;
  box-shadow: none;
}

.xgkh-single-faq__header {
  margin: 0 0 18px;
}

.xgkh-single-faq__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  margin: 0 0 10px;
  border-radius: 999px;
  background: var(--xgkh-accent, #f9b11c);
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .02em;
}

.xgkh-single-faq h3 {
  margin: 0;
  color: var(--xgkh-primary, #13162f);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}

.xgkh-single-faq__items {
  display: grid;
  gap: 12px;
}

.xgkh-single-faq__item {
  padding: 18px 20px;
  background: #fcfcfc;
  border: 1px solid rgba(19, 22, 47, 0.10);
  border-radius: 18px;
  box-shadow: none;
}

.xgkh-single-faq__item h4 {
  margin: 0 0 8px;
  color: var(--xgkh-primary, #13162f);
  font-size: 17px;
  line-height: 1.35;
}

.xgkh-single-faq__item p {
  margin: 0;
  color: #737373;
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .xgkh-single-faq {
    padding: 20px;
    border-radius: 20px;
  }

  .xgkh-single-faq__item {
    padding: 16px;
    border-radius: 16px;
  }
}

.xgkh__filter-group + .xgkh__filter-group {
  margin-top: 14px;
}

.xgkh__filter-label {
  display: block;
  margin: 0 0 8px;
  color: var(--xgkh-text-soft);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.xgkh-single-meta,
.xgkh-summary,
.xgkh-toc,
.xgkh-resources {
  box-sizing: border-box;
  margin: 28px 0;
  background: #ffffff;
  border: 1px solid rgba(19, 22, 47, .10);
  border-radius: 24px;
  box-shadow: none;
}

.xgkh-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 16px 18px;
  color: #737373;
  font-size: 13px;
  line-height: 1.45;
}

.xgkh-single-meta a {
  color: var(--xgkh-primary, #13162f);
  text-decoration: none;
  font-weight: 800;
}

.xgkh-single-meta a:hover {
  color: var(--xgkh-accent, #f9b11c);
  text-decoration: none;
}

.xgkh-single-meta__type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--xgkh-accent, #f9b11c);
  color: #ffffff;
  font-weight: 800;
  line-height: 1;
}

.xgkh-summary {
  padding: clamp(20px, 3vw, 28px);
}

.xgkh-summary h3,
.xgkh-toc strong,
.xgkh-resources h3 {
  display: block;
  margin: 0 0 16px;
  color: var(--xgkh-primary, #13162f);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  font-weight: 800;
}

.xgkh-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.xgkh-summary__item {
  background: #fcfcfc;
  border: 1px solid rgba(19, 22, 47, .10);
  border-radius: 18px;
  padding: 18px;
  box-shadow: none;
}

.xgkh-summary__item strong {
  display: block;
  margin: 0 0 8px;
  color: var(--xgkh-accent, #f9b11c);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.xgkh-summary__item p {
  margin: 0;
  color: #737373;
  line-height: 1.7;
}

.xgkh-toc {
  padding: clamp(18px, 3vw, 24px);
}

.xgkh-toc strong {
  font-size: clamp(20px, 2.4vw, 26px);
}

.xgkh-toc ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.xgkh-toc li {
  margin: 0;
  color: #737373;
}

.xgkh-toc__level-3 {
  margin-left: 18px !important;
  font-size: .95em;
}

.xgkh-toc a {
  color: var(--xgkh-primary, #13162f);
  text-decoration: none;
  font-weight: 700;
}

.xgkh-toc a:hover {
  color: var(--xgkh-accent, #f9b11c);
  text-decoration: none;
}

.xgkh-expert-quote {
  margin: 32px 0;
  padding: clamp(22px, 3vw, 30px);
  border-left: 5px solid var(--xgkh-accent, #f9b11c);
  background: #fcfaf5;
  border-radius: 0 22px 22px 0;
  box-shadow: none;
}

.xgkh-expert-quote p {
  margin: 0;
  color: var(--xgkh-primary, #13162f);
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1.35;
  font-weight: 800;
}

.xgkh-resources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
}

.xgkh-resources__download,
.xgkh-resources__related {
  min-width: 0;
}

.xgkh-resources p {
  margin: 0 0 16px;
  color: #737373;
  line-height: 1.7;
}

.xgkh-resources__links {
  display: grid;
  gap: 10px;
}

.xgkh-resources__links a {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(19, 22, 47, .10);
  border-radius: 12px;
  color: var(--xgkh-primary, #13162f);
  text-decoration: none;
  font-weight: 800;
  background: #fcfcfc;
}

.xgkh-resources__links a:hover {
  border-color: var(--xgkh-accent, #f9b11c);
  color: var(--xgkh-primary, #13162f);
  text-decoration: none;
}

@media (max-width: 767px) {
  .xgkh-single-meta,
  .xgkh-summary,
  .xgkh-toc,
  .xgkh-resources {
    border-radius: 20px;
  }

  .xgkh-summary__grid,
  .xgkh-resources {
    grid-template-columns: 1fr;
  }

  .xgkh-toc__level-3 {
    margin-left: 0 !important;
  }
}

.xgkh.is-loading .xgkh__grid,
.xgkh.is-loading .xgkh__pagination {
  opacity: .55;
  pointer-events: none;
}

.xgkh__status {
  margin: 0 0 16px;
  color: var(--xgkh-text-soft);
  font-size: 14px;
}

.xgkh-card__media {
  display: block;
  margin: -22px -22px 18px;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  background: var(--xgkh-surface-strong);
  aspect-ratio: 16 / 9;
  text-decoration: none;
}

.xgkh-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xgkh-single-hero-image {
  margin: 0 0 26px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(19, 22, 47, .10);
  background: #f7f7f7;
  box-shadow: none;
}

.xgkh-single-hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.xgkh__pagination {
  margin-top: 24px;
}

.xgkh-pagination__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.xgkh-page {
  appearance: none;
  border: 1px solid var(--xgkh-border);
  background: #ffffff;
  color: var(--xgkh-text);
  min-width: 42px;
  min-height: 42px;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.xgkh-page:hover,
.xgkh-page.is-active {
  background: var(--xgkh-primary);
  border-color: var(--xgkh-primary);
  color: #ffffff;
}

@media (max-width: 767px) {
  .xgkh-card__media {
    margin: -18px -18px 16px;
    border-radius: 20px 20px 0 0;
  }

  .xgkh-single-hero-image {
    border-radius: 20px;
  }
}
