:root {
  --text: #1b1b1a;
  --muted: #5f5f58;
  --rule: #d9d6cd;
  --link: #1d4173;
  --bg: #fcfbf8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  padding: 0 20px 56px;
  max-width: 680px;
  background: var(--bg);
  color: var(--text);
  font: 16px / 1.55 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--link);
}

h1 {
  margin: 0 0 16px;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 600;
}

h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
}

p {
  margin: 0 0 12px;
}

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 0 18px;
  border-bottom: 2px solid var(--text);
}

.top strong {
  font-weight: 600;
}

.top span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.tel {
  font-size: 18px;
  white-space: nowrap;
  text-decoration: none;
}

.tel:hover {
  text-decoration: underline;
}

section {
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}

.lead {
  padding-top: 30px;
}

.lead p {
  max-width: 62ch;
}

ul.plain,
ol.steps {
  margin: 0 0 12px;
  padding-left: 20px;
}

ul.plain li,
ol.steps li {
  margin-bottom: 5px;
}

ul.plain {
  list-style: square;
}

.note {
  color: var(--muted);
  font-size: 14px;
  max-width: 62ch;
}

.prices {
  width: 100%;
  margin-bottom: 14px;
  border-collapse: collapse;
  font-size: 15px;
}

.prices th,
.prices td {
  padding: 7px 0;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--rule);
  font-weight: normal;
}

.prices tr:first-child th,
.prices tr:first-child td {
  border-top: none;
}

.prices th {
  width: 55%;
  padding-right: 16px;
}

form {
  max-width: 460px;
}

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

label span {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--muted);
}

input[type="text"],
textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #b9b5ab;
  border-radius: 2px;
  background: #fff;
  color: inherit;
  font: inherit;
}

textarea {
  resize: vertical;
}

input[type="text"]:focus,
textarea:focus {
  outline: 2px solid var(--link);
  outline-offset: -1px;
  border-color: var(--link);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

button {
  padding: 9px 20px;
  border: none;
  border-radius: 2px;
  background: var(--text);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

button:hover {
  background: #000;
}

button[disabled] {
  background: #7b7b74;
  cursor: default;
}

.status {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.status.error {
  color: #9c2a12;
}

.status.done {
  color: #1f6b3a;
}

footer {
  padding-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

footer p {
  margin-bottom: 6px;
}

.req {
  font-size: 13px;
}

@media (max-width: 520px) {
  h1 {
    font-size: 22px;
  }

  .prices th {
    width: 50%;
  }
}
