/* Стиль статей блога. Подключается после pages.css, переопределяет ширину и добавляет
   визуальные блоки: герой с фото, плитки цифр, графики на SVG, таймлайн, форма, карточка автора. */

.wrap.art { max-width: 920px; }
.art-hero { margin: 18px 0 8px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; }
.art-hero .badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: #FFF1EE; color: var(--red); font-size: 12.5px; font-weight: 750; letter-spacing: .3px;
}
.art-hero h1 { margin-top: 12px; }
.art-hero img { width: 100%; height: 100%; max-height: 330px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.meta b { color: var(--graphite); }

.fig { margin: 26px 0; }
.fig img { width: 100%; border-radius: 14px; border: 1px solid var(--line); display: block; }
.fig figcaption { margin-top: 8px; color: var(--muted); font-size: 12.5px; }

/* плитки цифр */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.stat { padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.stat b { display: block; color: var(--green-d); font-size: 28px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.stat.red b { color: var(--red); }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* срочность */
.alert {
  margin: 22px 0; padding: 16px 18px; border-radius: 12px;
  background: #FFF6F4; border: 1px solid #F3D3CC; border-left: 4px solid var(--red); font-size: 15px;
}
.alert b { color: var(--red); }

/* таймлайн «что делать в 10 дней» */
.timeline { list-style: none; margin: 22px 0; padding: 0; counter-reset: step; position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; margin: 0 0 16px; padding: 0 0 0 58px; counter-increment: step; }
.timeline li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px #fff;
}
.timeline li b { display: block; font-size: 16px; }
.timeline li .when { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; background: var(--tint); color: var(--green-d); font-size: 12px; font-weight: 750; }
.timeline li p { margin: 4px 0 0; color: #3C4A42; font-size: 14.5px; }

/* графики */
.chart { margin: 24px 0; padding: 18px 18px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.chart h3 { margin: 0 0 2px; font-size: 16px; }
.chart .cap { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .src { margin-top: 8px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; margin: 10px 0; font-size: 13.5px; }
.bar-row .bar { height: 26px; border-radius: 6px; background: var(--green); color: #fff; font-weight: 750; font-size: 12.5px; display: flex; align-items: center; padding-left: 9px; min-width: 40px; white-space: nowrap; }
.bar-row .bar.red { background: var(--red); }
.bar-row .bar.dark { background: #3C4A42; }
.bar-row .bar.light { background: #9CCBAB; color: var(--graphite); }

/* сравнение «сами / с нами» */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.vs > div { padding: 18px; border-radius: 14px; border: 1px solid var(--line); }
.vs .bad { background: #FFF8F6; }
.vs .good { background: var(--tint); border-color: #CBDDD1; }
.vs h3 { margin: 0 0 8px; font-size: 16px; }
.vs ul { margin: 0 0 0 18px; font-size: 14px; }

/* цена */
.price {
  margin: 26px 0; padding: 22px 24px; border-radius: 16px; background: var(--tint); color: var(--graphite); border: 1px solid #CBDDD1;
  display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; align-items: center;
}
.price .sum { font-size: 34px; font-weight: 800; letter-spacing: -.8px; line-height: 1.1; }
.price .sum { color: var(--green-d); }
.price .sum small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price ul { margin: 0 0 0 18px; font-size: 14.5px; }
.price li { margin-bottom: 4px; }

/* заметные ссылки-призывы внутри текста */
.inline-cta {
  margin: 24px 0; padding: 16px 20px; border-radius: 14px; background: var(--tint);
  display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between;
}
.inline-cta p { margin: 0; font-weight: 700; flex: 1 1 320px; }

/* форма заявки */
.lead-box { margin: 34px 0; padding: 26px; border-radius: 18px; background: var(--tint); border: 1px solid #CBDDD1; scroll-margin-top: 20px; }
.lead-box h2 { margin: 0 0 6px; font-size: 24px; }
.lead-box > p { margin: 0 0 16px; color: #3C4A42; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-form input, .lead-form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #CBDDD1; border-radius: 10px; background: #fff;
  font: inherit; font-size: 15px; color: var(--graphite);
}
.lead-form textarea { grid-column: 1 / -1; min-height: 76px; resize: vertical; }
.lead-form .consent { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.lead-form .consent input { width: auto; margin-top: 3px; }
.lead-form .full { grid-column: 1 / -1; border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 15px; }
.lead-form .hp { position: absolute; left: -9999px; }
.form-msg { grid-column: 1 / -1; font-size: 14px; min-height: 20px; }
.form-msg.ok { color: var(--green-d); font-weight: 700; }
.form-msg.err { color: var(--red); font-weight: 700; }
.lead-box .alt { margin-top: 12px; font-size: 14px; color: #3C4A42; }

/* автор */
.author { display: flex; gap: 16px; align-items: center; margin: 34px 0 10px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--light); }
.author .ava {
  flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800;
}
.author b { display: block; font-size: 16px; }
.author span { color: var(--muted); font-size: 13.5px; }

/* мобильная липкая кнопка */
.sticky { display: none; }
@media (max-width: 760px) {
  .art-hero { grid-template-columns: 1fr; }
  .art-hero img { max-height: 220px; order: -1; }
  .stats { grid-template-columns: 1fr; }
  .vs { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: 4px; }
  .price { grid-template-columns: 1fr; }
  .lead-form { grid-template-columns: 1fr; }
  .lead-box { padding: 20px 16px; }
  .sticky { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; }
  .sticky .btn { display: block; text-align: center; box-shadow: 0 6px 22px rgba(0,0,0,.22); }
  body { padding-bottom: 70px; }
}
