:root {
  --chat-support-hero-blue-dark: #063d69;
  --chat-support-hero-text: #ffffff;
  --chat-support-hero-soft-text: #dcecff;
  --chat-support-hero-accent: #ff8a32;
  --chat-support-hero-accent-hover: #f47519;
  --chat-support-hero-max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

.chat-support-hero {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;

  background-image:
    linear-gradient(
      90deg,
      rgba(1, 53, 91, 0.98) 0%,
      rgba(1, 53, 91, 0.92) 34%,
      rgba(1, 53, 91, 0.56) 58%,
      rgba(1, 53, 91, 0.12) 100%
    ),
    url('https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=2000&q=88');

  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.chat-support-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    radial-gradient(
      circle at 78% 20%,
      rgba(41, 142, 255, 0.18),
      transparent 24%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.06),
      rgba(0, 0, 0, 0.14)
    );
}

.chat-support-hero__container {
  width: min(100% - 40px, var(--chat-support-hero-max-width));
  margin-inline: auto;
  padding: 88px 0;
}

.chat-support-hero__content {
  width: min(690px, 100%);
  color: var(--chat-support-hero-text);

  opacity: 0;
  transform: translateY(18px);

  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.chat-support-hero__content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-support-hero__eyebrow {
  margin: 0 0 16px;

  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;

  color: var(--chat-support-hero-soft-text);
}

.chat-support-hero__title {
  margin: 0;
  max-width: 650px;

  font-size: clamp(3rem, 4.35vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;

  color: #ffffff;
}

.chat-support-hero__title-line {
  display: block;
  width: auto;
  max-width: 100%;

  margin: 0;
  padding: 0;

  background: transparent;
  color: #ffffff;
}

.chat-support-hero__description {
  margin: 20px 0 0;
  max-width: 650px;

  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.35;
  font-weight: 700;

  color: #ffffff;
}

.chat-support-hero__description-line {
  display: block;
  width: auto;
  max-width: 100%;

  margin: 0;
  padding: 0;

  background: transparent;
  color: #ffffff;
}

.chat-support-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;

  margin-top: 34px;
}

.chat-support-hero__button {
  min-height: 52px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 24px;

  border-radius: 10px;

  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.chat-support-hero__button:hover {
  transform: translateY(-2px);
}

.chat-support-hero__button--primary {
  background: var(--chat-support-hero-accent);
  color: #ffffff;
}

.chat-support-hero__button--primary:hover {
  background: var(--chat-support-hero-accent-hover);
}

.chat-support-hero__button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.72);

  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;

  backdrop-filter: blur(6px);
}

.chat-support-hero__button--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
}

.chat-support-hero__button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

@media (max-width: 900px) {

  .chat-support-hero {
    min-height: 570px;
    background-position: 66% center;
  }

  .chat-support-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;

    background: rgba(1, 53, 91, 0.32);
  }

  .chat-support-hero__content {
    width: min(620px, 100%);
  }

  .chat-support-hero__title {
    font-size: clamp(2.8rem, 7vw, 3.8rem);
  }

  .chat-support-hero__description {
    font-size: clamp(1.2rem, 3vw, 1.55rem);
  }
}

@media (max-width: 640px) {

  .chat-support-hero {
    min-height: 610px;
    align-items: flex-end;

    background-position: 70% center;

    background-image:
      linear-gradient(
        180deg,
        rgba(1, 53, 91, 0.34) 0%,
        rgba(1, 53, 91, 0.70) 42%,
        rgba(1, 53, 91, 0.98) 100%
      ),
      url('https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1400&q=88');
  }

  .chat-support-hero__container {
    width: min(100% - 28px, var(--chat-support-hero-max-width));
    padding: 150px 0 44px;
  }

  .chat-support-hero__eyebrow {
    margin-bottom: 12px;
    font-size: 0.78rem;
  }

  .chat-support-hero__title {
    max-width: 100%;

    font-size: clamp(2.35rem, 10.5vw, 3.3rem);
    line-height: 1.06;
  }

  .chat-support-hero__description {
    margin-top: 16px;

    font-size: clamp(1.05rem, 5vw, 1.3rem);
    line-height: 1.4;
  }

  .chat-support-hero__actions {
    margin-top: 26px;
  }

  .chat-support-hero__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  .chat-support-hero__content,
  .chat-support-hero__button {
    transition: none;
  }
}