@font-face {
  font-family: "MainFont";
  src: url("../fonts/cg/PFDinTextCondPro-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ChtoGdeKogda_Regular";
  src: url("../fonts/cg/2023/ChtoGdeKogda_Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --frame-gold: #e4a563;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.78);
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "MainFont", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(14px, 2.5vw, 28px);
  display: grid;
  gap: clamp(14px, 2.4vw, 26px);
}

.cg-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background-color: #0b0f10;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.cg-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.10) 40%,
    rgba(0, 0, 0, 0.22) 100%
  );
  pointer-events: none;
}

.cg-card__content {
  position: absolute;
  inset: 0;
  padding: clamp(16px, 3.5vw, 40px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  z-index: 1;
}

.cg-card__content--single {
  padding: clamp(14px, 2.8vw, 34px);
  align-content: center;
}

.cg-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.cg-top {
  position: absolute;
  left: 0;
  top: 26%;
  width: 100%;
  transform: translateY(-90%);
  display: grid;
  justify-items: center;
  gap: clamp(6px, 1.2vw, 14px);
  text-align: center;
}

.cg-authorName {
  font-size: clamp(18px, 2.35vw, 44px);
  line-height: 1.05;
  color: var(--text);
}

.cg-city {
  font-size: clamp(16px, 2vw, 34px);
  line-height: 1.05;
  color: var(--frame-gold);
}

.cg-authorJob {
  font-size: clamp(18px, 2.15vw, 40px);
  line-height: 1.05;
  color: var(--text);
}

.cg-bottom {
  position: absolute;
  left: 50%;
  top: 64%;
  width: min(860px, 78%);
  transform: translate(-50%, 10%);
  display: grid;
  justify-items: center;
  text-align: center;
}

.cg-divider {
  width: 62%;
  max-width: 520px;
  height: 0;
  border: 0;
  border-top: 10px solid var(--frame-gold);
  margin: 0 0 clamp(10px, 1.8vw, 18px);
  opacity: 0.95;
  visibility: hidden;
}

.cg-question--compact {
  margin: 0;
  text-wrap: pretty;
}

.cg-answerLabel--compact {
  margin-top: clamp(10px, 1.7vw, 16px);
}

.cg-answer--compact {
  margin-top: clamp(6px, 1vw, 10px);
  text-wrap: pretty;
}

.cg-kicker {
  font-family: "ChtoGdeKogda_Regular", "MainFont", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(12px, 1.6vw, 18px);
  color: var(--muted);
  margin-bottom: clamp(8px, 1.4vw, 14px);
}

.cg-meta {
  display: grid;
  gap: clamp(8px, 1.4vw, 14px);
  max-width: 70%;
}

.cg-field {
  display: grid;
  gap: 6px;
}

.cg-field--tight {
  gap: 4px;
}

.cg-label {
  font-size: clamp(12px, 1.5vw, 16px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--frame-gold);
}

.cg-value {
  font-size: clamp(20px, 2.6vw, 46px);
  line-height: 1.05;
}

.cg-value--small {
  font-size: clamp(16px, 2.1vw, 34px);
  line-height: 1.05;
}

.cg-qa {
  width: min(860px, 86%);
  display: grid;
  gap: clamp(10px, 1.8vw, 18px);
}

.cg-question {
  font-size: clamp(18px, 2.25vw, 40px);
  line-height: 1.12;
  color: var(--text);
}

.cg-question--compact {
  font-size: clamp(16px, 1.9vw, 22px);
  line-height: 1.12;
}

.cg-answerLabel {
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--frame-gold);
  margin-top: clamp(8px, 1.8vw, 16px);
}

.cg-answerLabel--compact {
  font-size: clamp(14px, 1.7vw, 28px);
  margin-top: clamp(6px, 1.2vw, 12px);
}

.cg-answer {
  font-size: clamp(18px, 2.15vw, 38px);
  line-height: 1.12;
  color: var(--text);
  width: 75%;
  margin-left: auto;
  margin-right: auto;
}

.cg-answer--compact {
  font-size: clamp(16px, 1.85vw, 22px);
  line-height: 1.12;
}

.cg-single {
  width: min(980px, 92%);
  display: grid;
  gap: clamp(10px, 1.8vw, 18px);
}

.cg-single__meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(10px, 2vw, 18px);
  justify-items: center;
}

.cg-single__qa {
  width: min(860px, 92%);
  margin: 0 auto;
  display: grid;
  gap: clamp(8px, 1.3vw, 14px);
}

.cg-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.2;
}

@media (max-width: 520px) {
  .cg-meta {
    max-width: 92%;
  }

  .cg-qa {
    width: 92%;
  }

  .cg-single__meta {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .cg-single__qa {
    width: 94%;
  }

  .cg-top {
    top: 18%;
    gap: 8px;
  }

  .cg-bottom {
    top: auto;
    bottom: 6%;
    width: 75%;
    transform: translate(-50%, 100%);

  }

  .cg-divider {
    width: 72%;
    border-top-width: 8px;
  }

  .cg-answer {
    width: 100%;
  }

  .cg-authorName {
    font-size: clamp(16px, 4.4vw, 22px);
  }

  .cg-city {
    font-size: clamp(14px, 4vw, 20px);
  }

  .cg-authorJob {
    font-size: clamp(16px, 4.2vw, 22px);
  }

  .cg-question--compact {
    font-size: clamp(11px, 3.6vw, 9px);
    line-height: 1.1;
  }

  .cg-answer--compact {
    font-size: clamp(10px, 3.4vw, 10px);
    line-height: 1.1;
  }

  .cg-answerLabel--compact {
    font-size: clamp(6px, 3.3vw, 6px);
    margin-top: clamp(2px, 1.2vw, 2px);
  }
}
