@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

/* ==========================================================================
   ATLANT BLOG: Премиальный дизайн по образцу atlantsnabcity.kz
   ========================================================================== */

.articles-page-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 50px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #163047;
  box-sizing: border-box;
}

.articles-shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: grid;
  gap: 22px;
}

/* ───────── 1. HERO SECTION ───────── */

.articles-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 22px 26px;
  overflow: hidden;
  border: 1px solid rgba(0, 101, 145, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 18%, rgba(22, 179, 123, 0.14), rgba(22, 179, 123, 0) 34%),
    radial-gradient(circle at 92% 8%, rgba(0, 101, 145, 0.16), rgba(0, 101, 145, 0) 36%),
    linear-gradient(135deg, #f8fcff 0%, #eef7f5 100%);
  box-shadow: 0 16px 36px rgba(19, 53, 74, 0.08);
}

.articles-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.65;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 101, 145, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 101, 145, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(120deg, rgba(0,0,0,0.9), rgba(0,0,0,0.1));
}

.articles-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 34px solid rgba(0, 101, 145, 0.07);
  pointer-events: none;
}

.articles-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(240px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
}

.articles-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #006591;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.articles-eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: #16b37b;
}

.articles-title {
  margin: 0;
  color: #163047;
  font-family: 'Unbounded', 'Manrope', -apple-system, sans-serif !important;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.articles-lead {
  margin: 0;
  color: #4a687a;
  font-size: 13.5px;
  line-height: 1.5;
}

.articles-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 6px 8px;
  align-items: center;
  justify-content: flex-end;
}

.articles-hero__fact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid rgba(0, 101, 145, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #4a687a;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(19, 53, 74, 0.04);
}

.articles-hero__fact i {
  font-size: 12px;
  color: #006591;
}

.articles-hero__fact strong {
  color: #006591;
  font-size: 14px;
  font-weight: 900;
}

.articles-hero__fact--week {
  border-color: rgba(22, 179, 123, 0.32);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, #edfbf5 100%);
  color: #1a6f52;
}

.articles-hero__fact--week i,
.articles-hero__fact--week strong {
  color: #129466;
}

.articles-hero__fact--month {
  border-color: rgba(0, 101, 145, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, #edf6fb 100%);
  color: #175479;
}

.articles-hero__fact--month i,
.articles-hero__fact--month strong {
  color: #006591;
}

.articles-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
}

.articles-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.articles-btn--wa {
  background: linear-gradient(135deg, #0f9f51 0%, #16b866 100%);
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(15, 159, 81, 0.24);
}

.articles-btn--wa:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 159, 81, 0.32);
}

.articles-btn--phone {
  background: #ffffff;
  border-color: rgba(0, 101, 145, 0.18);
  color: #163047 !important;
  box-shadow: 0 6px 16px rgba(19, 53, 74, 0.05);
}

.articles-btn--phone:hover {
  background: #f4fafc;
  color: #006591 !important;
  border-color: rgba(0, 101, 145, 0.3);
}

/* ───────── 2. TOPICBAR (ГОРИЗОНТАЛЬНЫЕ ТЕМЫ) ───────── */

.articles-topicbar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: #d0e1ea transparent;
}

.articles-topicbar::-webkit-scrollbar {
  height: 4px;
}

.articles-topicbar::-webkit-scrollbar-thumb {
  background: #d0e1ea;
  border-radius: 999px;
}

.articles-topicbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid #dce8ef;
  border-radius: 999px;
  background: #ffffff;
  color: #3b5668;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none !important;
  transition: all 0.18s ease;
}

.articles-topicbar__item:hover {
  border-color: #006591;
  color: #006591;
  background: #f7fcfe;
}

.articles-topicbar__item.is-active {
  background: linear-gradient(135deg, #006591 0%, #16b37b 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 101, 145, 0.22);
}

.articles-topicbar__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: #edf4f8;
  color: #006591;
  font-size: 11px;
  font-weight: 800;
}

.articles-topicbar__item.is-active span {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

/* ───────── 3. ДВУХКОЛОНОЧНЫЙ МАКЕТ ───────── */

.articles-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.articles-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 90px;
}

.articles-sidebar__card {
  padding: 20px;
  border: 1px solid #dbe7ee;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(19, 53, 74, 0.05);
}

.articles-sidebar__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
  color: #163047;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.articles-control-count {
  padding: 2px 8px;
  border-radius: 999px;
  background: #edf4f8;
  color: #006591;
  font-size: 12px;
  font-weight: 800;
}

.articles-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  margin-bottom: 3px;
  border-radius: 12px;
  color: #476476;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.articles-sidebar__link:hover {
  background: #f4fafc;
  color: #006591;
}

