.tail-bar__doc-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--theme-fg);
  font-size: 14px;
  line-height: 1.3;
}

.tail-bar__doc-menu a:hover {
  color: var(--theme-accent-deep);
}

.tail-bar__entity-row {
  color: var(--theme-fg);
  font-size: 14px;
  line-height: 1.6;
}

.co summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  cursor: pointer;
}

.co summary::marker {
  color: var(--theme-accent);
}

.co summary:hover {
  color: var(--theme-accent-deep);
}

.co p {
  max-width: 62ch;
  margin-top: var(--sp-2);
}

.txt {
  max-width: 680px;
  margin-top: var(--sp-7);
  counter-reset: t;
}

.txt h2 {
  counter-increment: t;
  margin-top: var(--sp-7);
  font: 400 clamp(1.625rem, 1.3rem + 1.3vw, 2rem)/1.2 var(--f-serif);
  letter-spacing: -0.008em;
  color: var(--theme-fg);
  position: relative;
  text-wrap: balance;
}

.txt h2::before {
  content: counter(t, decimal-leading-zero);
  display: block;
  margin-bottom: var(--sp-1);
  font: 400 44px/1 var(--f-serif);
  letter-spacing: -0.02em;
  color: var(--theme-fg-faint);
}

.txt > h2:first-child {
  margin-top: 0;
}

.txt h2 + * {
  margin-top: var(--sp-3);
}

.txt h3 {
  margin-top: var(--sp-6);
  font: 700 18px/1.35 var(--f-sans);
  color: var(--theme-fg);
}

.txt h3 + * {
  margin-top: var(--sp-2);
}

.txt ol {
  padding: 0;
  list-style: none;
  counter-reset: o;
}

.txt ol li {
  position: relative;
  padding-left: 40px;
  counter-increment: o;
}

.txt ol li + li {
  margin-top: 8px;
}

.txt ol li::before {
  content: counter(o) ".";
  position: absolute;
  left: 0;
  top: 0;
  font: 400 21px/1.6 var(--f-serif);
  color: var(--theme-accent);
}

.txt blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 2px 0 2px var(--sp-4);
  border-left: 3px solid var(--theme-accent);
  color: var(--theme-fg-soft);
}

.txt strong {
  color: var(--theme-fg);
}

.req__head {
  padding-top: var(--sp-6);
}

.req__head h1 {
  max-width: 760px;
  font: 400 clamp(1.9rem, 1.3rem + 2.4vw, 3rem)/1.1 var(--f-serif);
  letter-spacing: -0.012em;
  color: var(--theme-fg);
  text-wrap: balance;
}

.req__lead {
  max-width: 680px;
  margin-top: var(--sp-4);
  font-size: 17px;
  line-height: 1.6;
}

.req__lead + .req__lead {
  margin-top: var(--sp-3);
}

.req__grid {
  display: grid;
  gap: var(--sp-7);
  margin-top: var(--sp-6);
}

.is-consultation-step .req__form {
  min-width: 0;
}

.is-consultation-step .frm, .is-consultation-step .done {
  padding: var(--sp-5) 20px var(--sp-6);
  border: 1px solid var(--theme-fg);
  background: var(--theme-bg-alt);
  color: var(--theme-fg);
}

.page .art__head h1, .single .art__head h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
}

.fld {
  margin-bottom: var(--sp-5);
}

.fld label {
  display: block;
  margin-bottom: 6px;
  font: 700 12px/1.4 var(--f-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--theme-fg);
}

.fld .opt {
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--theme-fg-soft);
}

.fld input, .fld textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--theme-fg);
  border-radius: 0;
  background: var(--theme-bg);
  color: var(--theme-fg);
  font: 400 17px/1.4 var(--f-sans);
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}

.fld textarea {
  min-height: 136px;
  resize: vertical;
}

.fld input:focus, .fld textarea:focus {
  border-color: var(--theme-accent);
}

.fld [aria-invalid="true"] {
  border-color: var(--theme-accent);
  box-shadow: inset 4px 0 0 var(--theme-accent);
}

.err {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--theme-accent-deep);
}

.err:empty {
  display: none;
}

.chk {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 0 14px;
  margin: var(--sp-2) 0 var(--sp-5);
}

