/* ============================================
   ASPEKT-S — AUTHOR PAGE STYLES
   ============================================ */

.author-hero {
  background: linear-gradient(135deg, var(--green, #206637) 0%, var(--green-dark, #174d29) 100%);
  color: #fff;
  padding: 60px 0 65px;
  position: relative;
  overflow: hidden;
}
.author-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 191, 27, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.author-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.author-hero__content,
.author-hero__side {
  min-width: 0;
}
.author-hero__content .breadcrumbs {
  border-bottom-width: 0;
  color: #fff;
  background: unset;
  margin-bottom: 20px;
  padding-left: 0;
  padding-right: 0;
}
.author-hero__content .breadcrumbs .container {
  padding: 0;
}
.author-hero__content .breadcrumbs a:not(:hover) {
  color: rgba(255, 255, 255, 0.85);
}
.author-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 191, 27, 0.45);
  color: var(--yellow, #ffbf1b);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  max-width: 100%;
}
.author-hero__badge svg {
  fill: currentColor;
  flex-shrink: 0;
}
.author-hero__title {
  font-size: 38px;
  line-height: 1.18;
  font-weight: 700;
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--font);
  overflow-wrap: break-word;
}
.author-hero__subtitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--yellow, #ffbf1b);
  margin-bottom: 14px;
}
.author-hero__lead {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
}
.author-hero__check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 10px;
}
.author-hero__check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.45;
}
.author-hero__check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--yellow, #ffbf1b);
  font-weight: 800;
  font-size: 17px;
}
.author-hero__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn--outline-gold {
  border-color: var(--yellow, #ffbf1b);
  color: var(--yellow, #ffbf1b);
}
.btn--outline-gold:hover,
.btn--outline-gold:focus-visible {
  background: var(--yellow, #ffbf1b);
  color: #000;
  opacity: 1;
}

.author-card-box {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  color: var(--text, #1e1e1e);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  border: 1px solid #e8ece9;
  text-align: center;
}
.author-card-box__avatar-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--yellow, #ffbf1b);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #f0f4f1;
}
.author-card-box__avatar,
.author-hero__avatar-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  display: block;
}
.author-card-box__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark, #174d29);
  margin-bottom: 6px;
}
.author-card-box__role {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf2ee;
}
.author-card-box__meta-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}
.author-card-box__meta-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed #e8eee9;
}
.author-card-box__meta-item:last-child {
  border-bottom: none;
}
.author-card-box__meta-label {
  color: #717d75;
}
.author-card-box__meta-val {
  font-weight: 600;
  color: var(--green, #206637);
  text-align: right;
}
.author-card-box .btn {
  width: 100%;
  justify-content: center;
}

/* Статистика эксперта */
.author-stats-section {
  padding: 50px 0;
  background: #fff;
}
.author-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.author-stat-card {
  background: #f7faf8;
  border-radius: 14px;
  padding: 24px 20px;
  border: 1px solid #e3ede6;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  min-width: 0;
}
.author-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.author-stat-card__num {
  font-size: 38px;
  font-weight: 800;
  color: var(--green, #206637);
  line-height: 1;
  margin-bottom: 10px;
  font-family: var(--font);
}
.author-stat-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark, #174d29);
  margin: 0 0 6px;
}
.author-stat-card__desc {
  font-size: 13px;
  color: #657169;
  line-height: 1.4;
  margin: 0;
}

/* Секции контента */
.author-section {
  padding: 70px 0;
}
.author-section--alt {
  background: #f7faf8;
}
.author-section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 45px;
}
.author-section__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text, #1e1e1e);
  margin: 0 0 12px;
  position: relative;
  display: inline-block;
  overflow-wrap: break-word;
}
.author-section__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--yellow, #ffbf1b);
  margin: 12px auto 0;
  border-radius: 2px;
}
.author-section__desc {
  font-size: 16px;
  color: #5d6761;
  line-height: 1.6;
  margin: 0;
}

/* Карточки образования */
.author-edu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.author-edu-card {
  background: #fff;
  border-radius: 14px;
  padding: 26px 24px;
  border: 1px solid #e1ebe5;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
  min-width: 0;
}
.author-edu-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef6f1;
  color: var(--green, #206637);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-edu-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}
.author-edu-card__body {
  flex: 1;
  min-width: 0;
}
.author-edu-card__tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange, #ff8a00);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.author-edu-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--green-dark, #174d29);
  margin: 0 0 8px;
}
.author-edu-card__text {
  font-size: 14px;
  color: #556058;
  line-height: 1.5;
  margin: 0;
}

