.article-catalog,
.article-page {
  --article-accent: #1682c4;
  --article-accent-dark: #0d659c;
  --article-ink: #17212b;
  --article-muted: #657383;
  --article-line: #dfe6eb;
  --article-soft: #f5f8fa;
  --article-radius: 10px;
}

.article-catalog #content-center,
.article-page #content-center {
  min-width: 0;
}

.article-catalog__heading h1,
.article-legacy-heading h1,
.article-modern-heading h1 {
  color: var(--article-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.article-category-nav {
  display: flex;
  gap: 24px;
  margin-bottom: 22px;
  overflow-x: auto;
  border-bottom: 1px solid var(--article-line);
  scrollbar-width: none;
}

.article-category-nav::-webkit-scrollbar,
.article-strategy-filters::-webkit-scrollbar {
  display: none;
}

.article-category-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 13px 1px 12px;
  color: #536270;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.article-category-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  content: "";
}

.article-category-nav a:hover,
.article-category-nav a:focus,
.article-category-nav a.is-active {
  color: var(--article-accent-dark);
}

.article-category-nav a.is-active::after {
  background: var(--article-accent);
}

.article-catalog-search {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid #d8e1e7;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-catalog-search:focus-within {
  border-color: #82b9da;
  box-shadow: 0 0 0 3px rgba(22, 130, 196, 0.12);
}

.article-catalog-search > i {
  margin-left: 15px;
  color: #83909b;
  font-size: 15px;
}

.article-catalog-search input {
  min-width: 0;
  height: 44px;
  flex: 1 1 auto;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--article-ink);
  background: transparent;
  font-size: 15px;
}

.article-catalog-search button {
  min-width: 74px;
  min-height: 38px;
  margin-right: 4px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--article-accent);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s ease;
}

.article-catalog-search button:hover,
.article-catalog-search button:focus {
  background: var(--article-accent-dark);
}

.article-strategy-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}

.article-strategy-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #dce4e9;
  border-radius: 999px;
  color: #4d5b67;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.article-strategy-filters a i,
.article-strategy-filters a img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
  color: #73818c;
}

.article-strategy-filters a:hover,
.article-strategy-filters a:focus {
  border-color: #9fc6dd;
  color: var(--article-accent-dark);
  box-shadow: 0 3px 10px rgba(24, 74, 105, 0.08);
}

.article-strategy-filters a.is-active {
  border-color: #b8d9ec;
  color: var(--article-accent-dark);
  background: #edf7fc;
  box-shadow: inset 0 0 0 1px rgba(22, 130, 196, 0.04);
}

.article-strategy-filters a.is-active i {
  color: var(--article-accent);
}

.article-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.article-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius);
  background: #fff;
  box-shadow: 0 4px 16px rgba(29, 49, 65, 0.045);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: #c7d6df;
  box-shadow: 0 10px 24px rgba(29, 49, 65, 0.09);
}

.article-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #edf1f4;
}

.article-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card__image img {
  transform: scale(1.018);
}

.article-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 16px 16px 13px;
}

