@layer components {
  .af-hero {
    container-type: inline-size;
    container-name: af-hero;
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid var(--border-primary);
  }

  .af-hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .af-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
    font-size: var(--text-xs);
    margin-bottom: var(--space-2xl);
  }

  .af-hero__breadcrumb-link {
    color: var(--text-body);
    opacity: 0.6;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }

  .af-hero__breadcrumb-link:hover {
    opacity: 1;
  }

  .af-hero__breadcrumb-sep {
    color: var(--text-body);
    opacity: 0.35;
  }

  .af-hero__breadcrumb-current {
    color: var(--text-body);
    font-weight: var(--weight-medium);
  }

  .af-hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-l);
    max-width: 72rem;
  }

  .af-hero__title {
    font-size: var(--text-4xl);
    font-weight: var(--weight-semibold);
    color: var(--text-title);
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  .af-hero__subtitle {
    font-size: var(--text-ml);
    color: var(--text-body);
    line-height: 1.65;
    max-width: 56rem;
    opacity: 0.85;
  }

  .af-hero__trust {
    display: flex;
    align-items: center;
    gap: var(--space-l);
    margin-top: var(--space-s);
  }

  .af-hero__trust-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    font-size: var(--text-s);
    font-weight: var(--weight-medium);
    color: var(--text-body);
  }

  .af-hero__trust-item .icon {
    width: 1.6rem;
    height: 1.6rem;
    color: var(--primary);
    flex-shrink: 0;
  }

  .af-hero__trust-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-body);
    opacity: 0.25;
    flex-shrink: 0;
  }

  @container af-hero (max-width: 768px) {
    .af-hero__title {
      font-size: var(--text-3xl);
    }

    .af-hero__subtitle {
      font-size: var(--text-m);
    }

    .af-hero__trust {
      gap: var(--space-m);
    }
  }

  @container af-hero (max-width: 640px) {
    .af-hero__trust {
      flex-wrap: wrap;
      justify-content: center;
      gap: var(--space-s);
    }

    .af-hero__trust-dot {
      display: none;
    }
  }

  @container af-hero (max-width: 480px) {
    .af-hero {
      padding-top: var(--space-4xl);
    }

    .af-hero__title {
      font-size: var(--text-2xl);
    }

    .af-hero__title br {
      display: none;
    }

    .af-hero__content {
      gap: var(--space-m);
    }

    .af-hero__trust {
      flex-direction: column;
      gap: var(--space-xs);
    }
  }
}