.chk input {
  width: 26px;
  height: 26px;
  margin: 3px 0 0;
  border: 1px solid var(--theme-fg);
  border-radius: 0;
  background-color: var(--theme-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.chk input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6' fill='none' stroke='%23A44A1F' stroke-width='3.6' stroke-linecap='square'/%3E%3C/svg%3E");
}

.chk input[aria-invalid="true"] {
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 2px var(--theme-accent);
}

.chk label {
  min-height: 32px;
  font-size: 15px;
  line-height: 1.7;
  cursor: pointer;
}

.chk .err {
  grid-column: 2;
}

.frm__msg {
  margin: 0 0 var(--sp-4);
  padding: 10px 14px;
  border-left: 4px solid var(--theme-accent);
  background: var(--theme-bg);
  font-size: 15px;
  line-height: 1.5;
  color: var(--theme-fg);
}

.frm__msg:empty {
  display: none;
}

.frm .btn {
  display: flex;
  width: 100%;
}

.done {
  padding-top: var(--sp-6);
}

.done:focus {
  outline: 2px dashed var(--theme-accent);
  outline-offset: 3px;
}

.done h2 {
  margin-top: var(--sp-3);
  font: 400 clamp(1.625rem, 1.3rem + 1.3vw, 2rem)/1.2 var(--f-serif);
}

.done h2::before {
  content: "";
  display: block;
  width: 56px;
  height: 6px;
  margin-bottom: var(--sp-4);
  background: var(--theme-accent);
}

.done p {
  margin-top: var(--sp-3);
}

.req__note {
  max-width: 560px;
  margin-top: var(--sp-5);
}

.req__note p + p {
  margin-top: var(--sp-2);
}

.mom h2 {
  font: 400 26px/1.2 var(--f-serif);
  color: var(--theme-fg);
}

.mom__list {
  margin-top: var(--sp-4);
  padding: 0;
  list-style: none;
  counter-reset: m;
}

.mom__list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0 var(--sp-2);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--theme-line);
  counter-increment: m;
}

.mom__list li::before {
  content: counter(m, decimal-leading-zero);
  grid-row: 1 / span 2;
  font: 400 44px/1 var(--f-serif);
  letter-spacing: -0.02em;
  color: var(--theme-fg-faint);
}

.mom__list h3 {
  font: 700 17px/1.35 var(--f-sans);
}

.mom__list p {
  margin-top: var(--sp-1);
  font-size: 16px;
  line-height: 1.6;
}

.mom__tip {
  margin-top: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--theme-fg);
  font-size: 16px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .btn, .lnk-ft .arr {
    transition: none;
  }
  .btn.is-busy::after {
    animation-duration: 2.4s;
  }
}

@media (min-width: 600px) {
  .hdr__row {
    padding-top: 28px;
  }
  .hdr__name {
    font-size: 40px;
  }
  .hdr__meta .hdr__tag {
    display: block;
  }
  .art__head, .req__head {
    padding-top: var(--sp-7);
  }
  .intro {
    font-size: 20px;
  }
  .req__lead {
    font-size: 18px;
  }
  .sec {
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-areas: "stamp stamp" "ord ttl" "txt txt";
    align-items: start;
    margin-top: var(--sp-8);
    padding-top: var(--sp-7);
  }
  .sec--first {
    margin-top: var(--sp-8);
  }
  .stamp {
    align-self: start;
    margin-bottom: var(--sp-4);
  }
  .sec h2 {
    margin-top: 0;
    padding-top: 8px;
  }
  .sec__txt {
    margin-top: var(--sp-5);
  }
  .txt h2::before {
    font-size: 52px;
  }
  .end {
    padding: var(--sp-6) var(--sp-6) var(--sp-6);
  }
  .end .btn {
    display: inline-flex;
    width: auto;
  }
  .is-consultation-step .frm, .is-consultation-step .done {
    padding: var(--sp-6) var(--sp-6) var(--sp-6);
  }
  .frm .btn {
    display: inline-flex;
    width: auto;
    min-width: 260px;
  }
  .more__list a {
    font-size: 24px;
  }
}

@media (min-width: 1080px) {
  .intro {
    font-size: 21px;
  }
  .fig--lead {
    width: auto;
    margin-left: 200px;
  }
  .fig--lead .cap {
    max-width: 680px;
  }
  .fig__box {
    box-shadow: 8px 8px 0 var(--theme-accent);
  }
  .sec {
    grid-template-columns: 160px 40px 104px minmax(0, 576px);
    grid-template-areas: "stamp . ord ttl" ". . txt txt";
  }
  .stamp {
    margin: 12px 0 0;
  }
  .sec__txt {
    margin-top: var(--sp-4);
  }
  .txt {
    margin-left: 200px;
  }
  .txt h2::before {
    position: absolute;
    left: -200px;
    top: -4px;
    margin: 0;
    font-size: 56px;
  }
  .more {
    grid-template-columns: 160px 40px minmax(0, 680px);
    align-items: start;
    gap: 0;
  }
  .more h2 {
    grid-column: 1;
    padding-top: 2px;
  }
  .more__list {
    grid-column: 3;
  }
  .tail-bar__in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 var(--sp-7);
    align-items: start;
    padding-top: var(--sp-6);
  }
  .tail-bar__doc-menu {
    gap: 0 var(--sp-6);
  }
  .req__grid {
    grid-template-columns: 560px 340px;
    gap: 0 80px;
    align-items: start;
    margin-top: var(--sp-7);
  }
  .req__lead {
    font-size: 19px;
  }
}
