* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: #172033;
  background: #f4f7fb;
}

.app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.translator {
  width: min(100%, 560px);
  padding: 28px;
  background: #ffffff;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(23, 32, 51, 0.08);
}

h1 {
  margin: 0 0 20px;
  font-size: 28px;
}

.input-row {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #b9c5d6;
  border-radius: 6px;
  font-size: 16px;
}

button {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: #1668dc;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.status {
  min-height: 20px;
  margin: 12px 0;
  color: #5b6678;
}

.result {
  padding: 16px;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  background: #f8fafc;
}

.result span {
  display: block;
  margin-bottom: 8px;
  color: #5b6678;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.result p {
  margin: 0;
  font-size: 18px;
}

@media (max-width: 520px) {
  .input-row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
