.hero-home--round20 {
  margin-top: 0;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.hero-card--search {
  display: grid;
  gap: 14px;
}

.home-hero-actions,
.home-side-actions,
.home-hero-tags,
.home-side-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-hero-primary,
.home-side-actions .primary-button,
.home-side-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-dark);
  font-weight: 800;
}

.hero-ghost-link:hover {
  border-color: var(--accent-3);
  background: #f6fcfb;
}

.home-hero-tags {
  align-items: center;
  row-gap: 8px;
}

.home-hero-tags__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.home-hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.home-hero-tag:hover {
  border-color: var(--accent-3);
  color: var(--accent-dark);
}

.home-hero-aside {
  display: grid;
  gap: 16px;
}

.home-hero-sidecard {
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f4fbf9);
  box-shadow: var(--shadow);
}

.home-side-eyebrow {
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-hero-sidecard h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.home-hero-sidecard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.home-side-points {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
}

.home-side-points span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.home-side-points span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 8px;
}

.home-side-actions {
  margin-top: 18px;
}

.home-hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-kpi-card {
  padding: 16px 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.home-kpi-card strong {
  display: block;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.home-kpi-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-home--round20 + .section {
  margin-top: 18px;
}

@media (max-width: 1180px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .home-hero-grid {
    gap: 14px;
  }

  .home-hero-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-hero-sidecard {
    padding: 18px;
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .hero-card--search {
    gap: 10px;
  }

  .home-hero-grid {
    gap: 10px;
  }

  .home-hero-aside {
    gap: 10px;
  }

  .home-hero-actions,
  .home-side-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-hero-actions .secondary-button,
  .home-hero-actions .hero-ghost-link,
  .home-side-actions .primary-button,
  .home-side-actions .secondary-button {
    width: 100%;
    justify-content: center;
  }

  .home-hero-tags {
    align-items: flex-start;
    gap: 8px;
  }

  .home-hero-tags__label {
    width: 100%;
  }

  .home-hero-tag {
    padding: 8px 10px;
    font-size: 13px;
  }

  .home-hero-sidecard {
    padding: 16px 14px;
    border-radius: 20px;
  }

  .home-hero-sidecard h2 {
    font-size: 22px;
  }

  .home-hero-sidecard p {
    font-size: 15px;
  }

  .home-side-points {
    gap: 8px;
    margin-top: 12px;
  }

  .home-side-points span {
    font-size: 14px;
  }

  .home-side-actions {
    margin-top: 12px;
  }

  .home-hero-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .home-kpi-card {
    padding: 10px 10px;
    border-radius: 16px;
    box-shadow: none;
  }

  .home-kpi-card strong {
    font-size: 16px;
  }

  .home-kpi-card span {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.15;
  }
}

@media (max-width: 420px) {
  .home-hero-grid {
    gap: 8px;
  }

  .home-hero-sidecard {
    padding: 14px 12px;
  }

  .home-hero-sidecard h2 {
    font-size: 20px;
  }

  .home-hero-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .home-kpi-card {
    padding: 9px 8px;
    border-radius: 15px;
  }

  .home-kpi-card strong {
    font-size: 15px;
  }

  .home-kpi-card span {
    font-size: 10px;
  }
}

/* mobile_header_nav_compact_v3 */

@media (max-width: 640px) {
  .hero-home--round20 {
    margin-top: -2px;
  }

  .home-hero-grid {
    gap: 8px;
  }

  .hero-card--search,
  .home-hero-sidecard {
    border-radius: 18px;
  }

  .home-hero-actions {
    gap: 6px;
  }

  .home-hero-kpis {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .home-kpi-card {
    min-height: 0;
    padding: 8px 8px !important;
    border-radius: 14px !important;
    box-shadow: none;
  }

  .home-kpi-card strong {
    font-size: 15px !important;
  }

  .home-kpi-card span {
    margin-top: 2px !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  .section.section-categories {
    margin-top: 10px;
  }

  .section-head--tight {
    margin-bottom: 8px;
  }
}

@media (max-width: 420px) {
  .home-hero-grid {
    gap: 7px;
  }

  .home-hero-sidecard {
    padding: 12px 12px;
  }

  .home-side-points {
    gap: 6px;
    margin-top: 10px;
  }

  .home-side-points span {
    font-size: 13px;
  }

  .home-side-actions {
    margin-top: 10px;
    gap: 6px;
  }

  .home-hero-kpis {
    gap: 5px !important;
  }

  .home-kpi-card {
    padding: 7px 7px !important;
  }

  .home-kpi-card strong {
    font-size: 14px !important;
  }

  .home-kpi-card span {
    font-size: 9px !important;
  }
}