.article-card h2 {
  display: -webkit-box;
  min-height: 2.7em;
  margin: 0 0 9px;
  overflow: hidden;
  color: var(--article-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.012em;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-card h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-card h2 a:hover,
.article-card h2 a:focus {
  color: var(--article-accent-dark);
}

.article-card__preview {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: #52616e;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-card__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  color: #77838d;
  font-size: 12px;
  line-height: 1.45;
}

.article-card__meta a {
  color: #566875;
  font-weight: 600;
}

.article-card__meta time {
  color: inherit;
}

.article-card__footer,
.article-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid #e8edf0;
  background: #fbfcfd;
}

.article-card__stats,
.article-actions__stats {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.article-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #d8e1e7;
  border-radius: 10px;
  color: #52616d;
  background: #fff;
  line-height: 1;
  box-shadow: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.article-icon-button:hover,
.article-icon-button:focus {
  border-color: #9fc6dd;
  color: var(--article-accent-dark);
  background: #f3f9fc;
  box-shadow: 0 3px 10px rgba(24, 74, 105, 0.08);
}

.article-like-button.btn-success {
  border-color: #9bd2b6;
  color: #167146;
  background: #edf8f2;
}

.article-like-button .badge {
  min-width: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.article-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #71808c;
  font-size: 13px;
}

.article-stat strong {
  color: #4d5b67;
  font-size: 12px;
}

.article-catalog__pagination {
  margin-top: 24px;
}

.article-catalog-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  gap: 10px;
  border: 1px dashed #cfd9df;
  border-radius: 12px;
  color: #71808c;
  background: #f8fafb;
}

.article-catalog__seo-text {
  margin: 28px 0;
  color: #687681;
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
}

.article-hero,
.article-legacy-image {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: var(--article-radius);
  background: #eaf0f3;
}

.article-hero {
  aspect-ratio: 16 / 9;
}

.article-hero::after {
  position: absolute;
  inset: 28% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 12, 18, 0) 0%, rgba(5, 12, 18, 0.38) 45%, rgba(5, 12, 18, 0.88) 100%);
  content: "";
  pointer-events: none;
}

.article-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero__title {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  max-width: 94%;
  max-height: 100%;
  margin: 0;
  padding: 26px 28px;
  color: #fff;
  font-size: clamp(27px, 4.2vw, 38px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.article-legacy-image img {
  width: 100%;
  height: auto;
}

.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin: 0 0 24px;
  padding: 4px 2px 12px;
  border-bottom: 1px solid #e5ebef;
  color: #6e7c87;
  font-size: 12.5px;
  line-height: 1.4;
}

.article-byline > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-byline i {
  color: #8b98a2;
}

.article-byline__author,
.article-byline__author a {
  color: #40515e;
  font-weight: 650;
}

.article-byline__item--updated,
.article-byline__item--updated i {
  color: var(--article-accent-dark);
  font-weight: 700;
}

.article-page .article-description {
  color: var(--article-ink);
  font-size: 16px;
  line-height: 1.72;
}

.article-page .article-actions {
  margin-top: 28px;
  border: 1px solid #e1e8ec;
  border-radius: 12px;
}

.article-related,
.article-comments {
  margin-top: 38px;
}

.article-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.article-section-heading__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--article-accent-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-section-heading h2 {
  margin: 0;
  color: var(--article-ink);
  font-size: 25px;
  font-weight: 750;
  line-height: 1.2;
}

.article-section-heading h2 span {
  color: #87939d;
  font-size: 14px;
  font-weight: 600;
}

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

.article-related-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.article-related-card:hover {
  transform: translateY(-2px);
  border-color: #c6d6df;
  box-shadow: 0 8px 20px rgba(29, 49, 65, 0.08);
}

.article-related-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #edf1f4;
}

.article-related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-related-card h3 {
  display: -webkit-box;
  min-height: 3.9em;
  margin: 0;
  padding: 12px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-related-card h3 a {
  color: #263541;
  text-decoration: none;
}

.article-comment-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #b5d5e8;
  border-radius: 10px;
  color: var(--article-accent-dark);
  background: #f1f8fc;
  font-size: 13px;
  font-weight: 700;
}

.article-comment-toggle:hover,
.article-comment-toggle:focus {
  border-color: #87bad8;
  background: #e8f4fb;
}

.article-comment-form {
  margin-bottom: 18px;
  padding: 17px;
  border: 1px solid #dce5ea;
  border-radius: 12px;
  background: #f8fafb;
}

.article-comment-form label {
  display: block;
  margin-bottom: 7px;
  color: #354450;
  font-size: 13px;
  font-weight: 700;
}

