* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17202a;
  background: #f4f6f8;
}

.shell {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero {
  padding: 28px 0 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  color: #ffffff;
  background: #1f7a5f;
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 16px 0 10px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
}

h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

p {
  max-width: 760px;
  margin: 0;
  color: #4f5b66;
  line-height: 1.7;
}

.panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d8e1e8;
  border-radius: 8px;
  background: #ffffff;
}

.quick-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.quick-card {
  min-height: 74px;
  padding: 10px;
  border: 1px solid #cad6df;
  border-radius: 8px;
  background: #f9fbfc;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.quick-card b,
.quick-card small {
  display: block;
}

.quick-card small {
  margin-top: 6px;
  color: #66727d;
  line-height: 1.35;
}

.ask-box {
  display: grid;
  gap: 10px;
}

textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 12px;
  border: 1px solid #bdc9d4;
  border-radius: 8px;
  font: inherit;
  line-height: 1.5;
}

button[type="submit"] {
  justify-self: start;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #1f5f8f;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.answer {
  min-height: 160px;
  white-space: pre-wrap;
  padding: 14px;
  border-radius: 8px;
  background: #f2f7f9;
  line-height: 1.65;
}

.rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rules span {
  padding: 7px 10px;
  border-radius: 6px;
  background: #eef4f1;
  color: #285747;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .quick-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .quick-list {
    grid-template-columns: 1fr;
  }
}
