/* =============================================================
   СТИЛИ ДЛЯ КОНТЕНТА СТАТЕЙ MODX — article-content
   Подключить в [[$meta]] или в основной CSS-файл темы.
   Покрывает: [[*content]], [[*desc1]], [[*desc2]]
   ============================================================= */

/* -------------------------------------------------------
   1. ОБЁРТКА КОНТЕНТА
------------------------------------------------------- */
.article-content,
.article-text {
  font-family: 'Tahoma', 'Arial', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  text-align: left;
}

/* Отступы между блоками */
.article-content > * + *,
.article-text > * + * {
  margin-top: 1rem;
}

/* -------------------------------------------------------
   2. ЗАГОЛОВКИ ВНУТРИ КОНТЕНТА
------------------------------------------------------- */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content h2 {
  font-size: clamp(18px, 3vw, 24px);
  border-left: 4px solid #e8a000;   /* акцентная полоска — замените цвет под тему */
  padding-left: 12px;
}

.article-content h3 {
  font-size: clamp(16px, 2.5vw, 20px);
  color: #2c2c2c;
}

.article-content h4 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #555;
}

/* -------------------------------------------------------
   3. ПАРАГРАФЫ
------------------------------------------------------- */
.article-content p {
  margin: 0 0 1rem;
}

/* -------------------------------------------------------
   4. ССЫЛКИ
------------------------------------------------------- */
.article-content a {
  color: #e8a000;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.article-content a:hover {
  color: #b87c00;
  text-decoration: none;
}

/* -------------------------------------------------------
   5. СПИСКИ (ul / ol)
------------------------------------------------------- */
.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}

.article-content ul {
  list-style: none;
  padding-left: 0;
}

.article-content ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
}

.article-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #e8a000;
  font-weight: 700;
}

.article-content ol {
  list-style: decimal;
}

.article-content ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.3rem;
}

.article-content ol li b,
.article-content ol li strong {
  color: #1a1a1a;
}

/* -------------------------------------------------------
   6. ТАБЛИЦА ПРАЙСА (адаптивная)
   Структура: <table> внутри [[*content]]
------------------------------------------------------- */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 1.5rem 0;
}

/* Обёртка для горизонтального скролла на мобильных */
.article-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@supports (display: table) {
  .article-content table {
    display: table;
    overflow-x: unset;
  }
}

/* На мобильных — принудительный скролл */
@media (max-width: 576px) {
  .article-content table {
    display: block !important;
    overflow-x: auto !important;
  }
}

.article-content thead th,
.article-content table th {
  background: #333;
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  white-space: nowrap;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-content tbody tr:nth-child(even) td {
  background: #f7f7f7;
}

.article-content tbody tr:hover td {
  background: #fff5e0;
}

.article-content td {
  padding: 9px 14px;
  border-bottom: 1px solid #e5e5e5;
  color: #333;
  vertical-align: middle;
}

/* Правая колонка «цена» — выравнивание и акцент */
.article-content td:last-child {
  font-weight: 600;
  color: #c07000;
  white-space: nowrap;
}

/* -------------------------------------------------------
   7. ИЗОБРАЖЕНИЕ СТАТЬИ
------------------------------------------------------- */
.article-image {
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* -------------------------------------------------------
   8. ССЫЛКА НА КАТАЛОГ
------------------------------------------------------- */
.spectech-catalog-link {
  display: inline-block;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 700;
  color: #333;
  text-decoration: none;
  border-bottom: 2px solid #e8a000;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.spectech-catalog-link:hover {
  color: #e8a000;
  text-decoration: none;
}

/* -------------------------------------------------------
   9. КАРТОЧКИ СПЕЦТЕХНИКИ (spectech-grid)
------------------------------------------------------- */
.spectech-block {
  margin: 24px 0;
}

.spectech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 900px) {
  .spectech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .spectech-grid { grid-template-columns: 1fr; }
}

.spectech-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.spectech-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.16);
}

.spectech-card a.spectech-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.spectech-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #f4f4f4;
}

@media (max-width: 560px) {
  .spectech-card-img { height: 220px; }
}

.spectech-card-body {
  padding: 12px 14px 0;
  flex: 1;
}

.spectech-card-title {
  font-family: 'Tahoma', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #222;
  line-height: 1.35;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}

.spectech-card-price {
  display: flex;
  align-items: center;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  margin: 0 0 14px;
  font-size: 13px;
  overflow: hidden;
  font-family: 'Tahoma', sans-serif;
}

.spectech-price-label {
  flex: 1;
  padding: 6px 10px;
  background: #f0f0f0;
  color: #444;
  white-space: nowrap;
}

.spectech-price-val {
  padding: 6px 12px;
  color: #222;
  font-weight: 600;
  white-space: nowrap;
}

/* -------------------------------------------------------
   10. ОБЩИЙ АДАПТИВ ШАБЛОНА
------------------------------------------------------- */

/* Отступ шапки раздела */
.main-container {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Gap-утилиты */
.gap-40 { height: 40px; }
.gap-60 { height: 60px; }

@media (max-width: 768px) {
  .gap-40 { height: 20px; }
  .gap-60 { height: 30px; }

  .banner-title {
    font-size: clamp(20px, 5vw, 32px);
  }

  /* CTA блок — кнопка на всю ширину на мобильном */
  .call-to-action .btn {
    width: 100%;
    text-align: center;
  }

  /* Кнопки в баннере — вертикально */
  .banner-heading p {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .banner-heading p .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .article-content,
  .article-text {
    font-size: 14px;
  }
}