.articles-sidebar__link.is-active {
  background: #eaf4f9;
  color: #006591;
  font-weight: 800;
}

.articles-sidebar__count {
  font-size: 12px;
  color: #7995a5;
}

.articles-sidebar__promo {
  padding: 22px;
  border: 1px solid rgba(0, 101, 145, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 8%, rgba(22, 179, 123, 0.15), rgba(22, 179, 123, 0) 34%),
    linear-gradient(135deg, #16374f 0%, #0d5475 100%);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(19, 53, 74, 0.12);
}

.articles-sidebar__promo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #8ff0bf;
  font-size: 17px;
}

.articles-sidebar__promo-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.25;
}

.articles-sidebar__promo-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.articles-sidebar__promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f9f51 0%, #16b866 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(15, 159, 81, 0.3);
  transition: transform 0.18s ease;
}

.articles-sidebar__promo-btn:hover {
  transform: translateY(-2px);
}

/* ───────── 4. ПАНЕЛЬ УПРАВЛЕНИЯ (SEARCH & CONTROLS) ───────── */

.articles-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid #dce8ef;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(19, 53, 74, 0.04);
}

.articles-controls__field {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
}

.articles-controls__field--search i.fa-search {
  position: absolute;
  left: 14px;
  color: #8da4b3;
  font-size: 14px;
  pointer-events: none;
}

.articles-controls__input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 38px;
  border: 1px solid #dce8ef;
  border-radius: 999px;
  background: #f7fafc;
  color: #163047;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.articles-controls__input:focus {
  background: #ffffff;
  border-color: #006591;
  box-shadow: 0 0 0 3px rgba(0, 101, 145, 0.12);
}

.articles-controls__clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #8da4b3;
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
}

.articles-controls__clear:hover {
  color: #163047;
}

.articles-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #dce8ef;
  border-radius: 999px;
  background: #f7fafc;
}

.articles-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #698495;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}

.articles-view-btn:hover {
  color: #006591;
}

.articles-view-btn.is-active {
  background: #ffffff;
  color: #006591;
  box-shadow: 0 4px 10px rgba(19, 53, 74, 0.08);
}

.articles-controls__field--sort {
  position: relative;
}

.articles-controls__field--sort i {
  position: absolute;
  left: 12px;
  color: #8da4b3;
  font-size: 13px;
  pointer-events: none;
}

.articles-controls__select {
  height: 42px;
  padding: 0 28px 0 32px;
  border: 1px solid #dce8ef;
  border-radius: 999px;
  background: #f7fafc;
  color: #385365;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.articles-controls__status {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #728c9c;
  font-weight: 700;
  display: none;
}

/* ───────── 5. СЕТКА СТАТЕЙ И КАРТОЧКИ (ARTICLES GRID) ───────── */

.articles-grid {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

/* Режим: Сетка по умолчанию (3 колонки) */
.articles-grid.is-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Режим: Крупные карточки (2 колонки) */
.articles-grid.is-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Режим: Списком (1 колонка) */
.articles-grid.is-list {
  grid-template-columns: 1fr;
}

.articles-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid #dce8ef;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(19, 53, 74, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.articles-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 101, 145, 0.25);
  box-shadow: 0 22px 42px rgba(19, 53, 74, 0.12);
}

.articles-card__media {
  position: relative;
  height: 195px;
  overflow: hidden;
  background: #edf4f8;
}

.articles-grid.is-cards .articles-card__media {
  height: 250px;
}

.articles-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.articles-card:hover .articles-card__media img {
  transform: scale(1.05);
}

.articles-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 20px 20px;
}

.articles-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.articles-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf4f9;
  color: #006591;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
}

.articles-pill--muted {
  background: #f2f7fa;
  color: #637f8f;
  font-weight: 700;
}

.articles-pill i {
  font-size: 11px;
}

.articles-card__title {
  margin: 0 0 10px;
  color: #163047;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.articles-grid.is-cards .articles-card__title {
  font-size: 20px;
}

.articles-card__title a {
  color: #163047;
  text-decoration: none !important;
  transition: color 0.18s ease;
}

.articles-card:hover .articles-card__title a {
  color: #006591;
}

.articles-card__excerpt {
  margin: 0 0 16px;
  color: #516e7f;
  font-size: 13.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.articles-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #edf4f8;
}

.articles-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #006591;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}

.articles-card__cta i {
  transition: transform 0.2s ease;
}

.articles-card:hover .articles-card__cta i {
  transform: translateX(4px);
}

.articles-card__viewed {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #849ca9;
  font-size: 11.5px;
  font-weight: 700;
}

.articles-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Стили для режима списка (is-list) */
.articles-grid.is-list .articles-card {
  flex-direction: row;
}

