/**
 * page.css --- стили специфичных для контента блоков, которые не являются
 * отдельными переиспользуемыми blocks/*: таблица характеристик, сетка бонусов,
 * блок Android/iOS, интро секция и т.д.
 */

/* --- Introduction (первый абзац после H1) --- */
.intro {
  padding-block: calc(var(--gap-section) * 0.6) 0;
}

/* --- Характеристики (таблица на главной) --- */
.stats-section {
  padding-block: var(--gap-section);
}

.stats-section__title {
  margin-bottom: var(--gap-h2-text);
}

/* --- Bonus grid (страница /bonus/) --- */
.bonus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-card);
  margin-top: var(--gap-h2-text);
  align-items: stretch;
}

@media (min-width: 480px) {
  .bonus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bonus-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bonus-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.bonus-card__image-wrapper {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.bonus-card__image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain !important;
  display: block;
}

.bonus-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--pad-card);
  flex: 1;
}

.bonus-card__body h3 {
  margin: 0;
  min-height: 2.6em;
}

.bonus-card__body p {
  flex: 1;
}

.bonus-card__cta {
  align-self: flex-start;
  margin-top: 6px;
}

/* --- Android / iOS 2-col block (страница /app/) --- */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-card);
  margin-top: var(--gap-h2-text);
  align-items: stretch;
}

@media (min-width: 768px) {
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.platform-card {
  background: var(--color-bg-dark);
  border-radius: var(--radius-card);
  padding: var(--pad-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.platform-card > a.btn {
  margin-top: auto;
}

.platform-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 767px) {
  .platform-card .data-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  .platform-card .data-table th:first-child,
  .platform-card .data-table td:first-child {
    width: 42%;
  }

  .platform-card .data-table th,
  .platform-card .data-table td {
    word-break: break-word;
    white-space: normal;
    padding: 10px 12px;
  }
}

.platform-card h3 {
  margin: 0;
}

/* --- 18+ notice inline text spacing already in footer.css --- */

/* --- 404 page --- */
.error-page {
  padding-block: calc(var(--gap-section) * 2);
  text-align: center;
}

.error-page__code {
  font-size: clamp(80px, 16vw, 160px);
  font-weight: var(--fw-extrabold);
  color: var(--color-heading-gold);
  line-height: 1;
}

.error-page__title {
  margin-top: 10px;
}

.error-page__text {
  margin: var(--gap-h2-text) auto 0;
  max-width: 560px;
}

.error-page__cta {
  margin-top: var(--gap-h2-text);
}
