*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #0e0e11;
  color: #eaeaf0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}


.container {
  max-width: 720px;
  width: 100%;
  margin: clamp(24px, 10vh, 96px) auto;
  padding: clamp(16px, 4vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}


h1 {
  margin: 0;
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.2;
}

.subtitle {
  font-size: clamp(13px, 3.5vw, 14px);
  color: #9a9aa5;
}


textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  font-size: 16px; /* важно для iOS */
  line-height: 1.4;
  background: #16161b;
  color: #ffffff;
  border: 1px solid #2a2a32;
  border-radius: 12px;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: #4c6ef5;
}


.status {
  font-size: 12px;
  min-height: 16px;
  color: #8b8b97;
}

.status.loading {
  color: #4c6ef5;
}

.status.done {
  color: #51cf66;
}


a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(154, 154, 165, 0.6);
  text-underline-offset: 3px;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

a:hover {
  color: #4c6ef5;
  text-decoration-color: rgba(76, 110, 245, 0.65);
}

a:focus-visible {
  outline: 2px solid #4c6ef5;
  outline-offset: 3px;
  border-radius: 6px;
}


@media (max-width: 480px) {
  h1,
  .subtitle {
    text-align: center;
  }
}
