/* Erudia redesign — content-страницы (О сервисе, оферта, …) */

body.about-page,
body.content-page {
  background: var(--bg);
}

body.about-page .page-atmosphere__peak,
body.content-page .page-atmosphere__peak {
  opacity: 0.55;
}

body.about-page .page-atmosphere__glow,
body.content-page .page-atmosphere__glow {
  opacity: 0.35;
  height: 42vh;
}

/* ——— Layout ——— */
.about-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-h) + 28px) var(--gutter) 72px;
}

@media (min-width: 1024px) {
  .about-shell {
    grid-template-columns: 180px minmax(0, 720px);
    justify-content: center;
    column-gap: 48px;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 96px;
  }
}

/* ——— TOC ——— */
.about-toc {
  display: none;
}

@media (min-width: 1024px) {
  .about-toc {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 28px);
    align-self: start;
    padding-top: 8px;
  }

  .about-toc__label {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-2);
  }

  .about-toc__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 1px solid var(--line);
    padding-left: 0;
  }

  .about-toc__list a {
    position: relative;
    display: block;
    padding: 7px 0 7px 14px;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s var(--ease);
  }

  .about-toc__list a::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 2px;
    background: transparent;
    transition: background 0.2s var(--ease);
  }

  .about-toc__list a:hover {
    color: var(--ink);
  }

  .about-toc__list a.is-active {
    color: var(--blue);
  }

  .about-toc__list a.is-active::before {
    background: var(--blue);
  }
}

/* ——— Intro ——— */
.about-intro {
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-soft);
}

.about-intro__kicker {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.about-intro h1 {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.about-intro__updated {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
}

.about-intro__lead {
  margin: 0 0 24px;
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
}

.about-intro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

/* ——— Content sections ——— */
.about-content {
  max-width: 70ch;
}

.about-section {
  margin: 0 0 40px;
  padding: 0;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.about-section:last-child {
  margin-bottom: 0;
}

.about-section h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.about-section p {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-section a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s var(--ease);
}

.about-section a:hover {
  color: var(--blue-hover);
}

.about-section a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Steps */
.about-steps {
  margin: 4px 0 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}

.about-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line-soft);
}

.about-steps li:first-child {
  border-top: 0;
}

.about-steps__num {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.about-steps__text {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.about-steps__text a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.about-steps__text a:hover {
  color: var(--blue-hover);
}

/* Limits panel */
.about-limits {
  margin: 4px 0 14px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-wash) 0%, var(--bg) 100%);
}

.about-limits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-list li,
.about-limits li {
  position: relative;
  padding-left: 18px;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.about-list li::before,
.about-limits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
}

.about-limits__note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
}

.about-limits__note strong {
  font-weight: 700;
  color: var(--ink);
}

/* Requisites */
.about-requisites {
  margin: 4px 0 0;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.about-requisites dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  align-items: baseline;
}

.about-requisites dt {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-requisites dd {
  margin: 0;
  font-size: 16.5px;
  color: var(--ink);
  word-break: break-word;
}

.about-requisites a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-requisites a:hover {
  color: var(--blue-hover);
}

@media (max-width: 520px) {
  .about-requisites dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .about-requisites dt {
    margin-top: 8px;
  }

  .about-requisites dt:first-child {
    margin-top: 0;
  }
}

/* Docs list */
.about-docs {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.about-docs li {
  border-top: 1px solid var(--line-soft);
}

.about-docs li:first-child {
  border-top: 0;
}

.about-docs a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.about-docs a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.about-docs a svg {
  flex-shrink: 0;
  color: var(--muted-2);
  transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}

.about-docs a:hover svg {
  color: var(--blue);
  transform: translateX(2px);
}

/* Mobile TOC strip */
.about-toc-mobile {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 28px;
  padding: 0 0 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.about-toc-mobile::-webkit-scrollbar {
  display: none;
}

.about-toc-mobile a {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease);
}

.about-toc-mobile a:hover,
.about-toc-mobile a.is-active {
  border-color: var(--blue-mist);
  background: var(--blue-soft);
  color: var(--blue);
}

@media (min-width: 1024px) {
  .about-toc-mobile {
    display: none;
  }
}

/* Current nav highlight */
.nav-link.is-current {
  color: var(--blue);
}

/* Soft delay for staged reveals */
.about-section.reveal:nth-of-type(2) {
  transition-delay: 0.04s;
}
.about-section.reveal:nth-of-type(3) {
  transition-delay: 0.08s;
}
.about-section.reveal:nth-of-type(4) {
  transition-delay: 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  .about-section.reveal,
  .about-intro.reveal {
    transition-delay: 0s;
  }

  .about-docs a:hover svg {
    transform: none;
  }
}

/* ——— Legal prose extras ——— */
.about-notice {
  margin: 0 0 36px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.about-notice p {
  margin: 0;
}

.about-term {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}

.about-term strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.about-section__follow {
  margin-top: 16px;
}

.about-section--tight {
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  body.content-page .about-shell {
    grid-template-columns: 200px minmax(0, 720px);
  }

  body.content-page .about-toc__list a {
    font-size: 13px;
    padding: 6px 0 6px 14px;
  }
}
