@layer components {
  .th-mpc {
    container-type: inline-size;
    container-name: th-mpc;
  }

  .th-mpc__header {
    margin-bottom: var(--space-3xl);
  }

  .th-mpc__carousel {
    position: relative;
  }

  .th-mpc__viewport {
    overflow: hidden;
    border-radius: var(--radius-l);
  }

  .th-mpc__track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }

  .th-mpc__slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }

  .th-mpc__slide-image {
    position: relative;
    overflow: hidden;
    background: var(--gray-l-2);
  }

  .th-mpc__slide-img {
    width: 100%;
    height: 100%;
    min-height: 46rem;
    object-fit: cover;
    display: block;
  }

  .th-mpc__slide-num {
    position: absolute;
    bottom: var(--space-l);
    left: var(--space-l);
    font-size: 8rem;
    font-weight: var(--weight-bold);
    color: var(--light-10);
    line-height: 1;
    letter-spacing: -0.04em;
    pointer-events: none;
    user-select: none;
  }

  .th-mpc__slide-badge {
    position: absolute;
    top: var(--space-m);
    left: var(--space-m);
    display: inline-flex;
    align-items: center;
    gap: var(--space-3xs);
    padding: var(--space-3xs) var(--space-s);
    background: var(--primary);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--text-body);
    letter-spacing: 0.02em;
  }

  .th-mpc__slide-badge .icon {
    width: 1.3rem;
    height: 1.3rem;
  }

  .th-mpc__slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-s);
    padding: var(--space-2xl) var(--space-3xl);
    background: var(--bg-body);
  }

  .th-mpc__slide-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .th-mpc__slide-title {
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    color: var(--text-title);
    line-height: 1.15;
    letter-spacing: -0.015em;
  }

  .th-mpc__slide-text {
    font-size: var(--text-m);
    color: var(--text-body);
    line-height: 1.7;
    max-width: 46rem;
  }

  .th-mpc__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-m);
    margin-top: var(--space-l);
  }

  .th-mpc__stat {
    display: flex;
    align-items: center;
    gap: var(--space-s);
  }

  .th-mpc__stat-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: var(--radius-m);
    flex-shrink: 0;
  }

  .th-mpc__stat-icon .icon {
    width: 1.8rem;
    height: 1.8rem;
    color: var(--text-body);
  }

  .th-mpc__stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
  }

  .th-mpc__stat-value {
    font-size: var(--text-ml);
    font-weight: var(--weight-semibold);
    color: var(--text-title);
    letter-spacing: -0.01em;
    line-height: 1.2;
  }

  .th-mpc__stat-label {
    font-size: var(--text-xs);
    color: var(--text-body);
    opacity: 0.7;
  }

  .th-mpc__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-xl);
  }

  .th-mpc__arrow {
    width: 4.4rem;
    height: 4.4rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-primary);
    background: transparent;
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
  }

  .th-mpc__arrow .icon {
    width: 1.8rem;
    height: 1.8rem;
  }

  .th-mpc__arrow:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--text-body);
  }

  .th-mpc__arrow:disabled {
    opacity: 0.25;
    cursor: default;
  }

  .th-mpc__nav-center {
    display: flex;
    align-items: center;
    gap: var(--space-l);
  }

  .th-mpc__counter {
    display: flex;
    align-items: baseline;
    gap: var(--space-3xs);
  }

  .th-mpc__counter-current {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--primary);
    letter-spacing: -0.02em;
    min-width: 2.8rem;
  }

  .th-mpc__counter-sep {
    font-size: var(--text-s);
    color: var(--text-body);
    opacity: 0.3;
  }

  .th-mpc__counter-total {
    font-size: var(--text-s);
    color: var(--text-body);
    opacity: 0.45;
  }

  .th-mpc__dots {
    display: flex;
    gap: var(--space-2xs);
  }

  .th-mpc__dot {
    width: 2.8rem;
    height: 3px;
    border: none;
    border-radius: 2px;
    background: var(--border-primary);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, width 0.3s ease;
  }

  .th-mpc__dot:hover {
    background: var(--text-body);
  }

  .th-mpc__dot--active {
    background: var(--primary);
    width: 4.4rem;
  }

  @container th-mpc (max-width: 968px) {
    .th-mpc__slide-content { padding: var(--space-xl) var(--space-2xl); }
    .th-mpc__slide-img     { min-height: 40rem; }
    .th-mpc__slide-title   { font-size: var(--text-xl); }
    .th-mpc__slide-num     { font-size: 6rem; }
  }

  @container th-mpc (max-width: 768px) {
    .th-mpc__slide          { grid-template-columns: 1fr; }
    .th-mpc__slide-img      { min-height: 26rem; }
    .th-mpc__slide-content  { padding: var(--space-xl); }
    .th-mpc__slide-title    { font-size: var(--text-xl); }
    .th-mpc__slide-num      { font-size: 5rem; }
    .th-mpc__stats          { gap: var(--space-s); }
  }

  @container th-mpc (max-width: 640px) {
    .th-mpc__nav-center      { gap: var(--space-m); }
    .th-mpc__counter-current { font-size: var(--text-l); }
    .th-mpc__dot             { width: 2rem; }
    .th-mpc__dot--active     { width: 3.2rem; }
  }

  @container th-mpc (max-width: 480px) {
    .th-mpc__slide-img      { min-height: 20rem; }
    .th-mpc__slide-content  { padding: var(--space-l); }
    .th-mpc__slide-title    { font-size: var(--text-l); }
    .th-mpc__slide-text     { font-size: var(--text-s); }
    .th-mpc__stats {
      grid-template-columns: 1fr;
      gap: var(--space-s);
    }
    .th-mpc__stat-icon {
      width: 3.4rem;
      height: 3.4rem;
    }
    .th-mpc__stat-icon .icon {
      width: 1.6rem;
      height: 1.6rem;
    }
    .th-mpc__stat-value { font-size: var(--text-m); }
    .th-mpc__arrow {
      width: 3.6rem;
      height: 3.6rem;
    }
    .th-mpc__arrow .icon {
      width: 1.6rem;
      height: 1.6rem;
    }
    .th-mpc__slide-num { font-size: 4rem; }
    .th-mpc__nav       { padding-top: var(--space-l); }
  }
}
