.article-page {
  padding: 148px 0 96px;
  background: #fff;
}

.article-shell {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;

  font-size: 13px;
  line-height: 1.5;
  color: var(--dim);
}

.article-breadcrumbs a {
  color: var(--muted);
}

.article-breadcrumbs a:hover {
  color: var(--text);
}

.article-header {
  max-width: 860px;
  margin-bottom: 40px;
}

.article-kicker {
  margin-bottom: 14px;
}

.article-kicker a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.article-title {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}

.article-lead {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 28px;
}

.article-meta-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f6f6f8;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}

.article-meta-label {
  color: var(--dim);
}

.article-featured-media {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #f2f2f5;
  margin-bottom: 48px;
  max-height: 540px;
}

.article-featured-media img {
  display: block;
  width: 100%;
  height: auto;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.article-main-column {
  min-width: 0;
}

.article-sidebar {
  position: sticky;
  top: calc(var(--nav-h, 60px) + 40px);
  display: grid;
  gap: 18px;
}

.article-box {
  padding: 20px;
  border: 1px solid #ebebef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 15, 24, 0.03);
}

.article-box-title {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.article-toc-list {
  display: grid;
  gap: 8px;
}

.article-toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.article-toc-item {
  margin: 0;
  list-style: none;
}

.article-toc-item a {
  display: block;
  padding: 4px 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1.5px;
  transition: all 0.25s ease;
}

.article-toc-item a:hover {
  color: var(--accent);
  background: rgba(79, 70, 229, 0.03);
  padding-left: 10px;
  border-left-color: rgba(79, 70, 229, 0.3);
}

.article-toc-item-2 a {
  font-weight: 500;
}

.article-toc-item-3 a {
  padding-left: 28px;
  font-size: 13px;
  opacity: 0.85;
}

.article-toc-item-3 a:hover {
  padding-left: 32px;
}

.article-toc-item.active a {
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
  background: rgba(79, 70, 229, 0.05);
}











.article-related-simple-list {
  display: flex;
  flex-direction: column;
}

.article-related-simple-link {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f2;
  transition: all 0.2s ease;
}

.article-related-simple-link:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-related-simple-link:first-child {
  padding-top: 0;
}

.article-related-simple-link h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.article-related-simple-arrow {
  font-size: 14px;
  color: var(--dim);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}

.article-related-simple-link:hover h3 {
  color: var(--accent);
}

.article-related-simple-link:hover .article-related-simple-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}












.article-box-title {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.6;
}

.article-sidebar-cta p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.article-sidebar-cta {
  background: linear-gradient(145deg, rgba(248, 247, 255, 0.9), rgba(241, 240, 252, 0.9));
  
  border: 1px solid rgba(79, 70, 229, 0.08);
  
  padding: 24px;
  border-radius: 20px;
  box-shadow: 
    0 10px 30px rgba(79, 70, 229, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.02);
  
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}



.article-sidebar-cta .article-box-title {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.article-sidebar-cta p {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.article-sidebar-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  
  color: #fff;
  
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  
  transition: all 0.2s var(--ease);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.article-sidebar-cta .btn-primary:hover {
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
  transform: scale(1.02);
}

.article-sidebar-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.05), transparent 60%);
  pointer-events: none;
  border-radius: inherit;
}






.article-toc-mobile {
  display: none;
  margin-bottom: 24px;
}

.article-content {
  width: 100%;
  max-width: 760px;
  color: var(--text);
}

.article-content>*:first-child {
  margin-top: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--text);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.article-content h2 {
  margin: 56px 0 16px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  font-weight: 700;
}

.article-content h3 {
  margin: 34px 0 14px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.18;
  font-weight: 700;
}

.article-content h4 {
  margin: 24px 0 10px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.article-content p,
.article-content li,
.article-content blockquote {
  font-size: 18px;

  line-height: 1.82;
  color: #16171a;
}

.article-content p {
  margin: 0 0 18px;
  text-wrap: pretty;
}

.article-content ul,
.article-content ol {
  margin: 0 0 22px;
  padding-left: 1.4em;
}

.article-content li+li {
  margin-top: 8px;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article-content strong {
  color: var(--text);
  font-weight: 700;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  background: #f7f6ff;
}

.article-content img {
  display: block;
  width: 100%;
  height: auto;
  margin: 28px 0;
  border-radius: 22px;
  max-height: 540px;
}

.article-content figure {
  margin: 28px 0;
}

.article-content figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dim);
}

