:root {
  --red: #df251c;
  --red-dark: #cb241d;
  --green: #25d76f;
  --ink: #1f1f1f;
  --body: #4f4f4f;
  --page: #f5f5f5;
  --panel: #ffffff;
  --chat-in: #ededed;
  --chat-out: #ddfac8;
  --shell-width: 850px;
  --shadow: 0 5px 18px rgba(33, 33, 33, 0.08);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  padding-bottom: 112px;
  overflow-x: hidden;
  background: var(--page);
  color: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
p {
  margin-top: 0;
}

figure {
  margin: 0;
}

.brand-header {
  display: flex;
  min-height: 162px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 17px 20px 18px;
  background: var(--red);
  color: #fff;
  text-align: center;
}

.brand-header__play {
  width: 0;
  height: 0;
  margin-bottom: 9px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid #fff;
}

.brand-header__name {
  margin-bottom: 3px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-header__tagline {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.page-shell {
  width: min(var(--shell-width), calc(100% - 38px));
  margin-inline: auto;
  padding-top: 20px;
}

.panel {
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.intro {
  min-height: 172px;
  padding: 26px 48px 24px;
  text-align: center;
}

.intro h1 {
  margin-bottom: 17px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.intro p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.65;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 29px;
}

.visual-card {
  height: 218px;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #e8e8e8;
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-card:nth-child(1) img {
  object-position: 46% center;
}

.visual-card:nth-child(2) img {
  object-position: 52% center;
}

.visual-card:nth-child(3) img {
  object-position: 50% center;
}

.content-card {
  margin-top: 25px;
  padding: 25px 25px 28px;
}

.content-card h2 {
  margin-bottom: 14px;
  color: var(--red-dark);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.task-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 21px;
}

.task-list li {
  padding-left: 1px;
  color: #373737;
  font-size: 16px;
  line-height: 1.75;
}

.faq {
  padding-bottom: 25px;
}

.faq-list {
  display: grid;
  gap: 25px;
}

.faq-item h3 {
  margin: 0 0 1px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.faq-item p {
  margin: 0;
  color: #3f3f3f;
  font-size: 16px;
  line-height: 1.5;
}

.conversation {
  padding-bottom: 25px;
}

.conversation__body {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  border-radius: 11px;
  background: #fafafa;
}

.chat-bubble {
  max-width: 80%;
  margin: 0;
  padding: 10px 11px;
  border-radius: 12px;
  color: #333;
  font-size: 16px;
  line-height: 1.45;
}

.chat-bubble--user {
  align-self: flex-end;
  background: var(--chat-out);
}

.chat-bubble--reply {
  align-self: flex-start;
  background: var(--chat-in);
}

.site-footer {
  width: min(var(--shell-width), calc(100% - 38px));
  margin: 48px auto 31px;
  color: #777;
  font-size: 14px;
  text-align: center;
}

.floating-cta {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 24px;
  left: 0;
  display: grid;
  place-items: center;
  padding-inline: 12px;
  pointer-events: none;
}

.floating-cta__button {
  display: grid;
  width: min(356px, 100%);
  min-height: 49px;
  place-items: center;
  padding: 8px 18px;
  border-radius: 12px;
  background: var(--green);
  box-shadow: 0 8px 22px rgba(37, 215, 111, 0.28);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  pointer-events: auto;
}

.floating-cta__button:focus-visible {
  outline: 3px solid rgba(37, 215, 111, 0.32);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  body {
    padding-bottom: 116px;
  }

  .brand-header {
    min-height: 157px;
    padding-top: 18px;
  }

  .brand-header__play {
    margin-bottom: 10px;
    border-top-width: 11px;
    border-bottom-width: 11px;
    border-left-width: 18px;
  }

  .brand-header__name {
    margin-bottom: 8px;
    font-size: 31px;
    line-height: 1.15;
  }

  .brand-header__tagline {
    font-size: 23px;
    line-height: 1.2;
  }

  .page-shell {
    padding-top: 20px;
  }

  .intro {
    min-height: 322px;
    padding: 27px 25px 24px;
  }

  .intro h1 {
    margin-bottom: 21px;
    font-size: 31px;
    line-height: 1.52;
  }

  .intro p {
    font-size: 17px;
    line-height: 1.7;
  }

  .visual-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .visual-card {
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
  }

  .content-card {
    margin-top: 24px;
    padding: 25px 25px 27px;
  }

  .content-card h2 {
    margin-bottom: 16px;
    font-size: 24px;
  }

  .task-list {
    gap: 8px;
    padding-left: 18px;
  }

  .task-list li {
    padding-left: 1px;
    line-height: 1.55;
  }

  .faq-list {
    gap: 22px;
  }

  .conversation__body {
    min-height: 0;
    padding: 12px;
  }

  .chat-bubble {
    max-width: 90%;
    font-size: 15px;
  }

  .site-footer {
    margin-top: 42px;
  }

  .floating-cta__button {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }
}

@media (max-width: 350px) {
  .brand-header__name {
    font-size: 28px;
  }

  .brand-header__tagline {
    font-size: 20px;
  }

  .intro h1 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