.articles-grid.is-list .articles-card__media {
  width: 260px;
  min-width: 260px;
  height: auto;
}

/* ───────── 6. CTA КОНСУЛЬТАЦИЯ ───────── */

.articles-consult {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 26px 30px;
  border: 1px solid rgba(0, 101, 145, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 20%, rgba(22, 179, 123, 0.12), rgba(22, 179, 123, 0) 36%),
    linear-gradient(135deg, #ffffff 0%, #f4f9fc 100%);
  box-shadow: 0 16px 34px rgba(19, 53, 74, 0.06);
}

.articles-consult__info h2 {
  margin: 0 0 8px;
  color: #163047;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.articles-consult__info p {
  margin: 0;
  color: #516e7f;
  font-size: 14px;
  line-height: 1.55;
  max-width: 620px;
}

.articles-consult .articles-btn {
  min-height: 46px;
  padding: 0 24px;
  font-size: 14px;
  flex-shrink: 0;
}

/* ───────── 7. ПАГИНАЦИЯ И ПУСТОЙ БЛОК ───────── */

.articles-pagination-wrapper {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.articles-empty {
  padding: 40px 20px;
  text-align: center;
  border: 1px solid #dce8ef;
  border-radius: 24px;
  background: #ffffff;
  color: #516e7f;
}

.articles-empty p {
  font-size: 15px;
  margin-bottom: 16px;
}

/* ───────── 8. СТИЛИ ДЕТАЛЬНЫХ СТАТЕЙ: ТАБЛИЦЫ, FAQ И СПИСКИ ───────── */

/* Адаптивные таблицы ГОСТ */
.table-responsive-wrapper {
  position: relative;
  width: 100%;
  margin: 24px 0;
  border-radius: 18px;
  border: 1px solid #dce8ef;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(19, 53, 74, 0.04);
  overflow: hidden;
}

.table-scroll-hint {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f0f7fb;
  color: #006591;
  font-size: 11.5px;
  font-weight: 700;
  border-bottom: 1px solid #e2edf3;
}

@media (max-width: 767px) {
  .table-scroll-hint {
    display: flex;
  }
  .table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .detail-content table,
  .article-content-text table,
  .articles-page-wrapper table {
    min-width: 540px;
  }
}

.detail-content table,
.article-content-text table,
.articles-card__body table,
.articles-page-wrapper table,
.content-default table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 13.5px;
  border: none;
  box-shadow: none;
}

.detail-content th,
.articles-page-wrapper th,
.content-default th {
  background: #f0f6fa;
  color: #163047;
  font-weight: 800;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 2px solid #dce8ef;
}

.detail-content td,
.articles-page-wrapper td,
.content-default td {
  padding: 12px 16px;
  border-bottom: 1px solid #edf4f8;
  color: #496576;
}

.detail-content tr:nth-child(even) td,
.articles-page-wrapper tr:nth-child(even) td,
.content-default tr:nth-child(even) td {
  background: #f9fbfd;
}

/* FAQ аккордеоны */
.detail-content details,
.articles-page-wrapper details,
.content-default details {
  margin: 12px 0;
  border: 1px solid #dce8ef;
  border-radius: 16px;
  background: #ffffff;
  padding: 16px 20px;
  transition: all 0.2s ease;
}

.detail-content details[open],
.articles-page-wrapper details[open],
.content-default details[open] {
  background: #f8fcff;
  border-color: #006591;
  box-shadow: 0 10px 24px rgba(0, 101, 145, 0.08);
}

.detail-content summary,
.articles-page-wrapper summary,
.content-default summary {
  font-size: 16px;
  font-weight: 800;
  color: #163047;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-content summary::-webkit-details-marker,
.articles-page-wrapper summary::-webkit-details-marker,
.content-default summary::-webkit-details-marker {
  display: none;
}

.detail-content summary::after,
.articles-page-wrapper summary::after,
.content-default summary::after {
  content: "▾";
  font-size: 20px;
  color: #006591;
  transition: transform 0.2s ease;
}

.detail-content details[open] summary::after,
.articles-page-wrapper details[open] summary::after,
.content-default details[open] summary::after {
  transform: rotate(180deg);
}

.detail-content details p,
.articles-page-wrapper details p,
.content-default details p {
  margin-top: 12px;
  margin-bottom: 0;
  color: #516e7f;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ───────── 9. АДАПТИВНОСТЬ (RESPONSIVE) ───────── */

@media (max-width: 1199px) {
  .articles-hero__content {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .articles-hero__facts {
    justify-content: flex-start;
  }
  .articles-hero__actions {
    flex-direction: row;
    justify-content: flex-start;
  }
  .articles-grid.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .articles-layout {
    grid-template-columns: 1fr;
  }
  .articles-sidebar {
    position: static;
  }
  .articles-grid.is-list .articles-card {
    flex-direction: column;
  }
  .articles-grid.is-list .articles-card__media {
    width: 100%;
    height: 200px;
  }
  .articles-consult {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .articles-page-wrapper {
    padding-top: 4px;
  }
  .articles-hero {
    padding: 18px 16px;
    border-radius: 20px;
  }
  .articles-hero__facts {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .articles-hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .articles-hero__actions .articles-btn {
    width: 100%;
  }
  .articles-controls {
    grid-template-columns: 1fr;
  }
  .articles-grid.is-grid,
  .articles-grid.is-cards {
    grid-template-columns: 1fr;
  }
  .articles-card__media {
    height: 180px;
  }
}

/* ───────── 10. НОВЫЙ РАСШИРЕННЫЙ ФУНКЦИОНАЛ И SEO ───────── */

/* Читательский прогресс-бар вверху страницы */
.article-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #16b37b 0%, #006591 100%);
  z-index: 99999;
  transition: width 0.1s ease-out;
  box-shadow: 0 1px 8px rgba(22, 179, 123, 0.4);
}

/* Хлебные крошки внутри Hero */
.articles-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #607d8b;
}

.articles-breadcrumbs__link {
  color: #006591 !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.articles-breadcrumbs__link:hover {
  color: #16b37b !important;
}

.articles-breadcrumbs__sep {
  color: #9fb3be;
  font-size: 11px;
}

.articles-breadcrumbs__current {
  color: #4a687a;
}

/* Быстрые фильтры-чипы (Quick Chips) */
.articles-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #dbe7ee;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(19, 53, 74, 0.03);
}

.articles-chips__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #006591;
  margin-right: 4px;
}

.articles-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid #dce8ef;
  border-radius: 999px;
  background: #f5f9fb;
  color: #3b586c;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.articles-chip:hover {
  background: #eef6fa;
  border-color: #006591;
  color: #006591;
  transform: translateY(-1px);
}

.articles-chip.is-active {
  background: #006591;
  border-color: #006591;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 101, 145, 0.25);
}

/* Бейджи на карточках статей */
.articles-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
  pointer-events: none;
}