.article-content table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #ececf0;
}

.article-content th,
.article-content td {
  padding: 14px 16px;
  border-bottom: 1px solid #ececf0;
  text-align: left;
  font-size: 16px;
  line-height: 1.55;
}

.article-content th {
  background: #f8f8fb;
  font-weight: 700;
}





.article-content ul,
.article-content ol,
.article-content .wp-block-list {
    margin: 24px 0 32px;
    padding-left: 0;
    list-style: none; 
}

.article-content li,
.article-content .wp-block-list li {
    position: relative;
    padding-left: 28px; 
    margin-bottom: 12px;
    line-height: 1.7;
    color: #16171a;
}

.article-content ul li::before,
.article-content .wp-block-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.6em; 
    width: 8px;
    height: 8px;
    background-color: var(--accent); 
    border-radius: 50%;
}

.article-content ol {
    counter-reset: wp-list-counter;
    list-style: none;
}

.article-content ol li {
    counter-increment: wp-list-counter;
}

.article-content ol li::before {
    content: counter(wp-list-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95em;
}

.article-content li ul,
.article-content li ol {
    margin: 12px 0 12px 12px;
}

.article-content li ul li::before {
    background-color: transparent;
    border: 1.5px solid var(--accent); 
}

.wp-block-list.is-style-checkmark li::before {
    content: "✓";
    background: none;
    color: var(--accent);
    font-weight: bold;
    top: 0.2em;
}












.article-end-cta {
  margin-top: 56px;
}

.article-end-cta-inner {
  padding: 28px;
  border-radius: 28px;
  background: #121216;
  color: #fff;
}

.article-end-cta-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.article-end-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #fff;
}

.article-end-cta p {
  margin: 0 0 18px;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.article-end-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.article-bottom-related {
  margin-top: 64px;
}

.article-section-head {
  margin-bottom: 24px;
}

.article-section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text);
}

.article-section-head p {
  margin: 0;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.article-bottom-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.article-card {
  min-width: 0;
}

.article-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #ebebef;
  border-radius: 24px;
  background: #fff;
  transition:
    transform 0.24s var(--ease),
    box-shadow 0.24s var(--ease),
    border-color 0.24s var(--ease);
}

.article-card-link:hover {
  transform: translateY(-2px);
  border-color: #dfdfe6;
  box-shadow: 0 16px 40px rgba(15, 15, 24, 0.05);
}

.article-card-media {
  overflow: hidden;
  background: #f4f4f7;
}

.article-card-media img {
  display: block;
  width: 100%;
  height: auto;
}

.article-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.article-card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.article-card-body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--text);
}

.article-card-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.article-card-arrow {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 1180px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 32px;
  }
}

@media (max-width: 1024px) {
  .article-page {
    padding: 132px 0 80px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .article-sidebar {
    display: none;
  }

  .article-toc-mobile {
    display: block;
  }

  .article-content {
    max-width: none;
  }

  .article-bottom-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .article-shell {
    padding: 0 18px;
  }

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

  .article-title {
    font-size: clamp(32px, 9vw, 46px);
    line-height: 1.06;
  }

  .article-lead {
    font-size: 17px;
    line-height: 1.65;
  }

  .article-meta {
    gap: 10px;
  }

  .article-meta-group {
    font-size: 12px;
  }

  .article-content h2 {
    margin: 42px 0 14px;
    font-size: 30px;
  }

  .article-content h3 {
    margin: 28px 0 12px;
    font-size: 24px;
  }

  .article-content p,
  .article-content li,
  .article-content blockquote {
    font-size: 17px;
    line-height: 1.78;
  }

  .article-end-cta-inner {
    padding: 22px;
  }

  .article-end-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .article-page {
    padding: 120px 0 72px;
  }

  .article-shell {
    padding: 0 14px;
  }

  .article-breadcrumbs {
    margin-bottom: 20px;
    font-size: 12px;
  }

  .article-kicker {
    margin-bottom: 12px;
  }

  .article-title {
    font-size: 34px;
  }

  .article-lead {
    font-size: 16px;
  }

  .article-box {
    padding: 16px;
    border-radius: 18px;
  }

  .article-content h2 {
    font-size: 28px;
  }

  .article-content h3 {
    font-size: 22px;
  }

  .article-content p,
  .article-content li,
  .article-content blockquote {
    font-size: 16px;
  }

  .article-card-body {
    padding: 16px;
  }
}