/* Типографика и новые блоки в стилистике сайта Slotozal — только typographyBlock */

/* H1 в шапке (перед nav) — всегда виден */
.headerTitle___typography {
  margin: 0 0 8px;
  padding: 0 12px;
  font-family: Golos UI, Inter, sans-serif;
  font-size: clamp(1rem, 3vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-align: center;
  box-sizing: border-box;
}

/* Блоки типографики до и после игр */
.typographyBlock {
  color: var(--brand-text);
  font-family: Golos UI, Inter, sans-serif;
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.typographyBlock--after {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.typographyBlock h2 {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.25rem, 4vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
}

.typographyBlock h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 3.5vw, 20px);
  font-weight: 700;
  margin: 20px 0 10px;
}

.typographyBlock h4 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 700;
  margin: 18px 0 8px;
}

.typographyBlock h5 {
  color: var(--brand-green);
  font-size: 16px;
  font-weight: 700;
  margin: 16px 0 8px;
}

.typographyBlock h6 {
  color: var(--brand-grey);
  font-size: 14px;
  font-weight: 700;
  margin: 14px 0 6px;
}

.typographyBlock p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.typographyBlock a {
  color: var(--brand-blue);
  text-decoration: none;
}

.typographyBlock a:hover {
  color: var(--brand-green);
  text-decoration: underline;
}

.typographyBlock blockquote {
  margin: 12px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--brand-green);
  background: rgba(45, 216, 144, 0.08);
  border-radius: 0 var(--buttons-border-radius) var(--buttons-border-radius) 0;
  color: var(--brand-text);
  font-style: italic;
}

.typographyBlock ul,
.typographyBlock ol {
  margin: 8px 0 12px;
  padding-left: 24px;
}

.typographyBlock li {
  margin-bottom: 4px;
}

.typographyBlock pre {
  margin: 12px 0;
  padding: 16px;
  background: var(--brand-simple);
  border-radius: var(--buttons-border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--brand-blue);
  font-size: 13px;
  line-height: 1.5;
  overflow-x: auto;
}

.typographyBlock code {
  padding: 2px 6px;
  background: var(--brand-simple);
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--brand-yellow);
}

.typographyBlock kbd {
  padding: 2px 6px;
  background: var(--brand-blue-dark);
  border-radius: 4px;
  font-size: 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.typographyBlock mark {
  background: rgba(45, 216, 144, 0.25);
  color: inherit;
  padding: 0 2px;
}

.typographyBlock hr {
  margin: 20px 0;
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* Таблицы в typographyBlock (таблица без класса, только обёртка .typographyBlock__tableWrap) */
.typographyBlock__tableWrap {
  margin: 16px 0;
  overflow-x: auto;
  border-radius: var(--buttons-border-radius);
  box-shadow: var(--brand-shadow);
  max-width: 100%;
}

.typographyBlock__tableWrap table {
  width: 100%;
  min-width: 280px;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--brand-content-background);
}

.typographyBlock__tableWrap table caption {
  padding: 10px 16px;
  text-align: left;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  background: var(--brand-simple);
  border-radius: var(--buttons-border-radius) var(--buttons-border-radius) 0 0;
  caption-side: top;
}

.typographyBlock__tableWrap table thead {
  background: var(--brand-simple);
}

.typographyBlock__tableWrap table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--brand-green);
  border-bottom: 2px solid rgba(45, 216, 144, 0.4);
}

.typographyBlock__tableWrap table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--brand-text);
}

.typographyBlock__tableWrap table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.typographyBlock__tableWrap table tbody tr:last-child td {
  border-bottom: 0;
}

.typographyBlock img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