.articles-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.articles-badge--hit {
  background: linear-gradient(135deg, #ff4e50 0%, #f9d423 100%);
  color: #ffffff;
}

.articles-badge--fresh {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: #ffffff;
}

.articles-badge--gost {
  background: rgba(22, 48, 71, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Подсветка поискового совпадения */
mark.search-highlight {
  background: #d4f8e8;
  color: #0d6b46;
  padding: 1px 3px;
  border-radius: 4px;
  font-weight: inherit;
}

/* Мини-кнопка WhatsApp на карточке */
.articles-card__footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.articles-card__wa-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff !important;
  font-size: 13px;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  z-index: 4;
}

.articles-card__wa-mini:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

/* Интерактивное Оглавление статьи (TOC / Table of Contents) */
.article-toc {
  margin: 20px 0 30px;
  padding: 18px 22px;
  background: linear-gradient(180deg, #fbfdfe 0%, #f3f8fb 100%);
  border: 1px solid #dce8ef;
  border-left: 4px solid #006591;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(19, 53, 74, 0.04);
}

.article-toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  cursor: pointer;
}

.article-toc__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #163047;
  font-family: 'Unbounded', 'Manrope', sans-serif;
}

.article-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.article-toc__item {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.4;
}

.article-toc__item::before {
  content: "›";
  position: absolute;
  left: 0;
  top: -1px;
  color: #16b37b;
  font-size: 16px;
  font-weight: 900;
}

.article-toc__item--h3 {
  padding-left: 32px;
  font-size: 13px;
  color: #557284;
}

.article-toc__link {
  color: #006591 !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: color 0.15s ease;
}

.article-toc__link:hover {
  color: #16b37b !important;
  text-decoration: underline !important;
}

/* Шапка детальной статьи */
.article-header {
  margin-bottom: 24px;
}

.article-title {
  font-family: 'Unbounded', 'Manrope', -apple-system, sans-serif !important;
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  color: #163047;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2edf3;
}

.article-share-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.article-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  border: none;
}

.article-share-btn--wa {
  background: #25d366;
  color: #ffffff !important;
}

.article-share-btn--wa:hover {
  background: #1ebc59;
  transform: translateY(-1px);
}

.article-share-btn--copy {
  background: #f0f6fa;
  border: 1px solid #dce8ef;
  color: #2c495d;
}

.article-share-btn--copy:hover {
  background: #e2edf3;
  color: #006591;
}

