/* Страница put-b.html (путь Б). Подключается после skhemy.css. Только токены из vitrina.css, новых цветов нет. */

/* ---------- ссылки в тексте ---------- */
.str-b :is(.poyasn, .tekst, .usloviya, .dlya-kogo, .usloviya-blok__esli, .snachala, .gruppa, .tablica-podpis, .nabor__sverka, .pr, .raskryt, .shag-b__t, .riski, .melko) a:not([class]) {
  color: inherit; text-decoration-thickness: 1px; text-decoration-color: var(--ink-3); text-underline-offset: 3px;
  transition: text-decoration-color var(--d-fade) ease;
}
@media (hover: hover) {
  .str-b :is(.poyasn, .tekst, .usloviya, .dlya-kogo, .usloviya-blok__esli, .snachala, .gruppa, .tablica-podpis, .nabor__sverka, .pr, .raskryt, .shag-b__t, .riski, .melko) a:not([class]):hover { text-decoration-color: currentColor; }
}
.str-b code {
  font-family: var(--f-text); font-size: .92em; font-weight: 600;
  padding: 1px 6px; border-radius: 6px; background: var(--bg-alt); color: var(--ink);
  overflow-wrap: anywhere;
}

/* сноски в тексте */
.sn { font-size: .7em; line-height: 0; vertical-align: super; font-weight: 600; margin-left: 1px; color: var(--ink-3); }
.sn a { color: var(--blue); text-decoration: none; padding: 0 1px; border-radius: 3px; }
@media (hover: hover) { .sn a:hover { text-decoration: underline; text-underline-offset: 2px; } }

/* ---------- 3.1: граница данных ---------- */
.obl .arh__vnutri { grid-template-columns: 1fr; }
@media (min-width: 560px) {
  .obl .arh__vnutri { grid-template-columns: 1fr 1fr; }
  .obl__kod { grid-column: 1 / -1; }
}
.obl__kod { border-width: 1.5px; border-color: var(--ink-3); }
.obl .arh__most span { text-align: center; }
@media (min-width: 900px) {
  .arh--b.obl { grid-template-columns: minmax(0, 1.4fr) 168px minmax(0, 1fr); }
}

