/* thealexantonov.tech — /case/dima/ (добавка к landing.css и case/case.css).
   На сайте строгая CSP: позиции в таймлайне заданы классами, а не атрибутами style. */

/* шапка как на главной: Product Track by @thealexantonov */
.brand { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.brand-by { font-weight: 400; letter-spacing: -0.01em; color: var(--muted); }
.brand:hover .brand-by { color: var(--body); }
@media (min-width: 900px) and (max-width: 1079px) {
  .top-row { gap: 12px; }
  .top .nav { gap: 16px; }
  .top .nav a { font-size: 14px; white-space: nowrap; }
}
@media (max-width: 380px) {
  .brand-by { display: none; }
}

/* ширина текста — как у остальных абзацев статьи */
body.page-case .post > h3,
body.page-case .post > ul,
body.page-case .post > .proof-note {
  max-width: 760px;
}

.post .proof-note {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* шаги пути: номер в кружке, как в цикле на /case/ */
.post > h3.path-step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 12px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.post > h3.path-step em {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  display: grid;
  place-items: center;
}

/* список «что было в резюме» */
.post > ul.flaws {
  margin: 4px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--body);
}
.post > ul.flaws li {
  position: relative;
  padding-left: 22px;
}
.post > ul.flaws li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.post > ul.flaws b { color: var(--ink); }

/* пруфы: выгрузки переписки и вырезки из документов */
.post .proof { margin: 20px 0 32px; max-width: 600px; }
.post .proof-doc { max-width: 760px; }
.post .proof button { border: 0; background: transparent; border-radius: 18px; cursor: zoom-in; }
.post .proof-doc button { border-radius: 4px; }
.post .proof img { border-radius: inherit; }
.post .proof figcaption { margin-top: 10px; }

/* таймлайн: 25 дней, шаг сетки — 5 дней */
.tl-dima .tl-track { background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 20%); }
.tl-dima .tl-axis .x0 { --x: 0%; }
.tl-dima .tl-axis .x20 { --x: 20%; }
.tl-dima .tl-axis .x40 { --x: 40%; }
.tl-dima .tl-axis .x60 { --x: 60%; }
.tl-dima .tl-axis .x80 { --x: 80%; }
.tl-dima .tl-axis .x100 { --x: 100%; transform: translateX(-100%); }
.tl-dima .b-intro { --s: 0%; --e: 8%; }      /* 30 сентября — 2 октября */
.tl-dima .b-pack { --s: 12%; --e: 24%; }     /* 3 — 6 октября */
.tl-dima .p-sync { --x: 32%; }               /* 8 октября */
.tl-dima .b-market { --s: 32%; --e: 100%; }  /* 8 — 25 октября */
.tl-dima .p-offer { --x: 100%; }             /* 25 октября */
.tl-pin {
  position: absolute;
  top: 50%;
  left: var(--x);
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
}

/* сам — с ментором */
.versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 760px;
  margin: 28px 0 20px;
}
.vs-cell {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 22px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.vs-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.vs-num { font-size: clamp(34px, 4.6vw, 48px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.vs-note { font-size: 15px; line-height: 1.4; color: var(--body); }
.vs-cell.is-alone .vs-num { color: var(--muted); }
.vs-cell.is-mentor { background: var(--accent-tint); border-color: #b7c3ee; }
.vs-cell.is-mentor .vs-label,
.vs-cell.is-mentor .vs-num { color: var(--accent); }
.post .money {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
}

/* за счёт чего сработало */
.reasons {
  list-style: none;
  margin: 8px 0 8px;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 760px;
  counter-reset: reason;
}
.reasons li {
  position: relative;
  padding: 18px 20px 18px 60px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--body);
  counter-increment: reason;
}
.reasons li::before {
  content: counter(reason);
  position: absolute;
  left: 18px;
  top: 17px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.reasons b { display: block; color: var(--ink); margin-bottom: 2px; }

/* как я веду до оффера */
.work {
  margin-top: 56px;
  padding: clamp(28px, 4.5vw, 48px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.post .work h2 { margin-top: 0; }
.work > p { max-width: 64ch; margin: 0 0 16px; color: var(--body); }
.work-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  counter-reset: work;
}
.work-steps li {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--body);
  font-size: 16px;
  line-height: 1.45;
  counter-increment: work;
}
.work-steps li::before {
  content: counter(work, decimal-leading-zero);
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.work-steps b { display: block; color: var(--ink); margin-bottom: 2px; }
.work-terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 0;
  border-top: 1px solid var(--line-strong);
}
.work-terms > div { padding: 18px 20px 0 0; border-right: 1px solid var(--line); }
.work-terms > div + div { padding-left: 20px; }
.work-terms > div:last-child { border-right: 0; }
.work-terms dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.work-terms dd { margin: 6px 0 0; font-size: 16px; line-height: 1.4; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.work .link { display: inline-block; margin-top: 24px; }

/* финальный блок */
.post .final .lead { max-width: 56ch; }
.post .final .actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 899px) {
  .work-steps { grid-template-columns: 1fr; }
  .work-terms { grid-template-columns: 1fr; }
  .work-terms > div,
  .work-terms > div + div { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .work-terms > div:last-child { border-bottom: 0; padding-bottom: 0; }
}

@media (max-width: 600px) {
  .versus { grid-template-columns: 1fr; }
  .post > h3.path-step { font-size: 20px; }
  .post .proof { margin-bottom: 28px; }
  .reasons li { padding: 16px 16px 16px 54px; }
  .reasons li::before { left: 14px; top: 15px; }
  .work { padding: 24px 18px; }
}
