/* SPUTNIK — Home (banner + bento grid) */

.home-page {
  padding-bottom: var(--s10);
}

.home-product-map {
  display: grid;
  gap: var(--s5);
  margin-bottom: var(--s8);
  padding: clamp(var(--s5), 4vw, var(--s8));
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--surface);
  box-shadow: none;
}

.home-product-map__head {
  max-width: 48rem;
}

.home-product-map__head h2 {
  margin: var(--s3) 0 var(--s2);
  color: var(--text);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  letter-spacing: -0.035em;
}

.home-product-map__head p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.55;
}

.home-product-map__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s3);
}

.home-product-card {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  min-height: 132px;
  padding: var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--text-2);
  text-decoration: none;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.home-product-card:hover {
  border-color: var(--hover-tile-border);
  background: color-mix(in srgb, var(--surface-2) 88%, var(--accent) 12%);
  box-shadow: var(--hover-tile-shadow);
}

.home-product-card strong {
  color: var(--text);
  font-size: 1rem;
}

.home-product-card span {
  line-height: 1.45;
}

/* ══ Hero banner ══ */

.home-hero {
  position: relative;
  margin-bottom: var(--s8);
  padding: var(--hero-pad-block) var(--hero-pad-inline);
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}

/* Полноширинный баннер 4:1 (ориентир 2200×560) — фон на всю ширину .page-content */
.home-hero--banner.section-hero--full-banner {
  padding: 0;
  border: none;
  box-shadow: none;
  background: none;
  aspect-ratio: var(--home-hero-banner-ratio);
  width: 100%;
  min-height: 0;
  max-height: none;
  height: auto;
  border-radius: var(--r-2xl);
}

.home-hero--banner .section-hero-inner {
  display: block;
  min-height: 0;
  height: 100%;
  padding: var(--s4) var(--hero-pad-inline);
  box-sizing: border-box;
}

.home-hero--banner .home-hero-content {
  max-width: min(36rem, 72%);
}

.home-hero--banner:not(.home-hero--image-only) .home-hero-subtitle {
  max-width: 42ch;
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
  gap: var(--s6);
}

.home-hero-content {
  position: relative;
  z-index: 1;
  justify-self: start;
  text-align: left;
}

.home-hero-eyebrow {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-text);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero-title {
  margin: 6px 0 10px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--text);
}

.home-hero-subtitle {
  margin: 0 0 14px;
  max-width: 52ch;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.home-hero-actions {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}

.home-hero-art {
  position: relative;
  height: 220px;
  color: var(--accent);
}

.home-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.75;
}

.home-hero-blob--1 {
  width: 180px; height: 180px;
  right: 10%; top: 0;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}

.home-hero-blob--2 {
  width: 120px; height: 120px;
  right: 45%; bottom: -10%;
  background: color-mix(in srgb, var(--green) 55%, transparent);
}

.home-hero-blob--3 {
  width: 90px; height: 90px;
  right: 5%; bottom: 10%;
  background: color-mix(in srgb, var(--yellow) 50%, transparent);
}

.home-hero-grid {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 220px;
  height: 220px;
  color: var(--text-3);
  opacity: 0.4;
}

/* ══ Главная: рекламная сетка (2×2 под hero) ══ */

.home-promo-grid {
  --home-promo-ad-h: var(--banner-tile-h);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
  margin-top: var(--s4);
  margin-bottom: var(--s6);
}

.home-promo-ad {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s2);
  padding: var(--s4);
  border-radius: var(--r-xl);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  background: var(--surface-2);
}

.home-promo-ad:not(.home-promo-ad--with-image):not(.home-promo-ad--image-only) {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.home-promo-ad--with-image:not(.home-promo-ad--image-only) {
  position: relative;
  gap: 6px;
  height: var(--home-promo-ad-h);
  min-height: var(--home-promo-ad-h);
  max-height: var(--home-promo-ad-h);
  color: #fff;
}

.home-promo-ad--with-image:not(.home-promo-ad--image-only) .home-promo-ad-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  width: 100%;
  height: 100%;
}

