.are-doc-page {background: #faf9f5;}
.are-doc, .are-recovery {padding-block: clamp(40px, 6vw, 88px);}
.are-doc h1 {
  margin: 0;
  max-width: 21ch;
  font-size: clamp(2.15rem, 5.1vw, 4.7rem);
  line-height: 1.09;
  letter-spacing: -.056em;
  overflow-wrap: anywhere;
}
.are-doc-grid {
  display: grid;
  grid-template-columns: minmax(210px, .65fr) minmax(0, 1.65fr);
  gap: clamp(32px, 7vw, 112px);
  margin-top: clamp(32px, 5vw, 72px);
  border-top: 1px solid #bbc3c7;
  padding-top: clamp(24px, 3.5vw, 48px);
  align-items: start;
}
.are-doc-index {position: sticky; top: 24px;}
.are-doc-index summary {font-weight: 750; cursor: pointer; color: #162d43;}
.are-doc-index ol {list-style: none; counter-reset: contents; padding: 0; margin: 16px 0;}
.are-doc-index li {counter-increment: contents;}
.are-doc-index a {
  display: grid;
  grid-template-columns: 2.4em 1fr;
  padding-block: 9px;
  align-items: baseline;
  color: #3c4a56;
  font-size: .89rem;
  line-height: 1.5;
  text-decoration: none;
}
.are-doc-index a::before {content: counter(contents, decimal-leading-zero); color: #425c70; font: .73rem var(--are-mono);}
.are-doc-index a:hover {color: var(--are-blue); text-decoration: underline;}
.are-doc article {max-width: 68ch; counter-reset: chapter;}
.are-doc article section {counter-increment: chapter; scroll-margin-top: 24px; padding: 0 0 clamp(24px, 4vw, 48px);}
.are-doc article section + section {border-top: 1px solid #d4d8d7; padding-top: clamp(24px, 4vw, 48px);}
.are-doc article h2 {margin-bottom: 16px; font-size: clamp(1.35rem, 2.4vw, 2.05rem); line-height: 1.2; letter-spacing: -.038em;}
.are-doc article h2::before {content: counter(chapter, decimal-leading-zero); display: block; margin-bottom: 12px; color: #28519f; font: 550 .78rem var(--are-mono);}
.are-doc article p, .are-doc address {margin: 0; color: #29394a; font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere;}
.are-doc article p + p, .are-doc address + p {margin-top: 16px;}
.are-doc article .are-doc-company {padding: clamp(22px, 4vw, 44px); border: 0; border-radius: 16px; background: #0b1827; color: #fff;}
.are-doc-company h2, .are-doc .are-doc-company address {color: #fff;}
.are-doc-company address {font-style: normal;}
.are-doc article .are-doc-company h2::before, .are-doc-company a {color: #aecaff;}
.are-doc article .are-doc-company p {border-top: 1px solid #4c5863; padding-top: 16px; color: #ccd6dd;}

.are-recovery-page {background: #ebe8df;}
.are-recovery {min-height: 66vh; display: grid; align-content: center;}
.are-recovery-card {display: grid; grid-template-columns: 1fr 1.08fr; overflow: hidden; border-radius: 20px; background: #0b1827; color: #fff;}
.are-recovery-copy {padding: clamp(28px, 5.3vw, 80px);}
.are-recovery-copy h1 {font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1.06; letter-spacing: -.06em;}
.are-recovery-copy h1, .are-recovery-copy h2 {color: #fff;}
.are-recovery-copy p {margin: 12px 0 20px; color: #d7e0e6;}
.are-recovery-copy .are-recovery-code {margin: 0 0 30px; color: #a9cafb; font: 500 1.2rem var(--are-mono);}
.are-recovery-copy > div + div {margin-top: 32px; padding-top: 24px; border-top: 1px solid #465565;}
.are-recovery-copy [lang="ru"] a {display: inline-flex; align-items: center; min-height: 44px; color: #c5dbff; font-weight: 700;}
.are-recovery-card > img {width: 100%; height: 100%; min-height: 280px; object-fit: cover; object-position: center;}

@media (max-width: 760px) {
  .are-doc-grid {display: block;}
  .are-doc-index {position: static; padding: 12px 16px; margin-bottom: 32px; background: #eeeae0; border-radius: 10px;}
  .are-doc-index summary {padding-block: 6px;}
  .are-doc-index li + li {border-top: 1px solid #d5d3ca;}
  .are-recovery-card {grid-template-columns: 1fr;}
  .are-recovery-card > img {height: auto; aspect-ratio: 2.3; min-height: 0; object-position: center 60%;}
}
