/* ============================================================
   Статья блога — надстройка над sv2026.css и sv-blog.css
   ============================================================ */
.art-head { padding-block: 30px 26px; }
.art-head .sv-wrap { max-width: 900px; }
.art-head .sv-label a { color: inherit; }
.art-head .sv-label a:hover { color: var(--orange-ink); }
.art h1 { margin-top: 14px; font-size: clamp(28px, 6vw, 44px); line-height: 1.1; }
.art h1 mark { background: none; color: var(--orange); }
.art-lede { margin-top: 16px; font-size: 17px; font-weight: 600; color: var(--ink); }
.art-head .sv-lede + .sv-lede { margin-top: 12px; font-weight: 400; color: var(--body); font-size: 16px; }

/* тело статьи: одна колонка чтения */
.art-body { padding-block: 30px 44px; }
.art-body .sv-wrap { max-width: 860px; }
.art-body h2 {
  margin: 40px 0 12px; font-size: clamp(21px, 3vw, 27px); line-height: 1.2;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.art-body h3 { margin: 26px 0 10px; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.25; }
.art-body h4 { margin: 20px 0 8px; font-size: 17px; }
.art-body p { margin: 12px 0; font-size: 16.5px; line-height: 1.68; color: var(--body); }
.art-body ul, .art-body ol { margin: 14px 0; padding-left: 0; }
.art-body li {
  position: relative; margin: 8px 0; padding-left: 26px;
  font-size: 16.5px; line-height: 1.62; color: var(--body); list-style: none;
}
.art-body li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 8px; height: 8px; background: var(--orange);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.art-body ol { counter-reset: art; }
.art-body ol li::before {
  counter-increment: art; content: counter(art); clip-path: none; background: none;
  left: 0; top: 0; width: auto; height: auto;
  font-size: 13px; font-weight: 800; color: var(--orange-ink);
}
.art-body a { border-bottom: 1px solid rgba(206,68,9,.4); }
.art-body a:hover { border-bottom-color: var(--orange); }
.art-body strong { color: var(--ink); font-weight: 700; }
.art-body mark { background: none; color: var(--orange); }

/* снимок в чертёжной оправе, без чёрных рамок.
   Высота снимка ограничена одинаково во всех статьях, а оправа обтягивает кадр:
   так вертикальное фото не растёт на пол-экрана и не оставляет белых полей. */
.art-shot {
  position: relative; margin: 24px auto; padding: 8px;
  width: fit-content; max-width: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel); box-shadow: var(--shadow); overflow: hidden;
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}
.art-shot img { display: block; width: auto; max-width: 100%; height: auto; max-height: 260px; }
.art-shot > * { box-shadow: none !important; border-radius: 0 !important; }

/* снимок во всю колонку: иллюстрации и скриншоты интерфейса читаются только крупно.
   Специфичность двойная (.art-shot.art-shot--wide) намеренно: ниже в файле лежит
   медиазапрос .art-shot img { max-height: 420px }, он бы обрезал высоту и растянул кадр. */
.art-shot--wide { flex-direction: column; width: 100%; padding: 10px; }
.art-shot.art-shot--wide picture { display: block; width: 100%; }
.art-shot.art-shot--wide img { display: block; width: 100%; max-width: 100%; height: auto; max-height: none; }

/* вертикальный кадр: --wide растянул бы портрет на всю колонку 860 px и он занял бы
   полтора экрана, а общий потолок 420 px ужимает его до 314 px — мелко, на снимке
   приёмки перестают читаться номера заказов. Отдельный потолок даёт ~420 px ширины.
   Специфичность двойная — по той же причине, что у --wide. */
.art-shot.art-shot--tall img { max-height: 560px; }

/* подпись всегда ПОД снимком, не сбоку */
.art-shot { flex-direction: column; }
.art-shot figcaption {
  align-self: stretch; margin: 10px 4px 2px; text-align: center;
  font-size: 13.5px; line-height: 1.45; color: var(--muted);
}
.art-shot figcaption::before { content: "— "; color: var(--orange); }

/* белая панель внутри статьи */
.art-panel {
  position: relative; margin: 16px 0; padding: 22px 24px;
  background: var(--panel); box-shadow: var(--shadow); overflow: hidden;
  clip-path: polygon(var(--ch) 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%, 0 var(--ch));
}
.art-panel::after { content: ""; position: absolute; left: 0; top: 0; width: 42px; height: 3px; background: var(--orange); }
.art-panel h3 { margin-top: 0; }
.art-panel p:last-child { margin-bottom: 0; }
.art-cards { display: grid; gap: 14px; margin: 18px 0; }
.art-cards .art-panel { margin: 0; height: 100%; }

