/* bez-shablona-ok: К4 — линии слева у маршрута и шагов это сама линия пути; у карточки чата полоса как в превью Telegram */
@font-face {
  font-family: "PT Sans Local";
  src: url("fonts/ptsans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Sans Local";
  src: url("fonts/ptsans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --field: #0A2A66;
  --arrow: #FFC61A;
  --ink: #12203a;
  --muted: #5b6b88;
  --line: #dde3ee;
  --paper: #ffffff;
  --shade: #f4f6fb;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "PT Sans Local", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

.disclaimer {
  margin: 0;
  padding: 10px 16px;
  background: #fff5d6;
  border-bottom: 1px solid #efd98a;
  font-size: 14px;
  color: #6a5312;
}

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--field);
  text-decoration: none;
}

.top nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--field); text-decoration: underline; }
.top nav a[aria-current="page"] { color: var(--field); font-weight: 700; }

main { max-width: 860px; margin: 0 auto; padding: 28px 16px 8px; }

h1 { font-size: 34px; line-height: 1.2; margin: 8px 0 12px; color: var(--field); }
h2 { font-size: 19px; margin: 0 0 6px; }

.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }

/* Главная: синее поле знака во всю ширину, на нём маршрут заказа.
   Точки стоят по минутам: 33 минуты до курьера, ещё 57 до вручения. */
.pole {
  margin: -28px 0 24px;
  padding: 36px 0 44px;
  background: var(--field);
  box-shadow: 0 0 0 100vmax var(--field);
  clip-path: inset(0 -100vmax);
  color: #fff;
}
.pole h1 { color: #fff; margin-top: 0; }
.pole .lead { color: #c6d2ea; margin-bottom: 36px; }

.marshrut {
  --konec: 11rem;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 33fr 57fr var(--konec);
}
.marshrut::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: var(--konec);
  border-top: 3px solid #fff;
}
.marshrut__tochka {
  position: relative;
  padding: 34px 20px 0 0;
}
.marshrut__tochka::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--field);
  border: 3px solid #fff;
  box-sizing: border-box;
}
.marshrut__tochka--final::before {
  top: -4px;
  left: -6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: var(--arrow);
  /* стрелка из знака «Прямиком» */
  clip-path: polygon(30% 0, 100% 0, 100% 70%, 78% 48%, 22% 100%, 0 78%, 52% 22%);
}
.marshrut time { display: block; font-size: 24px; font-weight: 700; color: var(--arrow); line-height: 1.1; }
.marshrut b { display: block; font-size: 18px; margin: 4px 0 4px; }
.marshrut span { display: block; font-size: 15.5px; color: #c6d2ea; }

@media (max-width: 640px) {
  .marshrut { grid-template-columns: 1fr; }
  .marshrut::before { display: none; }
  /* на телефоне линия идёт от точки к точке и обрывается у стрелки */
  .marshrut__tochka:not(.marshrut__tochka--final)::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 14px;
    bottom: -6px;
    border-left: 3px solid #fff;
  }
  .marshrut__tochka { padding: 0 0 calc(var(--minut, 0) * 0.6px + 12px) 36px; }
  .marshrut__tochka--final::before { top: -2px; left: -4px; }
}

.note a { color: var(--field); }

/* Акция: талон с ценой на корешке и условиями справа. */
.talon {
  display: grid;
  grid-template-columns: 11rem 1fr;
  margin: 0 0 28px;
  border: 2px solid var(--field);
  border-radius: 6px;
  overflow: hidden;
}
.talon__cena {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--field);
  color: var(--arrow);
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  /* линия отрыва корешка */
  border-right: 3px dashed #fff;
}
.talon__usloviya {
  margin: 0;
  padding: 18px 22px 6px;
}
.talon__usloviya dt { font-weight: 700; color: var(--field); }
.talon__usloviya dd {
  margin: 2px 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.talon__usloviya dd:last-child { border-bottom: 0; padding-bottom: 0; }

@media (max-width: 520px) {
  .talon { grid-template-columns: 1fr; }
  .talon__cena { padding: 18px; font-size: 48px; justify-content: flex-start; }
  .talon__cena { border-right: 0; border-bottom: 3px dashed #fff; }
}

.note { color: var(--muted); font-size: 15px; }

.track { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.track label { width: 100%; font-weight: 700; }
.track input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 11px 13px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.track button {
  padding: 11px 20px;
  font: inherit;
  font-weight: 700;
  color: var(--field);
  background: var(--arrow);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.track button:hover { filter: brightness(0.94); }

/* Отслеживание: тот же маршрут, только сверху вниз. */
.steps { list-style: none; margin: 0 0 20px; padding: 0; }
.steps li {
  position: relative;
  padding: 0 0 18px 32px;
  color: var(--muted);
}
.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 3px solid var(--line);
  background: var(--paper);
  box-sizing: border-box;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 21px;
  bottom: 0;
  border-left: 3px solid var(--line);
}
.steps li.done { color: var(--ink); }
.steps li.done::before { border-color: var(--field); background: var(--field); }
.steps li.done::after { border-color: var(--field); }
.steps li.now { color: var(--field); font-weight: 700; }
.steps li.now::before { border-color: var(--field); background: var(--arrow); }

footer {
  max-width: 860px;
  margin: 24px auto 0;
  padding: 18px 16px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
footer a { color: var(--field); }

@media (max-width: 420px) {
  h1 { font-size: 27px; }
  .lead { font-size: 17px; }
}

/* --- витрина --- */

.section { margin: 36px 0 6px; font-size: 24px; color: var(--field); }

.warn {
  margin: 0 0 18px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #fff5d6;
  border: 1px solid #efd98a;
  color: #6a5312;
  font-size: 15px;
}

.cards-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.chat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  border-left: 4px solid var(--field);
}
.chat-image { aspect-ratio: 1200 / 630; background: var(--shade); }
.chat-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chat-text { padding: 12px 14px 14px; }
.chat-site { font-weight: 700; font-size: 14px; color: var(--field); }
.chat-title { font-weight: 700; margin-top: 3px; }
.chat-desc { color: var(--muted); font-size: 15px; margin-top: 4px; }
.chat-host { color: #8a9ab5; font-size: 13px; margin-top: 8px; }

.checks { list-style: none; padding: 0; margin: 10px 0 0; }
.checks li {
  padding: 9px 12px;
  border-radius: 9px;
  margin-bottom: 7px;
  font-size: 15px;
}
.checks li.ok { background: #eaf6ee; color: #17603a; }
.checks li.bad { background: #fdecec; color: #8d2020; }

.sheet {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 22px;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow-x: auto;
}
.sheet.light { background: #ffffff; border: 1px solid var(--line); }
.sheet.dark { background: #1E1E1E; }
.sheet figure { margin: 0; text-align: center; flex: 0 0 auto; }
.sheet img { display: block; margin: 0 auto 6px; }
.sheet figcaption { font-size: 12px; color: var(--muted); }
.sheet.dark figcaption { color: #9aa7bd; }
.sheet img[width="512"] { width: 180px; height: 180px; }

.nobr { white-space: nowrap; }
