* {
  box-sizing: border-box;
}
:root {
  font:
    16px/1.5 "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #142e23;
  background: #f8faf6;
  --ink: #163c2a;
  --line: #cbd8c9;
  --muted: #4e6557;
}
body {
  margin: 0;
}
header,
main,
footer {
  max-width: 1160px;
  margin: auto;
  padding: 0 36px;
}
header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 780;
  letter-spacing: -1.3px;
  text-decoration: none;
}
.brand i {
  width: 24px;
  height: 24px;
  border: 6px solid #2f7548;
  border-top-color: #a6d859;
  border-radius: 50%;
}
nav,
footer,
.row {
  display: flex;
  gap: 16px;
  align-items: center;
}
a,
.link {
  color: var(--ink);
  text-underline-offset: 4px;
}
nav a,
.link {
  font-weight: 550;
  font-size: 14px;
}
button {
  cursor: pointer;
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  padding: 11px 18px;
  font: inherit;
  font-weight: 620;
  border-radius: 8px;
}
button:hover {
  background: #285b3e;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.link,
.secondary {
  background: transparent;
  color: var(--ink);
}
.link {
  border: 0;
  text-decoration: underline;
  padding: 4px;
}
.link:hover,
.secondary:hover {
  background: #e8efdf;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #417f46;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.hero {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 6%;
  align-items: center;
  padding: 56px 0;
}
h1,
h2,
h3,
p {
  margin: 0 0 16px;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(36px, 5vw, 68px);
  max-width: 750px;
}
h1 span {
  color: #70a041;
}
h2 {
  font-size: 32px;
}
h3 {
  font-size: 22px;
}
p,
small {
  color: var(--muted);
}
.hero p {
  max-width: 510px;
  margin-bottom: 24px;
}
.hero aside {
  position: relative;
  overflow: hidden;
  padding: 32px;
  background: #dcebcf;
  border-radius: 22px;
  min-height: 230px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  flex-direction: column;
}
.hero aside strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}
.hero aside p {
  max-width: 280px;
  margin: 6px 0;
  color: #354d3b;
}
.pulse {
  width: 60px;
  height: 60px;
  border: 1px solid #79a36e;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  box-shadow:
    0 0 0 14px #cddfc0,
    0 0 0 15px #aec8a3;
}
.pulse i {
  width: 12px;
  height: 12px;
  background: #428251;
  border-radius: 50%;
}
label {
  display: block;
  font-weight: 620;
  margin: 8px 0;
}
.check {
  font-weight: 450;
}
.check input {
  width: auto;
  margin-right: 6px;
}
input {
  font: inherit;
  border: 1px solid #9bae9e;
  border-radius: 8px;
  background: white;
  padding: 11px 14px;
  min-width: 0;
  width: 100%;
}
.row {
  align-items: stretch;
  gap: 8px;
}
#search {
  max-width: 720px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 22px 0;
}
.card {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.card.fast {
  border-color: #83a875;
  background: #e6f0dc;
}
.card b {
  font-size: 30px;
  letter-spacing: -0.04em;
}
.card small {
  margin-bottom: 18px;
}
.card p {
  margin-bottom: 6px;
}
.card button {
  margin-top: 16px;
}
.record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.record strong,
.record small {
  display: block;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.record button {
  font-size: 14px;
  padding: 8px 11px;
}
#watches,
#results:not(:empty),
#codeBox {
  margin-top: 20px;
}
.status:not(:empty) {
  position: sticky;
  bottom: 12px;
  z-index: 2;
  background: #163c2a;
  color: white;
  border-radius: 9px;
  padding: 12px 18px;
  margin: 8px 0;
}
.status.error {
  background: #873a30;
}
footer {
  padding-top: 24px;
  padding-bottom: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}
footer span {
  font-weight: 700;
  margin-right: auto;
}
.document {
  max-width: 830px;
  margin: 32px auto;
}
.document h1 {
  font-size: 40px;
}
.document h2 {
  font-size: 24px;
  margin-top: 24px;
}
@media (max-width: 780px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero aside {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  header,
  main,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero {
    padding: 36px 0;
  }
  header {
    height: 63px;
  }
  .record {
    flex-wrap: wrap;
  }
  .card {
    padding: 16px 12px;
  }
}
@media (max-width: 400px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .row {
    flex-wrap: wrap;
  }
  .row input {
    flex: 1 1 155px;
  }
}