@media (max-width: 680px) {
  .article-share-buttons {
    margin-left: 0;
    width: 100%;
  }
}

/* ───────── 11. НОВЫЕ ПРЕМИАЛЬНЫЕ ФИШКИ И МИКРОВЗАИМОДЕЙСТВИЯ ───────── */

/* Обложка статьи */
.article-cover-wrapper {
  margin: 20px 0 28px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(19, 53, 74, 0.08);
  border: 1px solid #dce8ef;
}

.article-cover-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* 1. Блок Executive Summary (Главное за 30 секунд) */
.article-summary {
  position: relative;
  margin: 24px 0 32px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #f3faf7 0%, #eaf5fc 100%);
  border: 1px solid rgba(22, 179, 123, 0.25);
  border-left: 5px solid #16b37b;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(22, 179, 123, 0.06);
}

.article-summary__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #16b37b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.article-summary__lead {
  font-size: 15.5px;
  line-height: 1.6;
  color: #163047;
  font-weight: 600;
  margin: 0 0 16px;
}

.article-summary__points {
  display: grid;
  gap: 10px;
}

.article-summary__point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #385669;
}

.article-summary__point i {
  color: #16b37b;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* 2. Тулбар чтения (Размер шрифта, печать, закладки) */
.article-reader-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.article-font-size-toggle {
  display: inline-flex;
  align-items: center;
  background: #f0f6fa;
  border: 1px solid #dce8ef;
  border-radius: 999px;
  padding: 2px;
}

.article-font-btn {
  border: none;
  background: transparent;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  color: #557284;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.article-font-btn.is-active,
.article-font-btn:hover {
  background: #006591;
  color: #ffffff;
}

.article-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #dce8ef;
  background: #f0f6fa;
  color: #2c495d;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.article-action-btn:hover {
  background: #e2edf3;
  color: #006591;
  transform: translateY(-1px);
}

.article-action-btn.is-bookmarked {
  background: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
}

/* 3. Инженерный Экспресс-калькулятор прямо в статье */
.article-calc {
  margin: 36px 0;
  padding: 24px 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0e273c 0%, #163d5c 100%);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(14, 39, 60, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-calc__header {
  margin-bottom: 20px;
}

.article-calc__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  font-family: 'Unbounded', 'Manrope', sans-serif;
  color: #ffffff;
}

.article-calc__hint {
  font-size: 13px;
  color: #a2c4db;
  margin-top: 4px;
}

.article-calc__body {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 20px;
  align-items: center;
}

.article-calc__col label {
  display: block;
  font-size: 13px;
  color: #cde0ed;
  margin-bottom: 8px;
  font-weight: 600;
}

.article-calc__input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  outline: none;
  transition: all 0.2s ease;
}

.article-calc__input:focus {
  border-color: #16b37b;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 14px rgba(22, 179, 123, 0.3);
}

.article-calc__results {
  display: flex;
  gap: 16px;
}

.article-calc__res-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex: 1;
}

.article-calc__res-label {
  display: block;
  font-size: 11.5px;
  color: #a2c4db;
  margin-bottom: 2px;
}

.article-calc__res-val {
  font-size: 17px;
  font-weight: 800;
  color: #16b37b;
}

.article-calc__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #16b37b 0%, #00e699 100%);
  color: #0b2219 !important;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.article-calc__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 230, 153, 0.4);
}

/* 4. Карточка эксперта ОТК */
.article-expert {
  margin: 40px 0;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #dce8ef;
  border-radius: 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 12px 28px rgba(19, 53, 74, 0.05);
}

.article-expert__avatar {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}

.article-expert__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #16b37b;
}

.article-expert__badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #16b37b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 2px solid #ffffff;
}

.article-expert__info {
  flex: 1;
}

.article-expert__role {
  font-size: 12px;
  font-weight: 800;
  color: #16b37b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.article-expert__name {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: #163047;
}

.article-expert__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #557284;
}