/* вывод и заметка */
.art-note {
  position: relative; margin: 24px 0; padding: 20px 24px 20px 26px;
  background: var(--paper-2); border-left: 3px solid var(--orange);
}
.art-note h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: .01em; }
.art-note p { margin: 6px 0 0; color: var(--ink); }
.art-note p:last-child { margin-bottom: 0; }

/* числа */
.art-stats { display: grid; gap: 12px; margin: 20px 0; }
.art-stat {
  padding: 18px 20px; background: var(--panel); box-shadow: var(--shadow);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.art-stat b { display: block; font-size: 26px; font-weight: 800; color: var(--orange); line-height: 1.1; }
.art-stat span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--body); }

/* фоновые приёмы секций статьи: у соседних разные, как на посадочных страницах */
.art-head { position: relative; overflow: hidden; }
.art-head::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 260px; height: 260px;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 14px 14px; opacity: .5; pointer-events: none;
}
.art-body { position: relative; overflow: hidden; }
.art-body::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 10px, transparent 10px 24px);
  opacity: .8; pointer-events: none;
}
.art-more { position: relative; overflow: hidden; }
.art-more::before {
  content: ""; position: absolute; left: -60px; bottom: -60px; width: 300px; height: 300px;
  border: 1px solid var(--line-soft); border-radius: 50%; opacity: .7; pointer-events: none;
}

/* цитата клиента — не пункт списка, а отдельная реплика */
.art-quotes { display: grid; gap: 10px; margin: 18px 0; }
.art-quote {
  position: relative; margin: 0; padding: 14px 18px 14px 44px;
  background: var(--panel); box-shadow: var(--shadow);
  font-size: 16px; line-height: 1.5; color: var(--ink);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.art-quote::before {
  content: "”"; position: absolute; left: 14px; top: 6px;
  font-size: 34px; line-height: 1; color: var(--orange); font-weight: 700;
}
.art-quote cite { display: block; margin-top: 6px; font-size: 12.5px; font-style: normal; color: var(--muted); }

/* вопрос — ответ с бейджами; тот же блок уходит в FAQPage */
.art-faq { display: grid; gap: 10px; margin: 22px 0; }
.art-faq__row {
  display: grid; gap: 4px 14px; align-items: start;
  grid-template-columns: auto 1fr; padding: 16px 18px;
  background: var(--panel); box-shadow: var(--shadow);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
/* позиции задаём явно: авторазмещение уводило ответ в третью колонку */
.art-badge {
  grid-column: 1; grid-row: 1 / span 2;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 10px;
  background: var(--orange); color: #fff; font-size: 14px; font-weight: 700; line-height: 1;
}
.art-faq__q { grid-column: 2; grid-row: 1; margin: 0; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.art-faq__a { grid-column: 2; grid-row: 2; margin: 0; font-size: 15px; line-height: 1.55; color: var(--body); }

/* врезка-ссылка на другую статью с мини-картинкой */
.art-inset {
  display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center;
  margin: 22px 0; padding: 14px 18px 14px 14px; color: inherit; text-decoration: none;
  background: var(--panel); box-shadow: var(--shadow);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.art-inset img { display: block; width: 84px; height: 84px; object-fit: cover; }
.art-inset b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.art-inset i { display: block; margin-top: 4px; font-style: normal; font-size: 16px; font-weight: 700; color: var(--ink); }
.art-inset span { display: block; margin-top: 3px; font-size: 14px; color: var(--body); }
.art-inset:hover i { color: var(--orange); }

/* таблица */
.art-table { margin: 20px 0; overflow-x: auto; background: var(--panel); box-shadow: var(--shadow); }
.art-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.art-table th, .art-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.art-table th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.art-table tr:last-child td { border-bottom: 0; }

.art-more { padding-block: 40px 46px; }

@media (min-width: 700px) {
  .art-cards { grid-template-columns: 1fr 1fr; }
  .art-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .art-shot img { max-height: 420px; }
  .art-head { padding-block: 44px 30px; }
  .art-body { padding-block: 36px 56px; }
  .art-body p, .art-body li { font-size: 17px; }
  .art-lede { font-size: 19px; }
}


/* Таблица со многими колонками на мобильном разворачивается в карточки:
   иначе третья колонка уезжает за экран и читатель её не видит. */
@media (max-width: 700px) {
  .art-table--stack { overflow-x: visible; background: transparent; box-shadow: none; }
  .art-table--stack thead { display: none; }
  .art-table--stack table, .art-table--stack tbody, .art-table--stack tr, .art-table--stack td { display: block; width: 100%; }
  .art-table--stack tr { background: var(--panel); box-shadow: var(--shadow); margin: 0 0 12px; padding: 14px 16px; }
  .art-table--stack td { border-bottom: 0; padding: 3px 0; }
  .art-table--stack td:first-child { font-weight: 600; font-size: 17px; margin-bottom: 6px; }
  .art-table--stack td[data-l]:before { content: attr(data-l); display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
}
