body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-main);
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: var(--stack-m);
}

h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  color: var(--text-soft);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--text-main);
  font-weight: 500;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-sun);
  outline-offset: 3px;
}

main {
  display: flex;
  flex-direction: column;
  flex: 1;
}

section {
  flex: 1 1 auto;
  padding: var(--band-y) 0;
  background: var(--surface-base);
}

main ul,
main ol {
  padding-left: 1.25rem;
}

main li {
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}

th {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text-main);
  width: 36%;
}

td {
  color: var(--text-soft);
}

label {
  display: block;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(226, 232, 240, 0.28);
  border-radius: var(--radius-control);
  background: var(--surface-base);
  color: var(--text-main);
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  margin-top: 0.2rem;
  accent-color: var(--action-primary);
}

s {
  color: var(--text-soft);
}

small {
  font-size: 0.875rem;
}

figure {
  margin: 0;
}

dl {
  display: grid;
  gap: 0.25rem;
}

dt {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text-main);
}

dd {
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

@media (max-width: 767px) {
  body {
    font-size: 1rem;
  }
  th,
  td {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
  }
  th {
    border-bottom: none;
    padding-top: 0.9rem;
  }
}
