:root {
  --orange: #f28a18;
  --black: #111111;
  --white: #ffffff;
  --bubble-bg: #f7f7f7;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--white);
}

body {
  background: #1a1830;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-image: url('assets/background.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 18, 50, 0.52) 0%,
    rgba(43, 18, 50, 0.30) 36%,
    rgba(63, 23, 56, 0.42) 70%,
    rgba(244, 126, 18, 0.78) 100%
  );
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 0 110px;
}

.intro-card {
  position: relative;
  width: min(860px, 100%);
  margin: 0 auto clamp(42px, 7vw, 88px);
}

.intro-card__bubble {
  position: relative;
  min-height: 126px;
  background: var(--bubble-bg);
  color: #191919;
  border: 3px solid #141414;
  border-radius: 36px;
  padding: 26px 210px 26px 42px;
  box-shadow: var(--shadow);
}

.intro-card__bubble p {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.6;
  word-break: break-word;
}

.intro-card__avatar {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(120px, 16vw, 192px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #101010;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
}

.intro-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-fallback {
  display: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}

.intro-card__avatar.avatar-placeholder .avatar-fallback {
  display: inline-block;
}

.hero__center {
  text-align: center;
}

.hero__center h1 {
  margin: 0 0 30px;
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--white);
  background: var(--orange);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 20px);
  border: 2px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.action-btn__icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--black);
  color: var(--orange);
  font-size: 15px;
  line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.action-btn:hover,
.action-btn:focus-visible {
  background: var(--black);
  outline: none;
  transform: translateY(-2px);
}

.action-btn:hover .action-btn__icon,
.action-btn:focus-visible .action-btn__icon {
  background: var(--orange);
  color: var(--black);
}

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  background: #e97d17;
  padding: 16px 12px;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .hero__content {
    justify-content: flex-start;
    padding-top: 24px;
  }

  .intro-card {
    margin-bottom: 34px;
  }

  .intro-card__bubble {
    padding: 22px 28px 120px;
    border-radius: 28px;
  }

  .intro-card__avatar {
    right: 50%;
    top: auto;
    bottom: -40px;
    transform: translateX(50%);
    width: 132px;
  }

  .hero__center h1 {
    margin-top: 42px;
  }

  .action-btn {
    min-width: 170px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 20px, 1000px);
  }

  .hero__content {
    padding-bottom: 90px;
  }

  .intro-card__bubble {
    min-height: 150px;
    padding: 18px 18px 110px;
    border-width: 2px;
  }

  .intro-card__avatar {
    width: 116px;
    bottom: -34px;
  }

  .hero__center h1 {
    font-size: 30px;
    margin-bottom: 24px;
  }

  .actions {
    gap: 14px;
  }

  .action-btn {
    width: min(100%, 320px);
    min-width: 0;
    padding: 12px 18px;
    font-size: 17px;
  }

  .footer {
    font-size: 12px;
  }
}