.home-promo-ad--with-image:not(.home-promo-ad--image-only) .home-promo-ad-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.home-promo-ad--with-image:not(.home-promo-ad--image-only)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.98;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(8, 10, 18, 0.88) 0%,
    rgba(8, 10, 18, 0.34) 58%,
    rgba(8, 10, 18, 0.72) 100%
  );
}

.home-promo-ad--with-image:not(.home-promo-ad--image-only) > :not(.home-promo-ad-media) {
  position: relative;
  z-index: 2;
}

.home-promo-ad--with-image:not(.home-promo-ad--image-only) .home-promo-ad-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.home-promo-ad--with-image:not(.home-promo-ad--image-only) .home-promo-ad-subtitle {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.home-promo-ad--image-only {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.home-promo-ad--image-only .home-promo-ad-media {
  margin: 0;
  width: 100%;
}

.home-promo-ad--image-only .home-promo-ad-media img {
  display: block;
  width: 100%;
  height: var(--home-promo-ad-h);
  max-height: var(--home-promo-ad-h);
  object-fit: cover;
  object-position: center;
  border-radius: var(--r-xl);
}

.home-promo-ad:hover {
  color: var(--text);
}

.home-promo-ad:not(.home-promo-ad--with-image):not(.home-promo-ad--image-only):hover {
  border-color: var(--hover-tile-border);
  box-shadow: var(--hover-tile-shadow);
}

.home-promo-ad--image-only:hover {
  border-color: transparent;
  box-shadow: none;
}

.home-promo-ad-badge {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.home-promo-ad--with-image:not(.home-promo-ad--image-only) .home-promo-ad-badge {
  color: rgba(255, 255, 255, 0.72);
}

.home-promo-ad-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
  max-width: 22rem;
}

.home-promo-ad--with-image:not(.home-promo-ad--image-only) .home-promo-ad-title {
  color: #fff;
}

.home-promo-ad-subtitle {
  max-width: 24rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--text-2);
}

.home-promo-ad--with-image:not(.home-promo-ad--image-only) .home-promo-ad-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.home-promo-ad-cta {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--accent-text);
}

.home-promo-ad--with-image:not(.home-promo-ad--image-only) .home-promo-ad-cta {
  color: #fff;
}

.home-promo-ad--with-image:not(.home-promo-ad--image-only):hover {
  color: #fff;
}

/* ══ Bento grid ══ */

.home-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: var(--s5);
}

.bento-card {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 0;
}

.bento-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--divider);
}

.bento-head .btn-sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.8125rem;
}

.bento-eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-3);
}

.bento-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--text);
}

.bento-meta {
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 600;
}

.bento-body {
  padding: var(--s4);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  min-height: 0;
}

.bento-body--centered {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bento-scroll {
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.bento-empty {
  padding: var(--s5);
  border: 1px dashed var(--border);
  border-radius: var(--r-xl);
  color: var(--text-2);
  text-align: center;
  background: var(--surface-2);
  font-size: 0.875rem;
}

.bento-muted {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.bento-inline-form {
  position: relative;
}

.bento-inline-form[open] > summary {
  margin-bottom: var(--s2);
}

.bento-inline-form summary {
  list-style: none;
  cursor: pointer;
}

.bento-inline-form summary::-webkit-details-marker {
  display: none;
}

.bento-form {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 15;
  width: 340px;
  max-width: min(92vw, 340px);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

.bento-form .form-row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--s3);
}

.inline-check {
  display: inline-flex;
  gap: var(--s2);
  align-items: center;
  color: var(--text-2);
  font-size: 0.875rem;
}

.inline-form {
  display: inline;
}

/* Row 2: News + Rates */
.home-bento--row2 {
  margin-top: var(--s5);
}

/* ══ News block ══ */

.news-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.news-item--pinned {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border) 55%);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface) 94%);
}

