@font-face {
  font-family: Inter;
  src: url("fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-variable.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color: #18242F;
  background: #F7F2EC;
  font: 16px/1.55 Inter, system-ui, sans-serif;
}

body {
  max-width: 460px;
  margin: 0 auto;
  padding: 20px max(16px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

h1, h2, h3 {
  margin-block: 0 10px;
  font: 700 1.75rem/1.12 "Hanken Grotesk", Inter, sans-serif;
}
h1 { font-size: clamp(2rem, 10vw, 3rem); margin-block: 12px 16px; }
h3 { font-size: 1.25rem; }
p { margin-block: 0 12px; }
small { color: #4A5866; }
a { color: #24557D; }
a.back { display: inline-flex; align-items: center; min-height: 44px; }

section {
  padding: 18px;
  margin-block: 12px;
  background: #FFFDFB;
  border: 1px solid rgba(24,36,47,.12);
  border-radius: 24px;
}

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  margin: 4px 0;
  border: 0;
  border-radius: 14px;
  background: #EE7C62;
  color: #18242F;
  font: 700 1rem Inter, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
button:disabled { opacity: .55; cursor: default; }
label { display: flex; gap: 8px; align-items: center; min-height: 44px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: #24557D; }
input[readonly] { box-sizing: border-box; width: 100%; font: inherit; min-height: 44px; }
.sticker-downloads { display: flex; gap: 8px; flex-wrap: wrap; }
.sticker-downloads a { display: inline-flex; min-width: 48px; min-height: 48px; }
#certificateName, #storyPhoto { box-sizing: border-box; width: 100%; min-height: 44px; font: inherit; }
video { display: block; width: 100%; max-height: 68svh; margin: 6px 0 14px; border-radius: 14px; background: #18242F; }
[role=alert] { color: #9A361F; }
[hidden] { display: none !important; }

.marathon-practice { margin-block: 22px; }
.marathon-contraindications {
  padding: 14px;
  border-inline-start: 3px solid #9A361F;
  border-radius: 10px;
  background: #FAEDE6;
}
.marathon-contraindications h4 { margin: 0 0 6px; font-size: 1rem; }
.marathon-contraindications p { margin: 0; }
