:root {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  color: #191919;
  background: #b8b8b8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #b8b8b8;
}

.wrap {
  width: min(760px, calc(100% - 24px));
  margin: 24px auto 50px;
}

.card {
  background: #d6d6d6;
  border: 1px solid #9a9a9a;
  padding: 18px;
  margin-bottom: 16px;
}

label,
.section-title,
summary {
  font-weight: 700;
}

label {
  display: block;
  margin-bottom: 8px;
}

textarea,
select,
button,
.button-link {
  width: 100%;
  min-height: 50px;
  font: inherit;
}

textarea,
select {
  background: #f1f1f1;
  border: 1px solid #777;
  padding: 12px;
  margin-bottom: 18px;
}

textarea {
  resize: vertical;
  line-height: 1.35;
}

button,
.button-link {
  border: 1px solid #555;
  background: #eeeeee;
  color: #111;
  font-weight: 700;
  cursor: pointer;
  padding: 13px 16px;
  text-align: center;
  text-decoration: none;
  display: block;
}

button:hover,
.button-link:hover {
  background: #ffffff;
}

.place,
.meta,
.note {
  color: #505050;
  margin-bottom: 18px;
}

.question {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.verdict {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 24px 0 8px;
}

.section-title {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

ul {
  padding-left: 24px;
  margin-bottom: 0;
}

li {
  margin-bottom: 10px;
  line-height: 1.4;
}

.help p {
  margin: 8px 0;
}

summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.history-item {
  display: block;
  color: #111;
  text-decoration: none;
  border-top: 1px solid #aaa;
  padding: 12px 0;
}

.history-item:first-of-type {
  border-top: 0;
}

.history-item span,
.history-item small {
  display: block;
}

.history-item small {
  color: #555;
  margin-top: 5px;
  font-size: 0.85rem;
}

.plain-link {
  display: inline-block;
  margin-top: 10px;
  color: #111;
}

.actions {
  display: grid;
  gap: 12px;
}

.error {
  background: #ececec;
  border: 2px solid #555;
  padding: 14px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  :root {
    font-size: 18px;
  }

  .wrap {
    width: calc(100% - 16px);
    margin-top: 8px;
  }

  .card {
    padding: 14px;
    margin-bottom: 10px;
  }

  .verdict {
    font-size: 1.45rem;
  }
}

.fixed {
  font-weight: 700;
  margin-top: 12px;
  color: #303030;
}


.mode-help {
  margin: -8px 0 18px;
  color: #4a4a4a;
  line-height: 1.4;
}

.mode-help div {
  margin: 5px 0;
}