.news-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s3);
}

.news-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pin-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  display: inline-block;
}

.news-item-date {
  color: var(--text-3);
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.news-item-body {
  margin: 0;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.5;
  word-break: break-word;
}

.news-item-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-3);
  font-size: 0.75rem;
}

.news-item-author { font-weight: 600; }

.btn-danger-ghost {
  color: var(--red);
}

.btn-danger-ghost:hover {
  background: var(--red-bg);
}

/* ══ Rates block ══ */

.rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s3);
}

.rate-card {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rate-card-ticker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent);
}

.rate-card-name {
  font-size: 0.75rem;
  color: var(--text-2);
  margin-bottom: var(--s2);
}

.rate-card-values {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rate-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.rate-value--muted {
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.8125rem;
}

.rate-value-amount { font-size: 0.95rem; }
.rate-value--muted .rate-value-amount { font-size: 0.82rem; }

.rate-value-unit {
  color: var(--text-3);
  font-weight: 500;
}

.converter-form {
  border-top: 1px dashed var(--divider);
  padding-top: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.converter-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 0.9fr) auto;
  gap: var(--s3);
  align-items: end;
}

.converter-row .btn {
  min-height: 38px;
  padding-inline: 14px;
}

.converter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.converter-result {
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: var(--accent-light);
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ══ Главная: блок «Ссылки» (компоненты linkhub.css) ══ */

.home-linkhub-preview {
  margin-top: var(--s7);
  padding: 0;
  background: transparent;
}

.home-linkhub-preview .linkhub-category-carousel {
  display: flex;
  align-items: stretch;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.home-linkhub-preview .linkhub-category-tile--pinned {
  flex: 0 0 auto;
  width: clamp(168px, 18vw, 220px);
}

.home-linkhub-preview .linkhub-category-strip--carousel {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--s3);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: var(--s2);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home-linkhub-preview .linkhub-category-strip--carousel::-webkit-scrollbar {
  display: none;
}

.home-linkhub-preview .linkhub-category-strip--carousel .linkhub-category-tile {
  flex: 0 0 auto;
  width: clamp(168px, 18vw, 220px);
  scroll-snap-align: start;
}

.home-linkhub-preview .linkhub-category-tile:hover {
  transform: none;
}

.home-linkhub-preview .linkhub-category-tile--add {
  border-color: color-mix(in srgb, var(--green) 45%, var(--border));
  background: color-mix(in srgb, var(--green) 8%, var(--surface));
}

.home-linkhub-preview .linkhub-category-tile--add:hover {
  border-color: color-mix(in srgb, var(--green) 55%, var(--border));
  background: color-mix(in srgb, var(--green) 14%, var(--surface));
}

.home-linkhub-preview .linkhub-category-icon--add {
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 28%, transparent);
}

.home-linkhub-preview .linkhub-category-tile--add .linkhub-category-count {
  color: var(--green);
  font-weight: 850;
}

.home-linkhub-layout .linkhub-main {
  width: 100%;
}

.home-links-empty {
  margin: 0 0 var(--s4);
  font-size: 0.9rem;
  color: var(--text-2);
}

.home-guest-welcome {
  margin: var(--s5) 0 var(--s6);
  padding: var(--s6) var(--s5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.home-guest-welcome__inner {
  max-width: var(--content-max-prose);
}

.home-guest-welcome__title {
  margin: 0 0 var(--s3);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.home-guest-welcome__lead {
  margin: 0 0 var(--s4);
  color: var(--text-2);
  line-height: 1.55;
}

.home-guest-welcome__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s4);
}

.home-guest-welcome__auth {
  margin: 0;
  font-size: 0.9rem;
}

.home-guest-welcome__auth a {
  color: var(--accent-text);
  text-decoration: none;
}

.home-guest-welcome__auth a:hover {
  text-decoration: underline;
}

.workspace-rates-panel .section-head {
  margin-bottom: var(--s4);
}

.workspace-onboarding {
  margin: var(--s5) 0 var(--s6);
  padding: var(--s5) var(--s6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.workspace-onboarding-title {
  margin: 0 0 var(--s2);
  font-size: 1.125rem;
}

.workspace-onboarding-lead {
  margin: 0 0 var(--s3);
  color: var(--text-2);
}

.workspace-onboarding-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text);
  line-height: 1.6;
}

.workspace-onboarding-steps a {
  color: var(--accent-text);
  text-decoration: none;
}

.workspace-onboarding-steps a:hover {
  text-decoration: underline;
}

.workspace-dashboard {
  display: grid;
  gap: var(--s4);
  margin: var(--s5) 0 var(--s6);
}

.workspace-dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s4);
}

