/* Страница автора /authors/{ID}/ — из макета authors/index.html (Этап 7, 05.11.2026) */
/* ===== AUTHOR PAGE ===== */
.author-hero { background: var(--bg); padding: 40px 0 56px; }
.author-hero__inner {
  display: grid; gap: 32px; align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .author-hero__inner { grid-template-columns: 240px 1fr; gap: 48px; }
}

/* Аватар */
.author-photo {
  width: 180px; height: 180px; border-radius: 50%;
  margin: 0 auto;
  background: linear-gradient(150deg, #2A2A40 0%, #4a4a68 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 52px;
  box-shadow: 0 18px 40px rgba(38,32,22,0.22);
  position: relative; overflow: hidden;
}
@media (min-width: 780px) { .author-photo { width: 220px; height: 220px; margin: 0; } }
.author-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.author-photo__pub {
  margin-top: 18px; text-align: center;
  font-size: 12px; color: var(--ink-soft);
}
@media (min-width: 780px) { .author-photo__pub { text-align: left; padding-left: 4px; } }
.author-photo__pub strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--red); }

/* Инфо */
.author-eyebrow {
  font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: #CE0019; margin-bottom: 10px;
}
.author-name {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 600; letter-spacing: -0.01em; color: var(--ink); line-height: 1.08; margin-bottom: 16px;
}
.author-name { margin-bottom: 22px; }

.author-bio { max-width: 66ch; }
.author-bio__label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px;
}
.author-bio__text { font-size: 15.5px; line-height: 1.75; color: #3a352e; }
.author-bio__text p + p { margin-top: 12px; }
/* «Подробнее» — раскрытие без JS */
.author-bio__more { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
#bio-toggle { position: absolute; opacity: 0; pointer-events: none; }
#bio-toggle:checked ~ .author-bio__more { max-height: 4000px; }
#bio-toggle:checked ~ .author-bio__btn .author-bio__btn-more { display: none; }
#bio-toggle:checked ~ .author-bio__btn .author-bio__btn-less { display: inline; }
.author-bio__btn {
  display: inline-block; margin-top: 10px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--red); border-bottom: 1.5px solid var(--red); padding-bottom: 1px;
}
.author-bio__btn-less { display: none; }

/* Книги автора */
.author-books { padding: 64px 0 80px; }
.author-books__head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 32px;
}
.author-books__title {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 600; color: var(--ink);
}
.author-books__count {
  font-size: 15px; color: var(--ink-soft);
  background: var(--bg-soft); border-radius: 20px; padding: 4px 14px; font-weight: 600;
}
.author-books__grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 560px) { .author-books__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .author-books__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1120px) { .author-books__grid { grid-template-columns: repeat(5, 1fr); } }

.abook {
  display: block; transition: transform 0.2s;
}
.abook:hover { transform: translateY(-5px); }
.abook__cover {
  position: relative;
  aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(38,32,22,0.18);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 16px 14px; margin-bottom: 12px;
  transition: box-shadow 0.2s;
}
.abook:hover .abook__cover { box-shadow: 0 16px 34px rgba(38,32,22,0.28); }
.abook__cover::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: rgba(255,255,255,0.22);
}
.abook__cover-title {
  font-family: var(--font-serif); font-weight: 600; font-size: 14px;
  line-height: 1.25; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.abook__cover-tag {
  margin-top: auto; align-self: flex-start;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); background: rgba(0,0,0,0.22); padding: 3px 8px; border-radius: 12px;
}
.abook__title {
  font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink);
}
.abook:hover .abook__title { color: var(--red); }

/* палитра обложек по кругу */
.c1 { background: linear-gradient(155deg,#2A2A40,#494968); }
.c2 { background: linear-gradient(155deg,#8a1020,#E8001C); }
.c3 { background: linear-gradient(155deg,#4a3b1a,#C9993A); }
.c4 { background: linear-gradient(155deg,#173a34,#2f7d6c); }
.c5 { background: linear-gradient(155deg,#3a1c40,#7d3f8a); }
.c6 { background: linear-gradient(155deg,#1c2c4a,#3f6a9e); }

/* Аудиокниги — квадратная обложка */
.author-books--audio { padding-top: 0; }
.abook__cover--square { aspect-ratio: 1 / 1; }
.abook__audio-badge {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.abook__audio-badge svg { width: 15px; height: 15px; margin-left: 2px; }

/* CTA */
.author-cta { background: var(--bg); padding: 0 0 80px; }
.author-cta__inner {
  background: var(--navy); border-radius: 20px; padding: 44px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.author-cta__title { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: clamp(22px,3vw,30px); color: #fff; margin-bottom: 6px; }
.author-cta__sub { font-size: 15px; color: rgba(255,255,255,0.65); }

/* Дополнения для Битрикса */
.abook__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.abook__cover--img { padding: 0; background: var(--bg-soft); }
.abook__cover--img::after { display: none; }
.author-books__empty { font-size: 15px; color: var(--ink-soft); }

