/* Automation rules: инфографика первого экрана (пины 430, 431) и сцены 433, 434, 436. Классы .par-/.par__ */
.par { --c: var(--th); width: 100%; max-width: 760px; margin: 0 auto; }
.par small { display: block; font-size: 13px; color: var(--ink-3); }
.par s { color: var(--ink-3); text-decoration-thickness: 1.5px; }
.par__sup { max-width: 340px; margin: 0 auto; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); text-align: center; }
.par__sup b { display: block; margin-top: 2px; font-size: 17px; font-weight: 500; }
.par__chg { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-top: 10px; }
.par__chg s { font-size: 22px; }
.par__chg em { font-style: normal; color: var(--ink-3); }
.par__chg strong { font-size: 34px; line-height: 1; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); }
.par__ln { position: relative; height: 40px; }
.par__core { display: flex; align-items: center; gap: 18px; padding: 16px 22px; border: 1px solid color-mix(in srgb, var(--c) 40%, #fff); border-radius: 16px; background: var(--white); }
.par__core .plat-v { flex: none; font-size: 13px; }
.par__core > div { flex: 1; min-width: 0; }
.par__core b { display: block; font-size: 16px; font-weight: 500; }
.par__core .chip { flex: none; }
.par__fork { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 44px; }
.par__ch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.par__ch > div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); text-align: center; }
.par__lg { height: 22px; width: auto; max-width: 88px; object-fit: contain; filter: brightness(0); opacity: 0.86; }
.par__ch p { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.par__ch p s { font-size: 14px; }
.par__ch p strong { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.par-sub { border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .par__sup { max-width: none; }
  .par__core { flex-wrap: wrap; gap: 12px 14px; padding: 14px 16px; }
  .par__core > div { flex: 1 1 140px; }
  .par__fork { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .par__fork i:nth-child(n+3) { display: none; }
  .par__ch { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .par__ch > div { padding: 14px 8px 12px; }
  .par__ch p strong { font-size: 20px; }
}
/* Пин 431: инфографика справа от заголовка (на широком экране две колонки, как первый экран Image Studio) */
@media (min-width: 1181px) {
  .par-hero .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .par-hero .hero__stage { margin: 0; padding: 48px 0 72px; }
  .par-hero .par { max-width: 600px; }
  .par-hero .par__ch { gap: 10px; }
  .par-hero .par__ch > div { padding: 14px 6px 12px; }
  .par-hero .par__ch p strong { font-size: 19px; }
}

/* Пины 678, 679 (Саша 22.11): окна сцен по настоящему интерфейсу панели (скриншоты Саши): форма New rule, список правил, Price Simulation. */
.film .scene__vis .ui.par-nr, .film .scene__vis .ui.par-rls, .film .scene__vis .ui.par-sim { display: block; }
.par-tg { position: relative; flex: none; display: inline-block; width: 34px; height: 20px; border-radius: 999px; background: #d5dbd8; }
.par-tg::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.par-tg.is-on { background: #4fb784; }
.par-tg.is-on::after { left: 16px; }
/* форма New rule */
.par-nr__b { position: relative; display: grid; gap: 10px; padding: 14px 18px 16px; }
.par-nr__f small, .par-nr__cond small, .par-nr__t small { display: block; font-size: 12px; color: var(--ink-3); }
.par-nr__f > small { margin-bottom: 4px; color: var(--ink); font-weight: 500; font-size: 13px; }
.par-nr__g { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.par-nr__in { display: block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: #fff; }
.par-nr__in--on { border-color: #4fb784; box-shadow: 0 0 0 3px rgb(79 183 132 / .16); }
.par-nr__dd { position: absolute; z-index: 2; left: 18px; top: 98px; display: grid; width: 190px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #f2f3f2; box-shadow: 0 10px 24px -10px rgba(16,22,19,.4); font-size: 13px; }
.par-nr__dd span { padding: 5px 8px; border-radius: 6px; color: var(--ink-2); }
.par-nr__dd .is-on { background: #5b8def; color: #fff; }
.par-nr__cond { margin-top: 82px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; background: #f6f7f6; }
.par-nr__cond b { font-size: 13px; font-weight: 500; }
.par-nr__cond small { grid-column: 1 / -1; }
.par-nr__btn { padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; font-weight: 500; }
.par-nr__t { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; }
/* список правил */
.par-rls__b { display: grid; gap: 10px; padding: 14px 16px 16px; }
.par-rl { display: flex; align-items: center; gap: 12px; padding: 14px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.par-rl__ar { display: grid; gap: 4px; color: #6d7480; font-size: 9px; font-style: normal; line-height: 1; }
.par-rl__ar i { font-style: normal; }
.par-rl__n { flex: none; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #f0f1f2; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.par-rl__m { flex: 1; min-width: 0; display: grid; gap: 6px; }
.par-rl__m b { font-size: 14px; font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.par-rl__m em { font-style: normal; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; }
.par-rl__m em.is-b { background: #e8efff; color: #4a7bec; }
.par-rl__m em.is-g { background: #e7f6ee; color: #3aa573; }
.par-rl__m em.is-o { background: #fdf1e0; color: #e09526; }
.par-rl__sc { justify-self: start; padding: 2px 9px; border-radius: 999px; background: #f0f1f2; font-size: 12px; color: var(--ink-2); }
.par-rl__v { font-size: 14px; font-weight: 600; color: #3aa573; white-space: nowrap; }
/* Price Simulation */
.par-sim { padding: 16px 18px 18px; background: #fafbfb; }
.par-sim small { display: block; font-size: 12px; color: var(--ink-3); }
.par-sim__h b { font-size: 16px; font-weight: 600; }
.par-sim__in { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 10px; margin: 12px 0; }
.par-sim__in > div > small { white-space: nowrap; margin-bottom: 4px; color: var(--ink); font-weight: 500; font-size: 12px; }
.par-sim__in span:not(.par-sim__go) { display: block; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.par-sim__in .ph { color: var(--ink-3); }
.par-sim__go { padding: 8px 16px; border-radius: 9px; background: linear-gradient(135deg, #5bbb8c, #3f9a72); color: #fff; font-size: 13px; font-weight: 600; }
.par-sim__res { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; }
.par-sim__res b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.par-sim__res b.g { color: #3aa573; }
.par-sim__res b.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #e7f6ee; color: #3aa573; font-size: 14px; }
.par-sim__res i { font-style: normal; color: var(--ink-3); }
.par-sim__t { margin: 14px 0 8px; font-size: 14px; font-weight: 600; }
.par-sim__r { display: grid; gap: 6px; padding: 10px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-left: 3px solid #4fb784; border-radius: 10px; background: #fff; }
.par-sim__r b { font-size: 13px; font-weight: 600; }
.par-sim__r span { font-size: 12px; color: var(--ink-2); }
.par-sim__r em { font-style: normal; padding: 2px 8px; margin-right: 4px; border-radius: 6px; background: #f0f1f2; }
.par-sim__r i { font-style: normal; font-weight: 600; color: #3aa573; }
.par-sim__r u { text-decoration: none; padding: 2px 8px; margin-left: 4px; border-radius: 6px; background: #e7f6ee; color: #3aa573; font-weight: 500; }
.ui.par-nr.sc > *, .ui.par-rls.sc > *, .ui.par-sim.sc > * { opacity: 1; transform: none; }
@media (max-width: 560px) { .par-sim__in { grid-template-columns: 1fr 1fr; } .par-sim__go { grid-column: 1 / -1; text-align: center; } .par-sim__res { gap: 10px; } .par-sim__res b { font-size: 18px; } }
.par-sim__r u { white-space: nowrap; }

/* пин 743 (Саша 22.11): первый экран вертикально и крупнее: сверху карточка товара, ниже три карточки каналов с крупной ценой и маржой */
.phb-vh { --th2: var(--th); width: 680px; max-width: 100%; display: flex; flex-direction: column; align-items: stretch; }
.phb-vh__top { padding: 28px 32px; background: var(--white); border-radius: 20px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--th) 22%, transparent), 0 1px 2px rgba(16, 22, 19, 0.06), 0 12px 32px -18px rgba(16, 22, 19, 0.28); }
.phb-vh__top .phb-out__brand { margin-bottom: 14px; }
.phb-vh__row { display: flex; align-items: center; gap: 16px; }
.phb-vh__row b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.phb-vh__row span { display: block; margin-top: 4px; font-size: 16px; color: var(--ink-2); }
.phb-vh__row s { color: var(--ink-3); }
.phb-vh__row em { font-style: normal; font-weight: 600; color: var(--ink); }
/* Пин 805 (Саша 22.11): вместо дерева из одиночных линий наши двойные ленты (пара 4px с изломом, как .phb-down и .mig__lines), по одной паре на каждый канал */
.phb-vh__bus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; height: 56px; }
.phb-vh__bus i { position: relative; justify-self: center; width: 31px; height: 56px; translate: -6px 0; --rl: 56px; --rib-c: var(--th); --rib-t: #f0c2c7; }
.phb-vh__bus i::before, .phb-vh__bus i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255,255,255,0), var(--rib-c)) 0 -26px / 100% 26px no-repeat, var(--rib-t); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 31 56'%3E%3Cpath d='M6 0V22L14.5 30.5Q18 34 18 37.5V56' fill='none' stroke='%23000' stroke-width='4' stroke-linejoin='miter' stroke-miterlimit='10'/%3E%3C/svg%3E") 0 0 / 31px 56px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 31 56'%3E%3Cpath d='M6 0V22L14.5 30.5Q18 34 18 37.5V56' fill='none' stroke='%23000' stroke-width='4' stroke-linejoin='miter' stroke-miterlimit='10'/%3E%3C/svg%3E") 0 0 / 31px 56px no-repeat; }
.phb-vh__bus i::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 31 56'%3E%3Cpath d='M13 0V19.1L21.5 27.6Q25 31.1 25 34.6V56' fill='none' stroke='%23000' stroke-width='4' stroke-linejoin='miter' stroke-miterlimit='10'/%3E%3C/svg%3E") 0 0 / 31px 56px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 31 56'%3E%3Cpath d='M13 0V19.1L21.5 27.6Q25 31.1 25 34.6V56' fill='none' stroke='%23000' stroke-width='4' stroke-linejoin='miter' stroke-miterlimit='10'/%3E%3C/svg%3E") 0 0 / 31px 56px no-repeat; }
@media (prefers-reduced-motion: no-preference) { .phb-vh__bus i::before { animation: hub-dn 2.4s linear infinite; } .phb-vh__bus i::after { animation: hub-dn 2.4s linear -1.2s infinite; } .phb-vh__bus i:nth-child(2)::before { animation-delay: -.4s; } .phb-vh__bus i:nth-child(2)::after { animation-delay: -1.6s; } .phb-vh__bus i:nth-child(3)::before { animation-delay: -.8s; } .phb-vh__bus i:nth-child(3)::after { animation-delay: -2s; } }
.phb-vh__ch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.phb-vc { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 20px; background: var(--white); border-radius: 18px; box-shadow: 0 1px 2px rgba(16, 22, 19, 0.06), 0 12px 32px -18px rgba(16, 22, 19, 0.28); min-width: 0; }
.phb-vc .phb-tag { white-space: normal; }
.phb-vc .phb-ph { width: 72px; height: 32px; background: none; justify-content: flex-start; }
.phb-vc .phb-ph .phb-ph__w { width: auto !important; height: 30px !important; max-width: 72px; }
.phb-vc .phb-mark { height: 22px; }
.phb-vc__p { font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; margin-top: 4px; white-space: nowrap; }
.phb-vc__m { font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: #e7f6ee; color: #1d7a4c; white-space: nowrap; }
.phb-vc__r { font-size: 13px; color: var(--ink-3); }
.phb-vh__cap { margin: 14px 0 0; font-size: 14px; color: rgba(16, 22, 19, 0.62); text-align: center; }
@media (max-width: 560px) { .phb-vh__ch { grid-template-columns: 1fr; } .phb-vh__bus { display: none; } .phb-vh__top { margin-bottom: 12px; } .phb-vc { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 14px; } .phb-vc__p { margin: 0; font-size: 24px; } }
@media (min-width: 1181px) { .phb-hero:has(.phb-vh) > .wrap { padding-bottom: 150px; } }
@media (min-width: 1400px) { .phb-hero:has(.phb-vh) .hero__stage > * { zoom: 1; } .phb-hero:has(.phb-vh) > .wrap { padding-bottom: 200px; } }
/* пин 745: в плитке гайда выделена строка «Your margin», чип с текстом заголовка убран */
.tpic__row--hl { margin: 2px 0 0; padding: 6px 10px; border-radius: 8px; background: #e7f6ee; color: #1d7a4c; font-weight: 600; }
.tpic__row.tpic__row--hl span { color: #1d7a4c; font-weight: 700; }
/* Пин 806 (Саша 22.11): инфографика hero чуть ниже */
@media (min-width: 1181px) { .phb-hero .phb-vh { margin-top: 48px; } }
/* Пин 807 (Саша 22.11): под блоком отзыва нет пустого поля: убраны хвост 60vh и отступ перед полосой */
#story::after { display: none; }
#story + .plat-aiband { margin-top: 0; }
