:root {
  --bg: #f6f4ef;
  --ink: #1c1915;
  --muted: #6b645c;
  --line: #e4dfd6;
  --card: #fffdf9;
  --accent: #0f6e56;
  --accent-ink: #f4fbf8;
  --warn: #8a4b12;
  --warn-bg: #f8efe4;
  color: var(--ink);
  background: var(--bg);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); }
code, textarea, input, button, .button, nav, table { font-family: ui-sans-serif, "Segoe UI", sans-serif; }

.top, main { width: min(920px, calc(100% - 32px)); margin: 0 auto; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.mark { color: var(--ink); text-decoration: none; font-size: 22px; }
nav { display: flex; gap: 16px; align-items: center; }
nav a { color: var(--ink); text-decoration: none; }
main { padding-bottom: 72px; }
h1 { font-size: 42px; line-height: 1.15; margin: 0 0 12px; font-weight: 500; }
h2 { font-size: 22px; font-weight: 500; margin: 0 0 8px; }
p { line-height: 1.5; }
.lead { font-size: 19px; max-width: 38rem; }
.eyebrow, .meta, .hint, .note { color: var(--muted); }
.hero { padding: 28px 0 12px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.grid.two { grid-template-columns: 1fr 1fr; }
.card, .note, .flash { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.note { background: transparent; }
.flash { background: var(--warn-bg); color: var(--warn); }
.price { font-size: 22px; margin-bottom: 0; }
.price span, .hint { display: block; font-size: 14px; color: var(--muted); font-family: ui-sans-serif, sans-serif; }
.steps { margin-top: 12px; }
ol { padding-left: 20px; }
li { margin: 8px 0; }

.button, button {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
button.link { background: transparent; color: var(--muted); padding: 0; }
.button.wide { display: block; text-align: center; margin: 12px 0; }
.narrow { max-width: 460px; }
.split, .row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
.grow { flex: 1; }
label { display: grid; gap: 6px; font-family: ui-sans-serif, sans-serif; font-size: 14px; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 15px;
}
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.choice input { width: auto; margin-top: 4px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list a { color: var(--ink); text-decoration: none; display: grid; }
.list.compact code { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; color: var(--muted); }
.telegram { margin-top: 18px; }
.danger { margin-top: 28px; }
.danger button { background: transparent; color: var(--warn); border: 1px solid var(--warn); }
table { width: 100%; border-collapse: collapse; font-family: ui-sans-serif, sans-serif; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
section { margin: 22px 0; }

@media (max-width: 720px) {
  h1 { font-size: 32px; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .list.compact code { max-width: 180px; }
}
