@layer components {
  .ka-hero {
    container-type: inline-size;
    container-name: ka-hero;
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--space-6xl);
    padding-bottom: var(--space-3xl);
  }

  .ka-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .ka-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .ka-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      oklch(0.06 0.01 60 / 0.66) 0%,
      oklch(0.14 0.005 60 / 0.39) 100%
    );
  }

  .ka-hero__container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: calc(55vh - var(--space-6xl) - var(--space-3xl));
  }

  .ka-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
    font-size: var(--text-xs);
    color: var(--always-light);
    opacity: 0.7;
    margin-bottom: var(--space-2xl);
    letter-spacing: 0.03em;
  }

  .ka-hero__breadcrumb-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }

  .ka-hero__breadcrumb-link:hover {
    opacity: 1;
  }

  .ka-hero__breadcrumb-sep {
    opacity: 0.5;
  }

  .ka-hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-l);
    margin-bottom: var(--space-4xl);
  }

  .ka-hero__title {
    font-size: var(--text-4xl);
    font-weight: var(--weight-semibold);
    color: var(--always-light);
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 80rem;
  }

  .ka-hero__subtitle {
    font-size: var(--text-ml);
    color: var(--always-light);
    opacity: 0.85;
    line-height: 1.6;
    max-width: 58rem;
  }

  .ka-hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: auto;
  }

  .ka-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3xs);
  }

  .ka-hero__stat-value {
    font-family: var(--font-primary);
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .ka-hero__stat-label {
    font-size: var(--text-xs);
    color: var(--always-light);
    opacity: 0.75;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: var(--weight-medium);
  }

  .ka-hero__stat-divider {
    width: 1px;
    height: 3.6rem;
    background: var(--always-light);
    opacity: 0.18;
    flex-shrink: 0;
  }

  @container ka-hero (max-width: 768px) {
    .ka-hero {
      min-height: 48vh;
      padding-top: var(--space-5xl);
    }

    .ka-hero__title {
      font-size: var(--text-3xl);
    }

    .ka-hero__subtitle {
      font-size: var(--text-m);
    }

    .ka-hero__content {
      margin-bottom: var(--space-3xl);
    }

    .ka-hero__stats {
      gap: var(--space-l);
    }

    .ka-hero__stat-value {
      font-size: var(--text-l);
    }
  }

  @container ka-hero (max-width: 480px) {
    .ka-hero {
      min-height: 44vh;
      padding-top: var(--space-4xl);
    }

    .ka-hero__title {
      font-size: var(--text-2xl);
    }

    .ka-hero__title br {
      display: none;
    }

    .ka-hero__stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--space-l) var(--space-m);
      justify-items: center;
    }

    .ka-hero__stat-divider {
      display: none;
    }
  }
}
