* {
  font-family: system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.3;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  min-width: 320px;
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding: 16px;
}

ol {
  list-style: none;
}

.title,
.expectancy {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 12px;
  text-align: center;
}

.form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
  max-width: 500px;
  width: 100%;
}

.group {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.label {
  text-align: center;
  width: 100%;
}

.sex {
  display: flex;
  gap: 4px;
}

.age {
  min-width: 50px;
}

.country {
  height: 23px;
  padding: 0 6px;
  width: 130px;
}

.country option {
  padding: 6px 4px;
  min-height: 60px;
}

.radio {
  align-items: center;
  display: flex;
  gap: 4px;
}

.description {
  font-size: 10px;
  margin-bottom: 12px;
  text-align: center;
}

.link {
  font-size: 10px;
  text-decoration: none;
}

.container {
  display: grid;
  grid-template-columns: auto 1fr;
}

.weeks {
  display: flex;
  grid-column: 2;
  justify-content: space-between;
}

.years {
  display: flex;
  flex-direction: column;
  gap: 15px;
  grid-row: 2;
}

.year {
  padding-right: 4px;
  text-align: right;
  line-height: 1;
}

.table {
  display: grid;
  gap: 2px;
  grid-column: 2;
  grid-template-columns: repeat(52, 1fr);
}

.cell {
  background: #e0e0e0;
  border-radius: 2px;
  height: 4px;
  width: 4px;
}

.cell.lived {
  background-color: #777;
}

.footer {
  margin-top: auto;
  padding-top: 12px;
  width: 100%;
}

.version {
  color: lightgray;
  text-align: right;
}
