/* =========================================================
   Страница «Об авторе»
   ========================================================= */

.about { display: flex; flex-direction: column; gap: var(--gap); }


/* Общие мелочи (повторяют компоненты главной) */
.dir__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-m); }
.dir__icon--crypto { background: rgba(0, 149, 250, .14); color: var(--primary); }
.dir__icon--music { background: rgba(0, 149, 250, .10); color: var(--blue-600); }
.dir__icon--life { background: rgba(71, 203, 146, .14); color: var(--green); }
.dir__links { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 4px; } /* ссылки сразу под текстом, без провала */
.dir__links .btn--link { font-size: calc(14px * var(--fs-s, 1)); line-height: 20px; min-height: 24px; }
.hero__socials { display: flex; gap: 12px; }
.ab-muted { color: var(--gray-500); }
.ab-eyebrow { font-size: calc(14px * var(--fs-s, 1)); line-height: 20px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--tertiary-content); }

/* ---------- Знакомство ---------- */
.ab-hero { display: grid; grid-template-columns: 380px minmax(0, 1fr); background: var(--gray-1700); }
.ab-hero__photo { position: relative; display: block; min-height: 100%; }
.ab-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ab-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--gray-1700)); pointer-events: none; }
:root[data-theme="light"] .ab-hero__photo::after { display: none; }
.ab-hero__body { display: flex; flex-direction: column; gap: 10px; padding: 36px 40px 36px 28px; }
.ab-hero__title { font-size: 44px; line-height: 52px; font-weight: 700; }
.ab-hero__latin { margin-top: -6px; font-size: 20px; line-height: 28px; color: var(--blue-600); }
.ab-hero__role { font-size: calc(18px * var(--fs-h, 1)); line-height: 26px; font-weight: 500; color: var(--gray-300); }
.ab-hero__lead { max-width: 68ch; color: var(--gray-300); font-size: calc(17px * var(--fs-s, 1)); line-height: 28px; }
.ab-hero__note { font-size: calc(14px * var(--fs-s, 1)); line-height: 20px; color: var(--gray-500); }
.ab-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 10px 0 6px; }
.ab-facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; padding: 0 16px; border-left: 1px solid var(--gray-1100); }
.ab-facts > div:first-child { padding-left: 0; border-left: 0; }
.ab-facts dd { margin: 0; font-size: 26px; line-height: 32px; font-weight: 700; }
.ab-facts dt { font-size: calc(13px * var(--fs-s, 1)); line-height: 18px; color: var(--gray-500); }
.ab-hero__actions { display: flex; align-items: center; justify-content: flex-start; gap: 20px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Блоки ---------- */
.ab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.ab-block { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px; }
.ab-block p, .ab-block li { color: var(--gray-400); font-size: calc(15px * var(--fs-s, 1)); line-height: 24px; }
.ab-block__title { font-size: calc(21px * var(--fs-h, 1)); line-height: 30px; font-weight: 600; color: var(--text-light); }
.ab-block--book { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; align-items: start; }
.ab-block--book > div { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.ab-block__cover { width: 100%; height: auto; border-radius: 4px 8px 8px 4px; box-shadow: 0 18px 36px rgba(0, 0, 0, .5); }
.ab-list { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; list-style: disc; }
.ab-list li::marker { color: var(--blue-600); }

/* Принципы */
.ab-principles { display: flex; flex-direction: column; gap: 16px; padding: 24px 28px; }
.ab-principles__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ab-principles__list li {
  padding: 16px; border-radius: var(--radius-m);
  background: var(--gray-1500);
  color: var(--gray-400); font-size: calc(14px * var(--fs-s, 1)); line-height: 22px;
}
.ab-principles__list strong { display: block; margin-bottom: 6px; color: var(--text-light); font-size: calc(17px * var(--fs-h, 1)); line-height: 22px; font-weight: 600; }

/* Хронология */
.ab-timeline { display: flex; flex-direction: column; gap: 10px; }
.ab-timeline li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.ab-timeline__year { font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }

/* Ссылки «Обо мне в сети» */
.ab-links { display: flex; flex-direction: column; gap: 8px; }
.ab-links a, .ab-block .ab-muted a { color: var(--blue-600); text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; }
.ab-links a:hover { color: var(--text-light); }

/* ---------- Адаптив ---------- */
@media (max-width: 1280px) {
  .ab-hero { grid-template-columns: 300px minmax(0, 1fr); }
  .ab-hero__title { font-size: 38px; line-height: 46px; }
  .ab-principles__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100.98px) {
  .ab-grid { grid-template-columns: minmax(0, 1fr); }
  .ab-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .ab-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 767.98px) {
  .ab-hero { grid-template-columns: minmax(0, 1fr); }
  .ab-hero__photo { aspect-ratio: 16 / 11; min-height: 0; } /* фото ниже — кнопка «Написать» ближе к первому экрану */
  .ab-hero__photo::after { background: linear-gradient(180deg, transparent 55%, var(--gray-1700)); }
  /* одинаково в обеих темах: текст под фото (при смене темы ничего не сдвигается) */
  .ab-hero__body { padding: 20px 16px 24px; margin-top: 0; position: relative; }
  .ab-hero__title { font-size: 32px; line-height: 40px; }
  .ab-hero__latin { font-size: 17px; }
  .ab-hero__role { font-size: 16px; line-height: 24px; }
  .ab-facts dd { font-size: 22px; line-height: 28px; }
  .ab-hero__actions { flex-direction: column; align-items: stretch; }
  .ab-hero__actions .btn { width: 100%; }
  .hero__socials { justify-content: center; }
  .ab-block, .ab-principles { padding: 20px 16px; }
  .ab-block--book { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .ab-principles__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479.98px) {
  .ab-block--book { grid-template-columns: minmax(0, 1fr); }
  .ab-block__cover { width: 120px; justify-self: center; }
}

.ab-list a { color: var(--blue-600); text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; }

/* Первая карточка одной высоты в RU и EN — при смене языка страница не прыгает */
@media (min-width: 1101px) { .ab-hero { min-height: 510px; } }
/* Кнопки «Написать» и соцсети стоят в разметке сразу под ролью — на всех ширинах */
.ab-block > .ch-avatar { width: 56px; height: 56px; }
.ab-block p { max-width: 80ch; }
.ab-hero__actions { margin-top: 4px; margin-bottom: 4px; }
