.s3 {
  container-type: inline-size;
  container-name: s3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background-color: #ffe600;
  border-radius: 20px;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

@media (min-width: 768px) {
  .s3 {
    display: grid;
    align-items: stretch;
    height: 712px;
  }

  .s3__image-wrap {
    grid-column: 1 / span 6;
    grid-row: 1;
  }

  .s3__content {
    grid-column: 7 / -1;
    grid-row: 1;
  }
}

.s3__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #ffe600;
  border-radius: 12px;
  box-sizing: border-box;
  width: 100%;
  padding: 16px;
  gap: 24px;
}

@container s3 (min-width: 768px) {
  .s3__content {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 100%;
    padding: 32px;
    gap: 32px;
  }
}

.s3__text-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

@container s3 (min-width: 768px) {
  .s3__text-area {
    flex: 1;
    min-height: 0;
  }
}

.s3__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  height: 40px;
  padding: 0 16px;
  background-color: #434ce4;
  border-radius: 12px;
  color: #ffffff;
  font-family: 'Inter', -apple-system, 'Roboto', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0;
  font-feature-settings: "case" 1;
  text-decoration: none;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

@container s3 (min-width: 768px) {
  .s3__cta {
    height: 48px;
    padding: 0 24px;
  }
}

.s3__cta:hover { background-color: #3640cc; }
.s3__cta:active { background-color: #2e38b3; transform: scale(0.98); }
.s3__cta:focus-visible { outline: 2px solid #434ce4; outline-offset: 2px; }

.s3__title {
  font-family: 'Proxima Nova A', -apple-system, 'Roboto', Arial, sans-serif;
  font-feature-settings: "salt" 1, "calt" 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.28px;
  color: #282834;
  width: 100%;
  margin: 0;
}

@container s3 (min-width: 768px) {
  .s3__title {
    font-size: 72px;
    letter-spacing: -2.88px;
  }
}

.s3__image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  height: 328px;
  flex-shrink: 0;
}

@container s3 (min-width: 768px) {
  .s3__image-wrap {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 100%;
  }
}

.s3__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}