/* Компетенции */
.author-competencies-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.author-comp-card {
  background: #fff;
  border-radius: 12px;
  padding: 22px 20px;
  border: 1px solid #e3ede6;
  border-top: 3px solid var(--green, #206637);
  min-width: 0;
}
.author-comp-card__num {
  font-size: 12px;
  font-weight: 700;
  color: var(--yellow, #ffbf1b);
  background: var(--green-dark, #174d29);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.author-comp-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #1e1e1e);
  margin: 0 0 8px;
  line-height: 1.35;
  overflow-wrap: break-word;
}
.author-comp-card__text {
  font-size: 13px;
  color: #616e65;
  line-height: 1.5;
  margin: 0;
}

/* Статьи автора */
.author-articles-note {
  background: #eef6f1;
  border: 1px solid #d5e5db;
  border-left: 4px solid var(--green, #206637);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 28px;
  font-size: 14px;
  color: #2f3b33;
  line-height: 1.5;
}
.author-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.author-article-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e1ebe5;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  min-width: 0;
}
.author-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.author-article-card__header {
  padding: 22px 22px 14px;
  border-bottom: 1px solid #f0f4f1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #79877f;
}
.author-article-card__tag {
  background: #eef6f1;
  color: var(--green, #206637);
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
}
.author-article-card__body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.author-article-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #1e1e1e);
  margin: 0 0 10px;
  line-height: 1.35;
}
.author-article-card__title a {
  color: inherit;
}
.author-article-card__title a:hover {
  color: var(--green, #206637);
}
.author-article-card__excerpt {
  font-size: 14px;
  color: #5c6860;
  line-height: 1.55;
  margin: 0 0 18px;
  flex: 1;
}
.author-article-card__footer {
  padding-top: 14px;
  border-top: 1px dashed #e8eee9;
}
.author-article-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--green, #206637);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.author-article-card__link:hover {
  color: var(--green-dark, #174d29);
}

.author-pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.author-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #d5e2d9;
  background: #fff;
  color: var(--text, #1e1e1e);
  font-size: 14px;
  font-weight: 600;
}
.author-pagination .page-numbers.current {
  background: var(--green, #206637);
  border-color: var(--green, #206637);
  color: #fff;
}

/* Проверка фактов и контакты редакции */
.author-editorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.author-editorial__card {
  background: #f7faf8;
  border: 1px solid #dce8e1;
  border-radius: 14px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.author-editorial__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark, #174d29);
  margin: 0;
  line-height: 1.3;
}
.author-editorial__text {
  font-size: 15px;
  color: #424d46;
  line-height: 1.6;
  margin: 0;
}
.author-editorial__list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: #424d46;
  line-height: 1.55;
  display: grid;
  gap: 8px;
}
.author-editorial__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: auto;
  padding-top: 8px;
}
.author-editorial__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--green, #206637);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.author-editorial__link:hover {
  color: var(--green-dark, #174d29);
}

/* FAQ автора (нативный <details>) */
.author-faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.author-faq__item {
  background: #fff;
  border: 1px solid #dce8e1;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.author-faq__item[open] {
  box-shadow: 0 6px 20px rgba(32, 102, 55, 0.08);
  border-color: #bfd4c7;
}
.author-faq__summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 52px 20px 24px;
  position: relative;
  user-select: none;
}
.author-faq__summary::-webkit-details-marker {
  display: none;
}
.author-faq__summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef6f1;
  color: var(--green, #206637);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
}
.author-faq__item[open] .author-faq__summary::after {
  content: "−";
  background: var(--green, #206637);
  color: #fff;
}
.author-faq__question {
  font-size: 17px;
  font-weight: 700;
  color: var(--text, #1e1e1e);
  margin: 0;
  line-height: 1.4;
}
.author-faq__answer {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #4a554e;
  border-top: 1px solid #eef3ef;
}
.author-faq__answer p {
  margin: 14px 0 0;
}

/* Адаптивность */
@media (max-width: 992px) {
  .author-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .author-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .author-edu-grid,
  .author-editorial {
    grid-template-columns: minmax(0, 1fr);
  }
  .author-competencies-grid,
  .author-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .author-hero__title {
    font-size: 28px;
  }
  .author-stats-grid,
  .author-competencies-grid,
  .author-articles-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .author-section {
    padding: 50px 0;
  }
  .author-section__title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .author-hero {
    padding: 36px 0 44px;
  }
  .author-hero__title {
    font-size: 25px;
  }
  .author-hero__buttons {
    flex-direction: column;
  }
  .author-hero__buttons .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 14px 18px;
    font-size: 15px;
  }
  .author-card-box {
    padding: 24px 18px;
  }
  .author-card-box__meta-item {
    flex-wrap: wrap;
    gap: 4px;
  }
  .author-edu-card {
    flex-direction: column;
    padding: 20px 18px;
  }
  .author-editorial__card {
    padding: 22px 18px;
  }
  .author-faq__summary {
    padding: 16px 48px 16px 18px;
  }
  .author-faq__answer {
    padding: 0 18px 16px;
  }
}