.usloviya-blok { display: grid; gap: 40px; margin-top: clamp(48px, 6vw, 80px); }
@media (min-width: 900px) { .usloviya-blok { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.usloviya { margin-top: 18px; border-top: 1px solid var(--line); }
.usloviya li { position: relative; padding: 14px 0 15px 34px; border-bottom: 1px solid var(--line); text-wrap: pretty; }
.usloviya li::before { /* галочка: условие, при котором подходит путь Б */
  content: ""; position: absolute; left: 4px; top: 21px;
  width: 12px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.usloviya-blok__esli { color: var(--ink-2); text-wrap: pretty; }
.usloviya-blok__inache .vybor { margin-top: 24px; }
.dlya-kogo { margin-top: 18px; max-width: 40em; text-wrap: pretty; }
.dlya-kogo .metka { display: flex; width: max-content; margin-bottom: 8px; }
.dlya-kogo--shagi { margin-top: 4px; color: var(--ink-2); }
@media (min-width: 900px) { .dlya-kogo--shagi { padding-left: 68px; } }

/* ---------- 3.2: инструменты ---------- */
.snachala {
  max-width: 52em; margin-top: clamp(40px, 5vw, 56px); padding: 18px 22px;
  border-left: 3px solid var(--ink); background: var(--surface);
  border-radius: 0 var(--r-plashka) var(--r-plashka) 0;
}
.snachala b { display: block; font-size: 17px; }
.snachala p { margin-top: 4px; color: var(--ink-2); text-wrap: pretty; }

.gruppy { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 768px) { .gruppy { grid-template-columns: 1fr 1fr; gap: 16px; } }
.gruppa { padding: 22px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-kartochka); }
.gruppa h3 { font-family: var(--f-display); font-size: 19px; font-weight: 620; letter-spacing: -.01em; line-height: 1.2; }
.gruppa h3 span { display: block; margin-top: 3px; font-family: var(--f-text); font-size: var(--t-small); font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.gruppa p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.gruppa--net { background: transparent; border-style: dashed; border-color: var(--ink-3); }

.nabor { margin-top: clamp(64px, 8vw, 112px); }
.nabor__sverka { margin: 6px 0 16px; font-size: var(--t-small); color: var(--ink-2); }
.nabor__tablica tbody th { font-family: var(--f-display); font-size: 16px; font-weight: 620; letter-spacing: -.005em; }
.nabor__tablica td { color: var(--ink-2); }
.nabor__tablica .znak { white-space: normal; align-items: flex-start; color: var(--ink); }
.nabor__tablica .znak::before { margin-top: 5px; }
.znak--svoy::before { border: 2px solid var(--blue); }
.nabor__net th { color: var(--ink-2); }
.nabor__procherk { color: var(--ink-3); }
@media (min-width: 768px) {
  .nabor__tablica tbody th { width: 19%; }
  .nabor__tablica td:last-child { width: 25%; }
}
@media (max-width: 767px) {
  .nabor__tablica .nabor__procherk { display: none; }
}

/* связка «почта - модель - проверка - CRM»: стрелки линиями, а не символом */
.cepochka { display: inline-flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
.cepochka > span:not(.skryto) { white-space: nowrap; }
.cepochka > span:not(.skryto):not(:first-child)::before {
  content: ""; display: inline-block; width: 18px; height: 10px; margin: 0 6px; vertical-align: -1px;
  background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M1 5h15M12 1.5 16 5l-4 3.5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M1 5h15M12 1.5 16 5l-4 3.5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- 3.3: три применения ---------- */
#primeneniya .poyasn + .tekst { margin-top: 16px; }
.str-b .legenda-rol span:not([class])::before { border-color: var(--ink-3); }
.primeneniya { display: grid; gap: 12px; }
@media (min-width: 1000px) { .primeneniya { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.primenenie {
  display: flex; flex-direction: column; overflow: hidden;
  padding: 24px 24px 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-kartochka);
}
.primenenie h3 b { display: block; font-family: var(--f-display); font-size: var(--t-h3); font-weight: 650; letter-spacing: -.015em; line-height: 1.15; }
.primenenie h3 span { display: block; margin-top: 4px; font-size: var(--t-small); font-weight: 500; color: var(--ink-2); }
.primenenie dl { display: flex; flex-direction: column; flex: 1; margin: 18px 0 0; }
.pr { padding: 12px 0 13px; border-top: 1px solid var(--line); }
.pr dt { display: flex; align-items: center; gap: 8px; font-size: var(--t-label); font-weight: 600; letter-spacing: .02em; color: var(--ink-3); }
.pr dd { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.pr--agent dt::before, .pr--kod dt::before, .pr--chelovek dt::before { content: ""; flex: none; width: 18px; height: 12px; border-radius: 3px; }
.pr--agent dt::before { border: 1.5px dashed var(--ink-3); }
.pr--kod dt::before { border: 1px solid var(--ink-3); }
.pr--chelovek dt::before { border: 2px solid var(--ink); }
.pr--predel dt { color: var(--red); }
.pr--zamer { margin: auto -24px 0; padding: 14px 24px 20px; background: var(--bg-alt); }
.pr--zamer dt { color: var(--ink); }
.pr--zamer dd { color: var(--ink-2); }
@media (max-width: 999px) { .pr--zamer { margin-top: 0; } }
@media (max-width: 559px) {
  .primenenie { padding: 20px 20px 0; }
  .pr--zamer { margin-inline: -20px; padding-inline: 20px; }
}

/* «Почему у вас - свой замер»: свёрнуто по умолчанию */
.raskryt { max-width: 52em; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-plashka); background: var(--bg); }
.raskryt summary {
  display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 10px 18px;
  font-weight: 600; cursor: pointer; list-style: none; border-radius: var(--r-plashka);
  -webkit-tap-highlight-color: transparent;
}
.raskryt summary::-webkit-details-marker { display: none; }
.raskryt summary::before {
  content: ""; flex: none; width: 8px; height: 8px; margin: 0 2px 3px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(-45deg); transition: transform var(--d-fade) var(--ease-out);
}
.raskryt[open] summary::before { transform: rotate(45deg); margin-bottom: 6px; }
.raskryt summary:focus-visible { outline-offset: -2px; }
.raskryt__telo { padding: 0 20px 18px 42px; font-size: 15px; color: var(--ink-2); text-wrap: pretty; }

/* ---------- 3.4: пять шагов ---------- */
.shagi-b { margin-top: clamp(40px, 6vw, 72px); counter-reset: shb; }
.shag-b { position: relative; padding: 0 0 32px 52px; counter-increment: shb; }
.shag-b::before {
  content: counter(shb); position: absolute; left: 0; top: -4px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--f-display); font-size: 16px; font-weight: 650;
}
.shag-b:not(:last-child)::after { content: ""; position: absolute; left: 17.5px; top: 36px; bottom: 0; width: 1px; background: var(--line); }
.shag-b__z { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.shag-b__z b { font-family: var(--f-display); font-size: var(--t-h3); font-weight: 620; letter-spacing: -.015em; line-height: 1.15; }
.shag-b__t { margin-top: 8px; max-width: 40em; color: var(--ink-2); text-wrap: pretty; }
.shag-b__t > * + * { margin-top: 10px; }
.voprosy { display: grid; gap: 8px; padding-left: 16px; border-left: 2px solid var(--line); color: var(--ink); }
@media (min-width: 900px) {
  .shag-b { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; padding: 0 0 44px 68px; }
  .shag-b::before { top: -8px; width: 44px; height: 44px; font-size: 18px; }
  .shag-b:not(:last-child)::after { left: 21.5px; top: 40px; }
  .shag-b__z { flex-direction: column; align-items: flex-start; }
  .shag-b__t { margin-top: 0; }
}

/* ---------- С3.2 «Как я настрою агентов у вас» ---------- */
.agenty-blok { margin-top: clamp(80px, 11vw, 144px); }
.agenty-blok__z { font-size: clamp(28px, 1.2rem + 2vw, 48px); max-width: 16em; }
.agenty { margin-top: clamp(32px, 4vw, 48px); }
.agenty__lenta { display: grid; gap: 32px; padding-left: 56px; }
.agent {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-plashka);
}
.agent.rol--model { border-color: var(--ink-3); }
.agent .rol-metka { margin-bottom: 2px; }
.agent b { font-family: var(--f-display); font-size: 19px; font-weight: 620; letter-spacing: -.01em; line-height: 1.2; }
.agent small { font-size: var(--t-small); line-height: 1.4; color: var(--ink-2); }
.agent--chelovek { padding: 22px 22px 24px; background: var(--ink); border: 2px solid var(--ink); color: var(--bg); }
.agent--chelovek b { font-size: var(--t-h3); font-weight: 650; letter-spacing: -.015em; }
.agent--chelovek .rol-metka, .agent--chelovek small { color: var(--bg); opacity: .8; }

/* стрелка вперёд: линия и наконечник */
.agent:not(:last-child)::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 32px; margin-left: -.75px; background: var(--ink-3); }
.agent:not(:last-child)::before {
  content: ""; position: absolute; left: 50%; top: calc(100% + 22px); width: 8px; height: 8px; margin-left: -4px;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg);
}

/* возврат на доработку, телефон: линия слева от ленты, от второго и третьего агента к первому */
.agent__l { position: absolute; left: -34px; width: 34px; border: 0 solid var(--ink-3); pointer-events: none; }
.agenty__lenta > .agent:nth-child(1) .agent__l { top: 50%; bottom: -32px; border-left-width: 1.5px; border-top-width: 1.5px; border-top-left-radius: 10px; }
.agenty__lenta > .agent:nth-child(1) .agent__l::after {
  content: ""; position: absolute; right: 1px; top: -5.25px; width: 9px; height: 9px;
  border-top: 1.5px solid var(--ink-3); border-right: 1.5px solid var(--ink-3); transform: rotate(45deg);
}
.agenty__lenta > .agent:nth-child(2) .agent__l { top: 0; bottom: -32px; border-left-width: 1.5px; }
.agenty__lenta > .agent:nth-child(2) .agent__l::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid var(--ink-3); }
.agenty__lenta > .agent:nth-child(2) .agent__l::after {
  content: "вернуть на доработку"; position: absolute; left: -6px; top: 50%;
  writing-mode: vertical-rl; transform: translate(-100%, -50%) rotate(180deg);
  font-size: var(--t-label); font-weight: 600; letter-spacing: .02em; line-height: 1; color: var(--ink-2); white-space: nowrap;
}
.agenty__lenta > .agent:nth-child(3) .agent__l { top: 0; height: 50%; border-left-width: 1.5px; border-bottom-width: 1.5px; border-bottom-left-radius: 10px; }

.agenty__vozvrat { display: none; }

@media (min-width: 900px) {
  .agenty__lenta { grid-template-columns: 1fr 1fr 1fr 1.3fr; gap: 48px; padding-left: 0; align-items: stretch; }
  .agent__l { display: none; }
  .agent--chelovek { margin-block: -14px; justify-content: center; }
  .agent:not(:last-child)::after { left: 100%; top: 50%; width: 48px; height: 1.5px; margin: -.75px 0 0; }
  .agent:not(:last-child)::before { left: calc(100% + 38px); top: 50%; margin: -4px 0 0; transform: rotate(-45deg); }

  /* возврат, десктоп: скобка под первыми тремя карточками, от центров 2 и 3 к центру 1 */
  .agenty__vozvrat {
    display: block; position: relative; height: 48px;
    margin-left: calc((100% - 144px) / 8.6);
    width: calc((100% - 144px) * 2 / 4.3 + 96px);
    border: 1.5px solid var(--ink-3); border-top: 0; border-radius: 0 0 14px 14px;
  }
  .agenty__vozvrat::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; margin-left: -.75px; background: var(--ink-3); }
  .agenty__vozvrat::after {
    content: ""; position: absolute; left: -1.5px; top: 1px; width: 9px; height: 9px; margin-left: -4.5px;
    border-left: 1.5px solid var(--ink-3); border-top: 1.5px solid var(--ink-3); transform: rotate(45deg);
  }
  .agenty__vozvrat span {
    position: absolute; left: 25%; bottom: 0; transform: translate(-50%, 50%);
    padding: 0 10px; background: var(--bg);
    font-size: var(--t-label); font-weight: 600; letter-spacing: .02em; color: var(--ink-2); white-space: nowrap;
  }
  .agenty .podpis-krupno { margin-top: 40px; }
}

/* ---------- 3.5: пределы ---------- */
@media (min-width: 768px) { .predely li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.predely p { text-wrap: pretty; }
.predely__sroki { margin-top: 32px; font-size: 15px; font-weight: 600; }
.predely__sroki a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- источники ---------- */
.snoski { margin-top: clamp(72px, 9vw, 112px); padding-top: 24px; border-top: 1px solid var(--line); }
.snoski__z { font-family: var(--f-text); font-size: var(--t-small); font-weight: 600; letter-spacing: .01em; color: var(--ink-2); }
.snoski__spisok { display: grid; gap: 2px; max-width: 62em; margin-top: 12px; }
.snoski__spisok li {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px;
  margin-inline: -8px; padding: 6px 8px; border-radius: 8px;
  font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
  scroll-margin-top: 88px; transition: background-color var(--d-fade) ease;
}
.snoski__spisok li:target { background: var(--blue-soft); }
.snoski__n { font-weight: 650; color: var(--ink); }
.snoski__adres { overflow-wrap: anywhere; }
a.snoski__adres { color: var(--ink-2); text-decoration-thickness: 1px; text-decoration-color: var(--line); text-underline-offset: 3px; }
@media (hover: hover) { a.snoski__adres:hover { color: var(--ink); text-decoration-color: currentColor; } }
