/*
  Общая дизайн-система лендингов «БИССКо».
  Подключение на странице: <link rel="stylesheet" href="css/style.css">
  (для файлов в подпапках — ../../css/style.css и т.п.)
  Специфичные для конкретной страницы блоки остаются в небольшом <style> на самой странице.
*/

:root {
  --ink: #1a1919;
  --muted: #77746f;
  --line: #eceae6;
  --paper: #ffffff;
  --soft: #fdfbe7;
  --soft-blue: #edf5ff;
  --accent: #1d57e9;
  --accent-hover: #1345c3;
  --content: 700px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.sitebar {
  height: 58px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.sitebar__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.sitebar__note {
  color: var(--muted);
  font-size: 13px;
}

.page {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.author__avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author__meta { min-width: 0; }

.author__name {
  display: block;
  font-weight: 750;
  line-height: 1.25;
}

.author__handle {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.author__follow {
  margin-left: auto;
  padding: 7px 14px;
  border: 1px solid #bcb9b4;
  border-radius: 7px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

article > * { max-width: var(--content); }

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.4vw, 36px);
  line-height: 1.16;
  font-weight: 800;
}

h2 {
  margin-top: 40px;
  margin-bottom: 14px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
}

h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 780;
}

.lead {
  margin: 0 0 28px;
  color: #383632;
  font-size: 21px;
  line-height: 1.42;
  font-weight: 650;
}

p { margin: 0 0 15px; }

strong { font-weight: 750; }

em { color: #4f4b46; }

hr {
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: var(--line);
}

ul, ol {
  margin: 0 0 20px;
  padding-left: 27px;
}

li { margin: 7px 0; }

.media-placeholder {
  position: relative;
  min-height: 330px;
  margin: 28px 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #c9c5bd;
  border-radius: 10px;
  color: #858078;
  background:
    linear-gradient(135deg, transparent 49.6%, #ddd9d1 50%, transparent 50.4%),
    linear-gradient(45deg, transparent 49.6%, #ddd9d1 50%, transparent 50.4%),
    #f7f6f3;
  background-size: 100% 100%;
}

.media-placeholder--wide { min-height: 240px; }

.media-placeholder__label {
  padding: 9px 13px;
  border: 1px solid #dedad3;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
  max-width: 80%;
}

.callout {
  margin: 22px 0;
  padding: 20px;
  border-radius: 7px;
  background: var(--soft);
}

.callout p:last-child,
.result p:last-child,
.guarantee p:last-child { margin-bottom: 0; }

.callout--blue { background: var(--soft-blue); }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.steps {
  margin: 22px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line);
}

.steps li {
  counter-increment: step;
  position: relative;
  min-height: 74px;
  margin: 0;
  padding: 18px 0 18px 54px;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.steps strong { display: block; }

.result {
  margin: 26px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  background: #f6f8ff;
}

.checklist {
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  margin: 10px 0;
  padding-left: 31px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: #0a8a53;
  font-weight: 900;
}

.quote {
  margin: 28px 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--ink);
  font-size: 21px;
  line-height: 1.45;
  font-weight: 650;
}

.guarantee {
  margin: 28px 0;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 10px;
}

.guarantee__badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 5px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.price {
  margin: 36px 0 22px;
  text-align: center;
}

.price__old {
  color: var(--muted);
  font-size: 16px;
  text-decoration: line-through;
}

.price__current {
  margin: 3px 0 6px;
  font-size: clamp(42px, 8vw, 62px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.price__note { color: var(--muted); font-size: 14px; }

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  margin-top: 20px;
  padding: 16px 24px;
  border-radius: 9px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(29, 87, 233, .2);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.cta:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 12px 30px rgba(29, 87, 233, .26);
}

.cta:focus-visible {
  outline: 3px solid rgba(29, 87, 233, .35);
  outline-offset: 4px;
}

.afterword {
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.legal {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.legal p { margin: 0 0 6px; }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .sitebar__note { display: none; }
  .page { width: min(100% - 28px, var(--content)); padding-top: 30px; }
  .author__follow { display: none; }
  h1 { font-size: clamp(29px, 8.8vw, 36px); }
  h2 { font-size: 27px; }
  .lead, .quote { font-size: 19px; }
  .media-placeholder { min-height: 230px; }
  .media-placeholder--wide { min-height: 180px; }
  .callout, .result, .guarantee { padding: 18px; }
}

@media print {
  .sitebar, .author__follow { display: none; }
  .page { width: 100%; padding: 0; }
  .cta { color: var(--ink); background: transparent; border: 2px solid var(--ink); box-shadow: none; }
}

/* ---------- Форма заявки (.lead-form) ---------- */

.lead-form { margin: 18px 0 0; }

/* honeypot — скрытое поле от ботов */
.lead-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lead-form__row { display: flex; gap: 10px; }

.lead-form__input {
  flex: 1 1 auto;
  width: calc(50% - 5px);
  padding: 14px 16px;
  border: 1px solid #c9c5bd;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.lead-form__input:focus {
  outline: 3px solid rgba(29, 87, 233, .25);
  outline-offset: 0;
  border-color: var(--accent);
}

.lead-form__input--error { border-color: #c0392b; }

/* кнопка внутри формы — класс .cta + эта добавка; на десктопе 50/50 с полем */
.lead-form__submit {
  flex: 1 1 auto;
  width: calc(50% - 5px);
  margin-top: 0;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.lead-form__consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.lead-form__consent input {
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--accent);
}

.lead-form__consent a { color: var(--accent); }

.lead-form__consent--error { color: #c0392b; }

@media (max-width: 620px) {
  .lead-form__row { flex-direction: column; }
  .lead-form__input,
  .lead-form__submit { width: 100%; }
}
