.hero {
  /* Хром лише з --hero-*-set (Перший екран → Баннер), не з --page-text. */
  --hero-fg: var(--hero-fg-set, #ffffff);
  --hero-fg-muted: var(--hero-fg-muted-set, rgba(255, 255, 255, 0.75));
  --hero-panel-bg: var(--hero-panel-bg-set, rgba(255, 255, 255, 0.1));
  --page-bg: var(--color-dark);
  --page-text: var(--hero-fg);
  --color-ink: #12263a;
  position: relative;
  min-height: calc(100svh - 150px);
  background-color: var(--color-dark);
  color: var(--hero-fg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 180px max(var(--gutter), env(safe-area-inset-right)) 24px max(var(--gutter), env(safe-area-inset-left));
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero--home .hero__bg {
  object-position: 54.098% 50%;
}

.hero--home {
  background-color: var(--color-dark);
  background-image: url("../images/hero.850c35f73e8a.png");
  background-position: 54.098% 50%;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero--home.has-upload {
  background-image: none;
}

.hero--shade::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(11, 22, 38, 0.82) 0%, rgba(11, 22, 38, 0.45) 60%, rgba(11, 22, 38, 0.2) 100%);
  pointer-events: none;
}

.hero__panel {
  position: relative;
  z-index: 2;
  max-width: min(100%, var(--container));
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  border-radius: var(--radius-panel);
  background: var(--hero-panel-bg);
  color: var(--hero-fg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 36px;
}

.hero__crumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1;
  color: var(--hero-fg-muted);
}

.hero__crumbs a {
  color: var(--hero-fg-muted);
  text-decoration: none;
}

.hero__crumbs a:hover {
  color: var(--page-accent, var(--color-gold-light));
}

.hero__crumbs [aria-current="page"] {
  color: var(--page-accent, var(--color-gold-light));
}

.hero__code {
  display: block;
  font-weight: 700;
  font-size: clamp(72px, 9vw, 140px);
  line-height: 1;
  color: var(--page-accent, var(--color-gold-light));
}

.hero__content {
  max-width: 805px;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__title {
  max-width: 100%;
  min-width: 0;
  font-weight: 600;
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.05;
  color: var(--hero-fg);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero--shade .hero__title {
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.08;
}

.hero__text {
  max-width: 694px;
  width: 100%;
  min-width: 0;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--hero-fg);
  overflow-wrap: break-word;
}

.hero--shade .hero__text {
  max-width: 640px;
}

/* About / inner pages — Pro-kompaniyu.dc.html panel metrics */
.hero--shade .hero__panel {
  min-height: 0;
  padding: 28px 20px;
  gap: 24px;
}

.hero--shade .btn-row .btn--light {
  padding: 0 24px;
  border-radius: var(--radius-field);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 205px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-field);
  background: var(--color-white);
  padding: 0 20px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  font-family: inherit;
  color: var(--color-ink);
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero__cta:hover {
  background: var(--color-gold-light);
  color: var(--color-ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.hero__cta:active {
  transform: translateY(0);
  box-shadow: none;
}

/* design: ph = w < 640 */
@media (min-width: 640px) {
  .hero {
    min-height: clamp(490px, calc(64.86vw - 150px), 784px);
    padding: 120px max(var(--gutter), env(safe-area-inset-right)) 50px max(var(--gutter), env(safe-area-inset-left));
  }

  .hero__title {
    font-size: clamp(36px, 4.17vw, 60px);
    line-height: 1;
  }

  .hero--shade .hero__title {
    font-size: clamp(40px, 4.17vw, 60px);
    line-height: 1.05;
  }

  .hero__panel {
    min-height: 371px;
    padding: 40px clamp(20px, 2.78vw, 40px);
    gap: 50px;
  }

  .hero--shade .hero__panel {
    min-height: 0;
    padding: 32px clamp(20px, 2.78vw, 40px);
    gap: 28px;
  }
}
