/* AIKraft — раздел обновлений софта */

.upd-hero {
  padding: 44px 0 26px;
  border-bottom: 1px solid var(--border);
}
.upd-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.upd-lead {
  max-width: 720px;
  color: var(--text-2, #4b5563);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 18px;
}
.upd-stats {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-2, #4b5563);
}
.upd-stats b {
  color: var(--text, #111);
  font-weight: 700;
}

.upd-list {
  padding: 26px 0 70px;
}
.rel-rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.rel-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s ease;
}
.rel-row:last-child {
  border-bottom: none;
}
.rel-row:hover {
  background: var(--surface, rgba(127, 127, 127, 0.06));
}
.rel-row.is-major .rel-ver {
  color: var(--accent, #6366f1);
  font-weight: 700;
}
.rel-ver {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  font-weight: 600;
}
.rel-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rel-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
}
.rel-sum {
  font-size: 13px;
  color: var(--text-2, #4b5563);
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.rel-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rel-date {
  font-size: 12.5px;
  color: var(--text-2, #4b5563);
  white-space: nowrap;
}
.rel-badge {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.rel-badge.ours {
  border-color: var(--accent, #6366f1);
  color: var(--accent, #6366f1);
}
.rel-badge.major {
  border-color: #f59e0b;
  color: #b45309;
}

/* --- страница версии --- */
.rel-head {
  padding: 34px 0 20px;
  border-bottom: 1px solid var(--border);
}
.rel-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.rel-ver-big {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.rel-head h1 {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.rel-sum-big {
  color: var(--text-2, #4b5563);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 760px;
}
.rel-body {
  padding: 26px 0 70px;
}
.rel-prose {
  max-width: 820px;
  font-size: 15.5px;
  line-height: 1.72;
}
.rel-prose h2 {
  margin-top: 32px;
}
.rel-ours {
  max-width: 820px;
  margin-top: 40px;
  padding: 22px 24px;
  border: 1px solid var(--accent, #6366f1);
  border-radius: 14px;
  background: var(--surface, transparent);
}
.rel-ours h2 {
  margin: 0 0 6px;
  font-size: 18px;
}
.rel-ours-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-2, #4b5563);
}
.rel-back {
  max-width: 820px;
  margin-top: 26px;
  font-size: 14px;
}
.rel-back a {
  color: var(--accent, #6366f1);
  text-decoration: none;
}
.rel-back a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .rel-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .rel-meta {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* --- блок последней версии на главной --- */
.rel-latest {
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.rel-latest-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  background: var(--bg-elev, transparent);
}
.rel-latest-left {
  min-width: 0;
  flex: 1 1 420px;
}
.rel-latest-kicker {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent, #6366f1);
  margin-bottom: 8px;
}
.rel-latest h2 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.rel-latest h2 a {
  color: inherit;
  text-decoration: none;
}
.rel-latest h2 a:hover {
  color: var(--accent, #6366f1);
}
.rel-latest-sum {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2, #4b5563);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rel-latest-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-2, #4b5563);
}
.rel-latest-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .rel-latest-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