.article-comment-editor {
  min-height: 104px;
  height: auto;
  padding: 12px 14px;
  border-color: #cedae1;
  border-radius: 9px;
  background: #fff;
  line-height: 1.55;
}

.article-comment-editor:empty::before {
  color: #929da6;
  content: attr(data-placeholder);
}

.article-comment-form__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.article-comment-login {
  margin: 0;
  color: #5b6975;
}

.article-comment-login .btn-link {
  padding: 0;
  border: 0;
  vertical-align: baseline;
  font-weight: 700;
}

.article-comments .review-box {
  font-family: inherit;
}

.article-comments .review-list {
  margin: 0;
}

.article-comments .review-list > li.media {
  margin: 0 0 12px;
  padding: 15px;
  border: 1px solid #e0e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(29, 49, 65, 0.04);
}

.article-comments .review-list .review-list > li.media {
  margin-top: 12px;
  border-color: #e5eaed;
  background: #f7f9fa;
  box-shadow: none;
}

.article-comments .review-list > hr {
  display: none;
}

.article-comments .review-body > .pull-right small {
  color: #84909a;
  font-size: 11px;
}

.article-comments .review-body .media-heading {
  color: #2e3e4a;
  font-weight: 700;
}

.article-comments .review-list .media-object.thumbnail {
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}

.article-comments .alert-empty-review {
  padding: 18px;
  border: 1px dashed #d4dde2;
  border-radius: 12px;
  color: #6f7d88;
  background: #f8fafb;
}

.article-copy-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1080;
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 10px;
  color: #fff;
  background: #24323d;
  box-shadow: 0 10px 30px rgba(12, 25, 35, 0.24);
  font-size: 13px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.article-copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.article-copy-toast.is-error {
  background: #8f3434;
}

@media (max-width: 767px) {
  .article-catalog__heading,
  .article-legacy-heading,
  .article-modern-heading {
    margin-bottom: 14px;
  }

  .article-category-nav {
    gap: 20px;
    margin-right: -15px;
    margin-left: -15px;
    padding: 0 15px;
  }

  .article-catalog-search button {
    min-width: 46px;
    min-height: 44px;
    padding: 0 10px;
    font-size: 0;
  }

  .article-catalog-search button::before {
    content: "\f002";
    font-family: "Font Awesome 5 Free";
    font-size: 14px;
    font-weight: 900;
  }

  .article-strategy-filters {
    flex-wrap: nowrap;
    margin-right: -15px;
    margin-left: -15px;
    padding: 0 15px 5px;
    overflow-x: auto;
  }

  .article-strategy-filters a {
    flex: 0 0 auto;
    min-height: 44px;
  }

  .article-card-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .article-card h2 {
    min-height: 0;
    font-size: 19px;
  }

  .article-card__footer,
  .article-actions {
    padding: 10px 12px;
  }

  .article-card__stats,
  .article-actions__stats {
    gap: 10px;
  }

  .article-icon-button {
    min-width: 44px;
    min-height: 44px;
  }

  .article-hero__title {
    max-width: 100%;
    padding: 18px;
    font-size: clamp(22px, 7vw, 29px);
    line-height: 1.16;
  }

  .article-byline {
    align-items: flex-start;
    gap: 8px 13px;
    margin-bottom: 20px;
  }

  .article-page .article-description {
    font-size: 16px;
    line-height: 1.68;
  }

  .article-related,
  .article-comments {
    margin-top: 32px;
  }

  .article-related__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-related-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .article-related-card h3 {
    min-height: 0;
    align-self: center;
  }

  .article-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-comments__heading .article-comment-toggle {
    width: 100%;
    justify-content: center;
  }

  .article-comments .review-list > li.media {
    padding: 13px;
  }

  .article-copy-toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    justify-content: center;
  }
}

@media (min-width: 768px) and (max-width: 1180px) {
  .article-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-card,
  .article-card__image img,
  .article-related-card,
  .article-copy-toast {
    transition: none;
  }
}
