:root {
  --teal: #00a7b5;
  --teal-dark: #008a96;
  --teal-text: #00707a;
  --teal-light: #e5f4f7;
  --gold: #ebb700;
  --gold-dark: #8b6d00;
  --gold-light: #fff8e1;
  --coral: #d4603a;
  --coral-dark: #a3432a;
  --coral-light: #fdf0eb;
  --ink: #1e1e1e;
  --body: #53565a;
  --border: #7c7f82;
  --line: #e1e4e6;
  --bg: #f4f7f8;
  --success: #1f6b45;
  --success-light: #eaf5ef;
  --warn: #8b6d00;
  --warn-light: #fff5d6;
  --error: #c4342d;
  --error-light: #fdeceb;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: Lato, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--teal-dark);
}
a:hover {
  color: var(--ink);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.top {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--body);
}
.nav a.on {
  background: var(--teal-light);
  color: var(--teal-dark);
}
.nav a[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}
.who {
  margin-left: auto;
  font-size: 13px;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 24px 140px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sticky-head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: grid;
  grid-template-columns: 260px 1fr 200px;
  gap: 20px;
  align-items: end;
}
.stamp {
  font-size: 13px;
  text-align: right;
  line-height: 1.5;
}
.stamp b {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal-light);
}

.field {
  display: flex;
  flex-direction: column;
  scroll-margin-top: 140px;
  scroll-margin-bottom: 170px;
}
.field[hidden] {
  display: none;
}
.field.missing,
.sub.missing {
  outline: 2px solid var(--error);
  outline-offset: 10px;
  border-radius: 6px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.lbl {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
  padding: 0;
}
.req {
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 700;
}

input[type="text"],
input[type="tel"],
textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  height: 44px;
}
textarea {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.4;
}
input:focus-visible,
textarea:focus-visible,
.opt:has(input:focus-visible),
.check:has(input:focus-visible),
.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.85);
}
input[readonly] {
  background: var(--bg);
  color: var(--body);
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.opt:has(input:checked) {
  background: var(--teal);
  border-color: var(--teal-dark);
  color: var(--ink);
}
.opt.chip {
  border-radius: 999px;
  font-weight: 400;
}
.opt.chip:has(input:checked) {
  background: var(--teal-light);
  border-color: var(--teal-dark);
  color: var(--teal-text);
  font-weight: 700;
}
.opt:hover {
  border-color: var(--teal-dark);
}

.sub {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--teal-light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sub[hidden] {
  display: none;
}
.sub .lbl {
  margin: 0;
}
.sub-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sub-row input[type="text"],
.sub-row textarea {
  flex: 1;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--teal-dark);
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.saved {
  font-size: 13px;
  color: var(--success);
  font-weight: 700;
}
.hint {
  font-size: 13px;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn.primary {
  background: var(--teal);
  color: var(--ink);
}
.btn.primary:hover {
  background: #33b9c4;
}
.btn.secondary {
  background: #fff;
  color: var(--teal-text);
  border-color: var(--teal-dark);
}
.btn.secondary:hover {
  background: var(--teal-light);
}
.btn.big {
  min-height: 52px;
  font-size: 17px;
  padding: 0 28px;
}
.btn.done {
  background: var(--success);
  color: #fff;
}

.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--ink);
  line-height: 1.45;
}
.alert ul {
  margin: 6px 0 0;
  padding-left: 20px;
}
.alert.ok {
  background: var(--success-light);
  border: 1px solid var(--success);
}
.alert.ok b {
  color: var(--success);
}
.alert.warn {
  background: var(--warn-light);
  border: 1px solid var(--warn);
}
.alert.error {
  background: var(--error-light);
  border: 1px solid var(--error);
  flex-direction: column;
  gap: 4px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.note {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  white-space: pre-wrap;
  resize: vertical;
}

.row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 760px) {
  .top {
    padding: 0 16px;
  }
  .nav {
    display: none;
  }
  .wrap {
    padding: 16px 16px 150px;
  }
  .sticky-head {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 16px;
  }
  .stamp {
    text-align: left;
  }
  .section {
    padding: 16px;
  }
  .opt {
    flex: 1 1 auto;
    justify-content: center;
  }
  .sub-row {
    flex-direction: column;
    align-items: stretch;
  }
  .footer {
    padding: 10px 16px;
  }
  .footer .btn {
    width: 100%;
  }
  .hint {
    margin-left: 0;
  }
}

.req[hidden] {
  display: none;
}
.field[data-control="text"] > input,
.field[data-control="phone"] > input {
  max-width: 560px;
}

.wrap.narrow {
  max-width: 520px;
}
.h1 {
  margin: 8px 0 4px;
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  height: 44px;
}
.who {
  display: flex;
  align-items: center;
  gap: 10px;
}
.who .adm {
  background: var(--gold-light);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
form.inline {
  display: inline;
}
.linklike {
  background: none;
  border: 0;
  padding: 8px 4px;
  font: inherit;
  font-size: 13px;
  color: var(--teal-dark);
  text-decoration: underline;
  cursor: pointer;
  min-height: 32px;
}
