:root{
  --cg-page-bg: #0b0c13;
  --cg-page-surface: rgba(15,18,30,.78);
  --cg-page-border: rgba(255,255,255,.08);
  --cg-page-text: #ffffff;
  --cg-page-text-soft: rgba(255,255,255,.74);
  --cg-page-accent: #8d90ff;
  --cg-page-shadow: 0 18px 38px rgba(0,0,0,.24);
  --cg-page-container: 1100px;
}

html,
body{
  background: var(--cg-page-bg);
}

.cg-page-template{
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(141,144,255,.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(52,199,255,.08), transparent 25%),
    var(--cg-page-bg);
  color: var(--cg-page-text);
}

.cg-page-template__container{
  width: min(calc(100% - 32px), var(--cg-page-container));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.cg-page-template__header{
  margin-bottom: 28px;
}

.cg-page-template__brand{
  margin-bottom: 18px;
}

.cg-page-template__brand-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
}

.cg-page-template__brand-logo{
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

.cg-page-template__brand-manual-logo{
  display: block;
  width: 78%;
  height: 78%;
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
}

.cg-page-template__brand-text{
  color: rgba(255,255,255,.88);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cg-page-template__hero{
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(17,24,46,.88), rgba(12,15,26,.94));
  border: 1px solid var(--cg-page-border);
  box-shadow: var(--cg-page-shadow);
}

.cg-page-template__title{
  margin: 0;
  color: var(--cg-page-text);
  font-size: clamp(32px, 5vw, 58px);
  line-height: .96;
  font-weight: 900;
  letter-spacing: -.05em;
}

.cg-page-template__content-wrap{
  padding: 28px;
  border-radius: 24px;
  background: rgba(12,15,26,.86);
  border: 1px solid var(--cg-page-border);
  box-shadow: var(--cg-page-shadow);
}

.cg-page-template__content{
  color: var(--cg-page-text-soft);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 700;
}

.cg-page-template__content > *:first-child{
  margin-top: 0;
}

.cg-page-template__content > *:last-child{
  margin-bottom: 0;
}

.cg-page-template__content h2,
.cg-page-template__content h3,
.cg-page-template__content h4,
.cg-page-template__content h5,
.cg-page-template__content h6{
  margin: 28px 0 12px;
  color: var(--cg-page-text);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -.03em;
}

.cg-page-template__content h2{ font-size: 32px; }
.cg-page-template__content h3{ font-size: 24px; }
.cg-page-template__content h4{ font-size: 20px; }

.cg-page-template__content p{
  margin: 0 0 16px;
  color: var(--cg-page-text-soft);
}

.cg-page-template__content ul,
.cg-page-template__content ol{
  margin: 0 0 16px 22px;
  padding: 0;
}

.cg-page-template__content li{
  margin-bottom: 8px;
}

.cg-page-template__content strong{
  color: #ffffff;
  font-weight: 900;
}

.cg-page-template__content a{
  color: var(--cg-page-accent);
  text-decoration: none;
  transition: color .18s ease;
}

.cg-page-template__content a:hover,
.cg-page-template__content a:focus{
  color: #ffffff;
  outline: none;
}

.cg-page-template__content blockquote{
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--cg-page-accent);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
}

.cg-page-template__content img{
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 20px 0;
}

.cg-page-template__content table{
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 14px;
}

.cg-page-template__content th,
.cg-page-template__content td{
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  text-align: left;
}

.cg-page-template__content th{
  color: #ffffff;
  background: rgba(255,255,255,.04);
}

@media (max-width: 767px){
  .cg-page-template__container{
    width: min(calc(100% - 20px), var(--cg-page-container));
    padding: 20px 0 30px;
  }

  .cg-page-template__hero,
  .cg-page-template__content-wrap{
    padding: 20px;
    border-radius: 20px;
  }

  .cg-page-template__content{
    font-size: 14px;
  }

  .cg-page-template__content h2{ font-size: 26px; }
  .cg-page-template__content h3{ font-size: 21px; }
  .cg-page-template__content h4{ font-size: 18px; }
}