/* 5. Плавающее смарт-меню чтения (Floating Bar) */
.article-floating-bar {
  position: fixed;
  right: 24px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 8px;
  border-radius: 999px;
  border: 1px solid #dce8ef;
  box-shadow: 0 10px 30px rgba(19, 53, 74, 0.12);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.article-floating-bar__progress {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-floating-circle {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: #e2edf3;
  stroke-width: 3.5;
}

.circle-progress {
  fill: none;
  stroke: #16b37b;
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dasharray 0.1s ease;
}

.article-floating-percent {
  position: absolute;
  font-size: 10px;
  font-weight: 800;
  color: #163047;
}

.article-floating-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #dce8ef;
  background: #ffffff;
  color: #163047;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.article-floating-btn:hover {
  background: #006591;
  color: #ffffff !important;
  transform: scale(1.1);
}

.article-floating-btn--wa {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

.article-floating-btn--wa:hover {
  background: #1ebc59;
}

/* Размер шрифта статьи (динамический) */
.article-body-wrapper.font-size-small .article-content-text {
  font-size: 14px !important;
}
.article-body-wrapper.font-size-large .article-content-text {
  font-size: 18px !important;
}

/* Адаптивность для мобильных */
@media (max-width: 991px) {
  .article-calc__body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .article-expert {
    flex-direction: column;
    text-align: center;
  }
  .article-floating-bar {
    right: 12px;
    bottom: 20px;
  }
}

/* ───────── 12. ЗАКЛАДКИ КАРТОЧЕК И БЛОК ЧИТАЙТЕ ТАКЖЕ ───────── */

/* Кнопка закладки на карточке */
.articles-card__bookmark {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: #597385;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  z-index: 4;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.articles-card__bookmark:hover {
  background: #ffffff;
  color: #ff9800;
  transform: scale(1.15);
}

.articles-card__bookmark.is-active {
  background: #ff9800;
  border-color: #ff9800;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 152, 0, 0.4);
}

/* Чип Избранное */
.articles-chip--bookmarks {
  background: #fff8e6;
  border-color: #ffd166;
  color: #b37400;
}

.articles-chip--bookmarks:hover,
.articles-chip--bookmarks.is-active {
  background: #ff9800 !important;
  border-color: #ff9800 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 152, 0, 0.35) !important;
}

/* Блок «Читайте также» в конце статьи */
.article-adjacent-nav {
  margin: 48px 0 20px;
  padding-top: 32px;
  border-top: 2px solid #eef4f8;
}

.article-adjacent-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: #163047;
  font-family: 'Unbounded', 'Manrope', sans-serif;
  margin-bottom: 20px;
}

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

.article-adjacent-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #dce8ef;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 10px 26px rgba(19, 53, 74, 0.04);
}

.article-adjacent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(19, 53, 74, 0.1);
  border-color: #006591;
}

.article-adjacent-badge {
  padding: 8px 16px;
  background: #f0f7fb;
  color: #006591;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #eef4f8;
}

.article-adjacent-media {
  width: 100%;
  height: 140px;
  overflow: hidden;
}

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

.article-adjacent-card:hover .article-adjacent-media img {
  transform: scale(1.06);
}

.article-adjacent-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-adjacent-time {
  font-size: 12px;
  color: #78909c;
  font-weight: 600;
}

.article-adjacent-name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: #163047;
  transition: color 0.15s ease;
}

.article-adjacent-card:hover .article-adjacent-name {
  color: #006591;
}