.workspace-dashboard-kicker {
  margin: 0 0 4px;
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-dashboard-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.15;
}

.workspace-dashboard-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--s2);
}

.workspace-dashboard-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.8125rem;
}

.workspace-dashboard-stats strong {
  color: var(--text);
  font-size: 1rem;
}

.workspace-attention-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
}

.workspace-attention-card {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.workspace-attention-card:hover {
  border-color: var(--hover-tile-border);
  box-shadow: var(--hover-tile-shadow);
}

.workspace-attention-card strong {
  font-size: 0.95rem;
  line-height: 1.25;
}

.workspace-attention-card span {
  color: var(--text-2);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.workspace-attention-card--danger {
  border-color: color-mix(in srgb, var(--red) 42%, var(--border));
  background: color-mix(in srgb, var(--red) 9%, var(--surface));
}

.workspace-attention-card--warn {
  border-color: color-mix(in srgb, var(--yellow) 42%, var(--border));
  background: color-mix(in srgb, var(--yellow) 9%, var(--surface));
}

.workspace-attention-card--ok {
  border-color: color-mix(in srgb, var(--green) 36%, var(--border));
  background: color-mix(in srgb, var(--green) 8%, var(--surface));
}

.workspace-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
}

.workspace-dashboard-panel {
  min-width: 0;
  padding: var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.workspace-dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s3);
}

.workspace-dashboard-panel-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.workspace-dashboard-panel-head a,
.workspace-dashboard-panel-head span {
  color: var(--text-2);
  font-size: 0.8125rem;
  text-decoration: none;
}

.workspace-dashboard-panel-head a:hover {
  color: var(--accent-text);
}

