/* produkt3.html «Продукт» — свои куски страницы. Общее — css/i3.css (как на index3) + css/i3-pages.css (внутренние страницы).
   - маршрут из трёх шагов во вступлении: подложки-ссылки сверху вниз, между ними стрелка пером (js/i3.js, canvas.i3-step-arrow);
   - три шага «текст + экран пером» (js/shagi.js в цвете), экран — на светлых пятнах, как рисунок героя index3;
   - «Из чего складывается сайт» — сетка карточек index3 (.i3-grid / .i3-card), «От первого впечатления до заказа» — 4 шага. */

/* ---------- маршрут во вступлении ---------- */
.i3p-route { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; max-width: 560px; width: 100%; justify-self: end; }
.i3p-route li { position: relative; }
.i3p-route a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px 24px 20px 20px;
  text-decoration: none; transition: transform .2s ease-out; }
.i3p-route a:hover { transform: translateY(-2px); }
.i3p-route a:focus-visible { outline: 3px solid rgba(59, 123, 246, .45); outline-offset: 4px; border-radius: 20px; }
.i3p-route b { display: block; font: 600 22px/1.2 var(--f-head); color: var(--i3-navy); }
.i3p-route small { display: block; margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--i3-text); }
.i3p-route canvas[data-i3p-icon] { width: 52px; height: 52px; }
/* стрелка вниз к следующему шагу: под номером (перебивает .i3-step-arrow главной — там она справа от карточки) */
.i3p-route .i3-step-arrow { left: 31px; right: auto; top: calc(100% + 3px); bottom: auto; width: 24px; height: 28px; margin: 0; }

/* ---------- три шага ---------- */
.i3p-step > .i3-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.i3p-step.rev .i3p-step-text { order: 2; }
/* экран слева: колонки зеркально (7 : 5) — иначе экрану шага 2 доставалась узкая колонка и он был на треть меньше шагов 1 и 3 */
@media (min-width: 1101px) { .i3p-step.rev > .i3-wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.i3p-step-k { display: flex; align-items: center; gap: 14px; }
.i3p-step-k .i3p-num { width: 40px; height: 40px; font-size: 18px; }
.i3p-step h2 { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.08; margin-bottom: 16px; }
.i3p-desc { font-size: 18px; margin-bottom: 22px !important; max-width: 470px; }
.i3p-ticks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: 17px; color: var(--i3-navy); }
.i3p-ticks li { position: relative; padding-left: 34px; }
.i3p-ticks canvas { position: absolute; left: 0; top: 0; width: 24px; height: 24px; }
.i3p-result { display: flex; align-items: center; gap: 14px; padding: 16px 22px 16px 16px; font-size: 17px; line-height: 1.4; color: var(--i3-navy); max-width: 460px; }
.i3p-result canvas { flex: none; width: 34px; height: 34px; }
.i3p-result b { color: var(--i3-green-d); font-weight: 600; }
/* экран пером на светлых пятнах; на телефоне экран шире окна — листается вбок внутри себя */
.i3p-mock-area { position: relative; min-width: 0; }
.i3p-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.i3p-blob.b1 { width: 42%; aspect-ratio: 1; left: -5%; top: -12%; }
.i3p-blob.b2 { width: 34%; aspect-ratio: 1.1; right: -4%; bottom: -14%; border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%; }
.i3p-blob.tn-blue { background: #E6EFFF; } .i3p-blob.tn-sun { background: #FFF1D2; } .i3p-blob.tn-green { background: #DFF3E6; } .i3p-blob.tn-lilac { background: #ECE8FF; }
.t-blue .i3p-blob.tn-blue { background: #DDE8FD; }
.i3p-mock-scroll { position: relative; }
.i3p-mock { position: relative; width: 100%; aspect-ratio: 720 / 470; }
.i3p-mock canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.i3p-mock-hint { display: none; position: relative; }        /* relative — над светлым пятном */

/* ---------- из чего складывается сайт ---------- */
.i3p-count { margin: 0 0 16px !important; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--i3-muted); }
.i3p-no { margin: 0 0 4px !important; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--i3-muted); }

/* ---------- от первого впечатления до заказа: 4 шага, стрелки пером между ними (как «Три шага» index3) ---------- */
.i3p-flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px; }
.i3p-flow li { position: relative; padding: 24px 22px 26px; }
.i3p-flow-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.i3p-flow-top canvas { width: 46px; height: 46px; }
.i3p-flow h3 { font: 600 21px/1.25 var(--f-head); margin-bottom: 8px; }
.i3p-flow p { font-size: 16px; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .i3p-route { justify-self: stretch; max-width: 640px; }
  .i3p-step > .i3-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .i3p-step.rev .i3p-step-text { order: 0; }
  .i3p-mock-area { max-width: 760px; width: 100%; }
  .i3p-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .i3p-flow li:nth-child(2) .i3-step-arrow { display: none; }      /* 2 → 3 — переход на новую строку */
}
@media (max-width: 860px) {
  .i3p-flow { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .i3p-flow li:nth-child(2) .i3-step-arrow { display: block; }
}
@media (max-width: 600px) {
  .i3p-mock-scroll { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; scrollbar-width: none; }
  .i3p-mock-scroll::-webkit-scrollbar { display: none; }
  .i3p-mock { width: 600px; }
  .i3p-mock-hint { display: block; margin-top: 8px !important; text-align: right; font-size: 15px; font-weight: 600; color: var(--i3-acc-d); }
  .i3p-blob.b1 { width: 70%; left: -10%; top: -8%; }
  .i3p-blob.b2 { width: 50%; }
  .i3p-route a { padding: 16px 18px 16px 16px; gap: 14px; }
  .i3p-route b { font-size: 20px; }
  .i3p-route canvas[data-i3p-icon] { width: 44px; height: 44px; }
  .i3p-route .i3-step-arrow { left: 27px; }
}
@media (prefers-reduced-motion: reduce) { .i3p-route a { transition: none; } .i3p-route a:hover { transform: none; } }
