/* ==========================================================================
   Article Specific Styles (Extends style.css)
   ========================================================================== */

.article-page {
  padding-top: 140px; /* Space for the sticky header */
  padding-bottom: 80px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.breadcrumbs__link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs__link:hover {
  color: var(--accent-sage);
}

.breadcrumbs__separator {
  opacity: 0.5;
}

.breadcrumbs__current {
  color: var(--text-graphite);
  font-weight: 600;
}

/* Article Layout Grid */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 52px;
  align-items: start;
}

/* Left Column: Article Main Content */
.article-main {
  background: transparent;
}

.article-header {
  margin-bottom: 36px;
}

.article-category {
  display: inline-block;
  background: var(--accent-sage-light);
  color: var(--accent-sage);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.article-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-graphite);
  margin-bottom: 24px;
}

/* Article Meta */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-glass-dark);
}

.article-author-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-author-badge__img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-glass);
}

.article-author-badge__name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-graphite);
}

.article-author-badge__role {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.article-meta__info {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.article-meta__divider {
  margin: 0 6px;
  opacity: 0.5;
}

/* Hero Image */
.article-hero-image {
  margin-bottom: 44px;
}

.article-hero-image .double-bezel-inner {
  padding: 0;
  overflow: hidden;
}

.article-hero-image__img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Инфографика/широкие изображения — показываем целиком, без обрезки */
.article-hero-image--full .article-hero-image__img {
  height: auto;
  object-fit: contain;
}

/* Article Typography (Readability Focus) */
.article-content {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: var(--text-graphite);
}

.article-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-graphite);
  font-weight: 500;
  margin-bottom: 32px;
}

.article-content p {
  font-size: 1.025rem;
  line-height: 1.75;
  margin-bottom: 24px;
  font-weight: 400;
  opacity: 0.95;
}

.article-content h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 48px;
  margin-bottom: 20px;
  color: var(--text-graphite);
}

.article-content h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--text-graphite);
}

/* Blockquotes */
.article-content blockquote {
  border-left: 3px solid var(--accent-sage);
  padding: 8px 0 8px 24px;
  margin: 40px 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--accent-sage-dark);
}

.article-content blockquote cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Lists */
.article-content ul,
.article-content ol {
  margin: 0 0 28px 20px;
  padding: 0;
}

.article-content li {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 12px;
  color: var(--text-graphite);
  padding-left: 4px;
}

.article-content ul li {
  list-style-type: disc;
}

.article-content ul li::marker {
  color: var(--accent-sage);
}

/* Inline Elements */
.article-content strong {
  font-weight: 700;
  color: var(--text-graphite);
}

/* Double Bezel CTA Banner inside article */
.article-cta-box {
  margin: 44px 0;
}

.article-cta-box__inner {
  padding: 36px !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-nude-light) !important;
}

.article-cta-box__header {
  display: flex;
  align-items: start;
  gap: 16px;
}

.article-cta-box__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.article-cta-box__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 400;
  margin: 0 0 6px 0;
  color: var(--text-graphite);
}

.article-cta-box__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.article-cta-box__bullets {
  margin: 0 0 4px 16px !important;
}

.article-cta-box__bullets li {
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  margin-bottom: 8px !important;
  list-style-type: circle;
}

.article-cta-box__bullets li::marker {
  color: var(--accent-sage);
}

/* E-E-A-T Author Card */
.article-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border-glass-dark);
  padding-top: 48px;
}

.author-card__inner {
  display: flex;
  gap: 36px;
  padding: 40px !important;
}

.author-card__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-glass-dark);
}

.author-card__content {
  display: flex;
  flex-direction: column;
}

.author-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-sage);
  margin-bottom: 8px;
}

.author-card__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0 0 4px 0;
  color: var(--text-graphite);
}

.author-card__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.author-card__bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.author-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: auto;
}

.author-card__link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-sage-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.author-card__link:hover {
  color: var(--accent-sage);
}

.author-card__btn {
  max-width: 200px;
}

/* Right Column: Sidebar (Sticky) */
.article-sidebar {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget__inner {
  padding: 28px !important;
}

.sidebar-widget__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-graphite);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.toc-list a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--accent-sage-dark);
  transform: translateX(4px);
}

.sidebar-widget--cta {
  background: var(--bg-glass-hover) !important;
}

.sidebar-widget__badge {
  display: inline-block;
  background: rgba(94, 122, 104, 0.08);
  color: var(--accent-sage-dark);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.sidebar-phone-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-graphite);
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar-phone-link:hover {
  color: var(--accent-sage);
}

.author-card__phone {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-graphite);
  text-decoration: none;
  transition: color 0.2s ease;
}
.author-card__phone:hover {
  color: var(--accent-sage);
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-list__link {
  color: var(--accent-sage);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.related-list__link:hover {
  color: var(--accent-sage-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* ---------- 992px (Tablets) ---------- */
@media (max-width: 992px) {
  .article-page {
    padding-top: 110px;
    padding-bottom: 60px;
  }
  
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .article-sidebar {
    position: static;
  }
  
  .article-hero-image__img {
    height: 340px;
  }
  
  .author-card__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  
  .author-card__actions {
    justify-content: center;
  }
}

/* ---------- 576px (Mobile Phones) ---------- */
@media (max-width: 576px) {
  .article-page {
    padding-top: 100px;
  }
  
  .breadcrumbs {
    margin-bottom: 24px;
  }
  
  .article-title {
    font-size: 2.1rem;
    margin-bottom: 16px;
  }
  
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .article-hero-image__img {
    height: 240px;
  }
  
  .article-content h2 {
    font-size: 1.65rem;
    margin-top: 36px;
  }
  
  .article-content h3 {
    font-size: 1.35rem;
    margin-top: 28px;
  }
  
  .article-content blockquote {
    padding-left: 16px;
    margin: 28px 0;
    font-size: 1.25rem;
  }
  
  .article-cta-box__inner {
    padding: 24px !important;
  }
  
  .author-card__inner {
    padding: 28px 20px !important;
  }
}

/* Expert Comment / Alina's Comment Box */
.expert-comment {
  border-left: 3px solid var(--accent-sage);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--accent-sage-dark);
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.expert-comment cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 576px) {
  .expert-comment {
    padding: 6px 0 6px 18px;
    margin: 20px 0;
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Inline content links (sage, clickable text — not browser-blue)
   Covers services / city / article pages that use .article-content
   ========================================================================== */
.article-content a {
  color: var(--accent-sage);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(94, 122, 104, 0.35);
  font-weight: 600;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.article-content a:hover {
  color: var(--accent-sage-dark);
  text-decoration-color: var(--accent-sage-dark);
}
.article-content a.btn--primary {
  color: #fff;
  text-decoration: none;
}
.article-content a.btn--outline {
  color: var(--accent-sage);
  text-decoration: none;
}

/* Sidebar widget list links (e.g. "Психолог в других городах", "Смотрите также") */
.sidebar-widget ul a {
  color: var(--accent-sage);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.sidebar-widget ul a:hover {
  color: var(--accent-sage-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   Случай из практики (собирательный, анонимный) — composite case block
   ========================================================================== */
.case-study { margin: 36px 0; }
.case-study__inner { padding: 28px 32px; }
.case-study__label {
  display: inline-block;
  background: var(--accent-sage-light);
  color: var(--accent-sage-dark);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.case-study p { margin: 0; color: var(--text-graphite); }
.case-study p + p { margin-top: 12px; }
@media (max-width: 576px) { .case-study__inner { padding: 22px 20px; } }