.workspace-dashboard-list {
  display: grid;
  gap: var(--s2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.workspace-dashboard-list li {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.workspace-dashboard-list a {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-dashboard-list a:hover {
  color: var(--accent-text);
}

/* ── Top blocks on homepage ── */

.home-top-block {
  margin-bottom: var(--s8);
  padding: clamp(var(--s5), 3vw, var(--s7));
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--surface);
}

.home-top-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.home-top-block__title {
  margin: 0 0 var(--s1);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.home-top-block__sub {
  margin: 0;
  font-size: 0.92rem;
}

.home-top-links-grid,
.home-top-listings-grid,
.home-top-jobs-grid {
  display: grid;
  gap: var(--s2);
}

.home-top-link-card,
.home-top-listing-card,
.home-top-job-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s2) var(--s3);
  align-items: baseline;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.home-top-link-card:hover,
.home-top-listing-card:hover,
.home-top-job-card:hover {
  border-color: var(--hover-tile-border);
  background: color-mix(in srgb, var(--surface-2) 88%, var(--accent) 12%);
}

.home-top-link-card__rank,
.home-top-listing-card__rank,
.home-top-job-card__rank {
  font-weight: 700;
  color: var(--accent);
}

.home-top-link-card__title,
.home-top-listing-card__title,
.home-top-job-card__title {
  grid-column: 2;
  font-weight: 650;
  color: var(--text);
}

.home-top-link-card__meta,
.home-top-listing-card__meta,
.home-top-job-card__meta {
  grid-column: 2;
  font-size: 0.85rem;
  color: var(--text-2);
}

.home-placement-cta {
  margin-bottom: var(--s8);
}

.home-placement-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.home-placement-cta__title {
  margin: 0 0 var(--s1);
  font-size: 1.1rem;
}

.home-placement-page {
  display: grid;
  gap: var(--s5);
  padding-bottom: var(--s8);
}

.home-placement-head .home-page-title {
  margin: 0 0 var(--s2);
}

.home-placement-slots {
  display: grid;
  gap: var(--s4);
}

@media (min-width: 720px) {
  .home-placement-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-placement-slot {
  display: grid;
  gap: var(--s3);
  padding: var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}

.home-placement-slot__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  align-items: baseline;
}

.home-placement-slot__pos {
  font-weight: 700;
  color: var(--accent);
}

.home-placement-bid-form {
  display: grid;
  gap: var(--s2);
}

.linkhub-page-head {
  margin-bottom: var(--s5);
}

.linkhub-page-title {
  margin: 0 0 var(--s2);
}

.linkhub-page-sub {
  margin: 0;
}

.linkhub-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s5);
}

.workspace-dashboard-meta,
.workspace-dashboard-empty {
  color: var(--text-2);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.workspace-dashboard-meta--danger {
  color: var(--red);
}

.workspace-dashboard-empty {
  margin: 0;
}

@media (max-width: 1100px) {
  .workspace-attention-grid,
  .workspace-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .workspace-dashboard-head {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-dashboard-stats {
    justify-content: flex-start;
  }

  .workspace-attention-grid,
  .workspace-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Top blocks on homepage ── */

.home-top-block {
  margin-bottom: var(--s8);
  padding: clamp(var(--s5), 3vw, var(--s7));
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--surface);
}

.home-top-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.home-top-block__title {
  margin: 0 0 var(--s1);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.home-top-block__sub {
  margin: 0;
  font-size: 0.92rem;
}

.home-top-links-grid,
.home-top-listings-grid,
.home-top-jobs-grid {
  display: grid;
  gap: var(--s2);
}

.home-top-link-card,
.home-top-listing-card,
.home-top-job-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s2) var(--s3);
  align-items: baseline;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.home-top-link-card:hover,
.home-top-listing-card:hover,
.home-top-job-card:hover {
  border-color: var(--hover-tile-border);
  background: color-mix(in srgb, var(--surface-2) 88%, var(--accent) 12%);
}

.home-top-link-card__rank,
.home-top-listing-card__rank,
.home-top-job-card__rank {
  font-weight: 700;
  color: var(--accent);
}

.home-top-link-card__title,
.home-top-listing-card__title,
.home-top-job-card__title {
  grid-column: 2;
  font-weight: 650;
  color: var(--text);
}

.home-top-link-card__meta,
.home-top-listing-card__meta,
.home-top-job-card__meta {
  grid-column: 2;
  font-size: 0.85rem;
  color: var(--text-2);
}

.home-placement-cta {
  margin-bottom: var(--s8);
}

.home-placement-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.home-placement-cta__title {
  margin: 0 0 var(--s1);
  font-size: 1.1rem;
}

.home-placement-page {
  display: grid;
  gap: var(--s5);
  padding-bottom: var(--s8);
}

.home-placement-head .home-page-title {
  margin: 0 0 var(--s2);
}

.home-placement-slots {
  display: grid;
  gap: var(--s4);
}

@media (min-width: 720px) {
  .home-placement-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-placement-slot {
  display: grid;
  gap: var(--s3);
  padding: var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}

.home-placement-slot__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  align-items: baseline;
}

.home-placement-slot__pos {
  font-weight: 700;
  color: var(--accent);
}

.home-placement-bid-form {
  display: grid;
  gap: var(--s2);
}

.linkhub-page-head {
  margin-bottom: var(--s5);
}

.linkhub-page-title {
  margin: 0 0 var(--s2);
}

.linkhub-page-sub {
  margin: 0;
}

.linkhub-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s5);
}