/* Интерактивное копирование строк технических таблиц */
.content table tr {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.content table tr:hover td {
  background-color: #e8f4fa !important;
}

/* ───────── 13. ИНТЕРАКТИВНЫЙ МОДАЛЬНЫЙ МЕТАЛЛО-КАЛЬКУЛЯТОР ───────── */

.articles-btn--calc {
  background: linear-gradient(135deg, #0e273c 0%, #174061 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 22px rgba(14, 39, 60, 0.25);
  cursor: pointer;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.articles-btn--calc:hover {
  background: linear-gradient(135deg, #174061 0%, #16b37b 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(22, 179, 123, 0.3);
}

.metal-calc-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.metal-calc-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 30, 44, 0.75);
  backdrop-filter: blur(8px);
}

.metal-calc-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(11, 30, 44, 0.35);
  border: 1px solid #dce8ef;
  padding: 28px 32px;
  z-index: 2;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.metal-calc-modal__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f0f6fa;
  color: #557284;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.metal-calc-modal__close:hover {
  background: #ff4e50;
  color: #ffffff;
  transform: rotate(90deg);
}

.metal-calc-modal__header h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: #163047;
  font-family: 'Unbounded', 'Manrope', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.metal-calc-modal__header p {
  margin: 0 0 16px;
  font-size: 13px;
  color: #607d8b;
}

.metal-calc-modal__tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.metal-calc-tab {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #dce8ef;
  background: #f4fafc;
  color: #3b586c;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.metal-calc-tab:hover {
  border-color: #006591;
  color: #006591;
}

.metal-calc-tab.is-active {
  background: #006591;
  border-color: #006591;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 101, 145, 0.25);
}

.metal-calc-modal__form {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.metal-calc-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #2c495d;
  margin-bottom: 6px;
}

.metal-calc-select,
.metal-calc-input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #dce8ef;
  background: #fbfdfe;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #163047;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.metal-calc-select:focus,
.metal-calc-input:focus {
  border-color: #16b37b;
  box-shadow: 0 0 0 3px rgba(22, 179, 123, 0.15);
}

.metal-calc-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metal-calc-modal__results {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.metal-calc-res-box {
  background: #f0f7fb;
  border: 1px solid #d8eaf4;
  border-radius: 16px;
  padding: 12px 16px;
}

.metal-calc-res-title {
  display: block;
  font-size: 11.5px;
  color: #607d8b;
  font-weight: 600;
  margin-bottom: 3px;
}

.metal-calc-res-value {
  font-size: 20px;
  font-weight: 900;
  color: #006591;
  font-family: 'Unbounded', 'Manrope', sans-serif;
}

.metal-calc-modal__footer .articles-btn {
  width: 100%;
  justify-content: center;
  font-size: 14.5px;
  padding: 12px;
}

/* ───────── 14. РЕКОМЕНДУЕМЫЙ МЕТАЛЛОПРОКАТ ИЗ КАТАЛОГА ───────── */

.article-catalog-block {
  margin: 36px 0;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #dce8ef;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(19, 53, 74, 0.04);
}

.article-catalog-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.article-catalog-block__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #163047;
  font-family: 'Unbounded', 'Manrope', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-catalog-block__badge {
  font-size: 12px;
  font-weight: 700;
  color: #16b37b;
  background: #eef9f5;
  padding: 4px 12px;
  border-radius: 999px;
}

.article-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.article-catalog-card {
  border: 1px solid #eef4f8;
  border-radius: 16px;
  padding: 12px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.article-catalog-card:hover {
  border-color: #006591;
  box-shadow: 0 10px 24px rgba(0, 101, 145, 0.08);
  transform: translateY(-3px);
}

.article-catalog-card__media {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-catalog-card__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.article-catalog-card:hover .article-catalog-card__media img {
  transform: scale(1.08);
}

.article-catalog-card__stock {
  font-size: 11px;
  font-weight: 700;
  color: #16b37b;
  margin-bottom: 4px;
}

.article-catalog-card__name {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  flex: 1;
}

.article-catalog-card__name a {
  color: #163047;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.article-catalog-card__name a:hover {
  color: #006591;
}

.article-catalog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f4f7;
}

.article-catalog-card__price {
  font-size: 15px;
  font-weight: 900;
  color: #006591;
}

.article-catalog-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #25d366;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.article-catalog-card__btn:hover {
  background: #1ebc59;
  transform: scale(1.05);
}

/* ───────── 15. ПРЕМИАЛЬНАЯ МОБИЛЬНАЯ АДАПТАЦИЯ (MOBILE EXCELLENCE) ───────── */

@media (max-width: 767px) {
  /* Защита от переполнения и горизонтального скролла */
  .articles-page-wrapper,
  .article-body-wrapper {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Свайп-лента тем (Topicbar) */
  .articles-topicbar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 4px;
    margin: 0 -4px;
  }
  .articles-topicbar::-webkit-scrollbar {
    display: none;
  }
  .articles-topicbar__item {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Свайп-лента быстрых чипов */
  .articles-chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding: 8px 10px;
    margin: 0 -4px;
    border-radius: 14px;
  }
  .articles-chips::-webkit-scrollbar {
    display: none;
  }
  .articles-chip {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Hero-блок на мобильном */
  .articles-hero {
    padding: 20px 16px;
    border-radius: 20px;
  }
  .articles-title {
    font-size: 24px !important;
    line-height: 1.15;
  }
  .articles-hero__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .articles-hero__fact {
    min-height: 34px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
  .articles-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }
  .articles-hero__actions .articles-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 14px;
  }

  /* Панель поиска и контролов */
  .articles-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
  }
  .articles-controls__field--search {
    grid-column: 1 / -1;
  }
  .articles-view-toggle {
    grid-column: 1 / 2;
  }
  .articles-controls__field--sort {
    grid-column: 2 / 3;
  }

  /* Карточки статей на мобильном */
  .articles-card {
    border-radius: 20px;
  }
  .articles-card__media {
    height: 190px !important;
  }
  .articles-card__body {
    padding: 16px;
  }
  .articles-card__title {
    font-size: 16px;
    line-height: 1.3;
  }

  /* Плавающее смарт-меню на мобильном */
  .article-floating-bar {
    right: 12px;
    bottom: 80px;
    padding: 6px;
    gap: 8px;
    border-radius: 24px;
  }
  .article-floating-bar__progress,
  .article-floating-btn {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  /* Модальное окно калькулятора */
  .metal-calc-modal__dialog {
    padding: 20px 16px;
    border-radius: 22px;
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .metal-calc-modal__header h3 {
    font-size: 17px;
  }
  .metal-calc-field-row,
  .metal-calc-modal__results {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Сетка каталога в статье */
  .article-catalog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .article-catalog-card {
    padding: 8px;
  }
  .article-catalog-card__media {
    height: 90px;
  }
  .article-catalog-card__name {
    font-size: 12px;
  }
  .article-catalog-card__price {
    font-size: 13px;
  }
  .article-catalog-card__btn {
    padding: 4px 8px;
    font-size: 11px;
  }

  /* Блок Читайте также на мобильном */
  .article-adjacent-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .article-catalog-grid {
    grid-template-columns: 1fr;
  }
  .articles-hero__facts {
    grid-template-columns: 1fr;
  }
}

/* ───────── 16. ДВУХКОЛОНОЧНЫЙ МАКЕТ СТАТЬИ, SCROLLSPY И ОЦЕНКА ───────── */

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

.article-layout-content {
  min-width: 0;
}

.article-sidebar-sticky {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 10;
}

.article-side-card {
  background: #ffffff;
  border: 1px solid #dce8ef;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(19, 53, 74, 0.04);
}

/* Scrollspy оглавление */
.article-side-card--toc {
  max-height: calc(100vh - 380px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.article-side-card__header h4 {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 800;
  color: #163047;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-side-toc {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-side-toc__link {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #4a687a !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}

.article-side-toc__link--sub {
  padding-left: 18px;
  font-size: 11.5px;
  color: #6c8a9c !important;
}

.article-side-toc__link:hover {
  background: #f0f7fb;
  color: #006591 !important;
}

.article-side-toc__link.is-active {
  background: #eaf5fb;
  color: #006591 !important;
  font-weight: 800;
  border-left: 3px solid #16b37b;
  padding-left: 12px;
}

/* Карточка инженера в сайдбаре */
.article-side-card--cta {
  background: linear-gradient(135deg, #0e273c 0%, #174061 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 20px 16px;
}

.article-side-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(22, 179, 123, 0.25);
  color: #38ef7d;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 12px;
  border: 1px solid rgba(56, 239, 125, 0.3);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38ef7d;
  box-shadow: 0 0 8px #38ef7d;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.article-side-cta__avatar {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #16b37b;
}

.article-side-cta__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-side-cta__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.article-side-cta__desc {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.4;
  color: #a2c4db;
}

.article-side-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.article-side-cta__phone:hover {
  color: #16b37b !important;
}

/* Карточка печати в сайдбаре */
.article-side-card--print {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}

.article-side-print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #dce8ef;
  background: #f8fafc;
  color: #3b586c;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.article-side-print-btn:hover {
  background: #006591;
  color: #ffffff;
  border-color: #006591;
}

/* Иконка якорного копирования на заголовках H2/H3 */
.article-heading-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  color: #b0c4cf !important;
  font-size: 14px;
  text-decoration: none !important;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
  vertical-align: middle;
}

h2:hover .article-heading-anchor,
h3:hover .article-heading-anchor {
  opacity: 1;
}

.article-heading-anchor:hover {
  color: #16b37b !important;
  transform: scale(1.2);
}

/* Блок оценки полезности статьи */
.article-feedback {
  margin: 36px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, #fbfdfe 0%, #f0f7fb 100%);
  border: 1px solid #dce8ef;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(19, 53, 74, 0.04);
}

.article-feedback__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: #163047;
}

.article-feedback__hint {
  margin: 0;
  font-size: 13px;
  color: #557284;
}

.article-feedback__actions {
  display: flex;
  gap: 10px;
}

.article-feedback__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #dce8ef;
  background: #ffffff;
  color: #163047;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.article-feedback__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.article-feedback__btn--like:hover,
.article-feedback__btn--like.is-voted {
  background: #16b37b;
  border-color: #16b37b;
  color: #ffffff;
}

.article-feedback__btn--dislike:hover,
.article-feedback__btn--dislike.is-voted {
  background: #78909c;
  border-color: #78909c;
  color: #ffffff;
}

.article-feedback__btn.is-disabled {
  pointer-events: none;
  opacity: 0.6;
}

@media (max-width: 991px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .article-sidebar-sticky {
    display: none;
  }
  .article-feedback {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ───────── 17. БЕЗОГОВОРОЧНЫЙ ЗАПРЕТ ДУБЛИРОВАНИЯ ASPRO ШАПКИ И ХЛЕБНЫХ КРОШЕК ───────── */
body.blog-page-clean .page-top-info,
.body__inner:has(.articles-page-wrapper) .page-top-info,
.body__inner:has(.article-header) .page-top-info,
.articles-page-wrapper ~ .page-top-info,
.detail-maxwidth ~ .page-top-info,
.page-top-info:has(#navigation a[href*="/blog"]) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}







