/* /iz-beta — клей. Цвета и кнопки живут в ролях и компонентах. */

.izb-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-3);
  padding-block: 0 var(--s-6);
}

.izb-hero.hero {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: var(--s-3);
  width: min(100%, 40rem);
  padding-top: var(--s-4);
  padding-bottom: var(--s-2);
}

.izb-hero .hero__content {
  align-items: center;
  gap: var(--s-2);
}

.izb-hero .hero__sub {
  max-width: 36rem;
  color: var(--fg);
  font-size: var(--t-body-lg);
}

.izb-hero s {
  color: #ff8c00;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #ff8c00;
}

.izb-sheet {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  text-align: center;
}

.izb-lead {
  margin: 0;
}

.izb-lead .izb-num {
  display: block;
  margin-top: calc(var(--s-2) * 0.8);
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  font-size: calc(var(--d-h1) * 0.9);
}

.izb-actions {
  display: flex;
  justify-content: center;
  width: min(100%, 28rem);
}

.izb-actions .btn {
  width: 100%;
}

.izb-actions .btn.is-share {
  flex-direction: column;
  gap: 2px;
  height: auto;
  text-transform: none;
  line-height: 1.15;
  padding-block: var(--s-2);
  background: #ff8c00;
  color: #141414;
  border-color: #ff8c00;
}

.izb-actions .btn.is-share .izb-btn-main {
  font-size: var(--t-body);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.izb-actions .btn.is-share .izb-btn-sub {
  font-size: var(--t-caption);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.izb-share-quiet {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg-2);
  font: inherit;
  font-size: var(--t-caption);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.izb-share-quiet[hidden] {
  display: none;
}

.izb-history {
  width: min(100%, 40rem);
  align-self: center;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-top: var(--s-1);
}

.izb-history-title {
  margin: 0;
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: var(--t-caption);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--fg-3);
}

.izb-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.izb-rel {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: var(--s-4);
  row-gap: var(--s-1);
  align-items: start;
}

.izb-ver {
  font-family: var(--font-display);
  font-size: var(--t-body);
  line-height: var(--lh-tight);
  color: var(--fg-2);
}

.izb-rel-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  min-width: 0;
}

.izb-rel-what {
  color: var(--fg-2);
  font-size: var(--t-caption);
}

.izb-rel-status {
  font-family: var(--font-mono);
  font-size: var(--t-caption);
  letter-spacing: 0.04em;
  color: var(--fg-3);
}

.izb-rel--old .izb-ver,
.izb-rel--old .izb-rel-what,
.izb-rel--old .izb-rel-status {
  color: var(--fg-3);
}

.izb-rel--now .izb-ver,
.izb-rel--now .izb-rel-status {
  color: var(--accent);
}

.izb-rel--now .izb-rel-what {
  color: var(--fg);
}

.izb-rel .izb-num {
  color: var(--accent);
  font-weight: 700;
}

.izb-count.stat-panel {
  width: min(100%, 28rem);
  border: none;
  background: transparent;
  border-radius: 0;
  gap: 0;
}

.izb-count .stat-cell {
  align-items: center;
  text-align: center;
  background: transparent;
  padding: 0;
  gap: var(--s-1);
}

.izb-count .stat-cell__n {
  font-size: calc(var(--d-h2) * 1.9);
  color: #ff8c00;
}

.izb-count .stat-cell__l {
  font-family: var(--font-mono);
  font-size: var(--t-caption);
  letter-spacing: 0.12em;
  color: var(--fg-2);
}

.izb-turnstile {
  min-height: 0;
}

.izb-turnstile:empty {
  display: none;
}

.izb-share-fallback {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
}

.izb-share-fallback[hidden] {
  display: none;
}

.izb-credit,
.izb-note {
  width: min(100%, 40rem);
  align-self: center;
  text-align: left;
  margin: 0;
  font-size: var(--t-caption);
  line-height: var(--lh-body);
  color: var(--fg-3);
}

.izb-privacy {
  margin: 0;
  font-size: var(--t-caption);
  line-height: var(--lh-body);
  color: var(--fg-3);
}

.izb-credit a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.izb-credit a.izb-chat-black {
  color: var(--fg);
}

.izb-status {
  margin: 0;
  font-size: var(--t-caption);
  color: var(--fg-3);
}

.izb-status:empty {
  display: none;
  min-height: 0;
}

@media (max-width: 640px) {
  .izb-page {
    gap: var(--s-2);
    padding-block: 0 var(--s-5);
  }

  .izb-hero.hero {
    padding-top: var(--s-2);
  }

  .izb-rel {
    grid-template-columns: 1fr;
  }
}
