/* ===== Страница программы: короткий маршрут и два платных гайда ===== */
.page { overflow-wrap: break-word; --measure: 44em; }
.page section[id] { scroll-margin-top: 92px; }

.crumbs { padding-top: calc(68px + clamp(20px, 3vw, 36px)); display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); }
.crumbs a { background: linear-gradient(var(--red), var(--red)) 0 100% / 0 1.5px no-repeat; transition: background-size .3s var(--ease), color .2s; }
.crumbs a:hover { color: var(--navy); background-size: 100% 1.5px; }

/* первый экран: заголовок слева, карточка программы справа */
.dn-hero { position: relative; padding-top: clamp(32px, 5vw, 64px); }
.dn-hero h1 { font-family: var(--display); font-size: clamp(32px, 6vw, 76px); line-height: 1.04; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; max-width: 15em; }
.dn-hero h1 span { display: block; margin-top: .35em; font-size: clamp(17px, 2.4vw, 30px); line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--muted); }
.lead { margin-top: 28px; text-wrap: pretty; max-width: 38em; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); }
.hero-meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-meta--ok { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.hero-meta--ok b { font-weight: 700; color: var(--navy); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-main, .btn-ghost { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 13px 22px; border-radius: var(--r-btn); font-size: 16px; font-weight: 600; border: 1.5px solid transparent; transition: transform .25s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn-main { background: var(--navy); color: #fff; }
.btn-main:hover { background: var(--red); }
.btn-main small { font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .8); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-main:active, .btn-ghost:active { transform: scale(.98); }

.hero-fob { display: none; }
@media (min-width: 1181px) {
  .hero-fob { display: flex; position: absolute; right: 0; top: clamp(32px, 5vw, 64px); width: 380px; }
  .hero-fob .fob { flex: 1; pointer-events: none; }
  .dn-hero h1, .dn-hero .lead { max-width: min(15em, calc(100% - 430px)); }
  .dn-hero .lead { max-width: min(38em, calc(100% - 430px)); }
}

/* разделы */
.sec { margin-top: clamp(64px, 8vw, 112px); }
.sec h2 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; max-width: 22em; }
.sec-lead { margin-top: 20px; max-width: var(--measure); font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.sec-lead b { font-weight: 700; color: var(--navy); }

/* пошаговый маршрут: каждый шаг — отдельный блок, между блоками стрелка вниз */
.steps { margin: 36px 0 0; padding: 0; list-style: none; max-width: 46em; display: grid; gap: 48px; }
.steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 18px; padding: clamp(18px, 2.4vw, 26px); border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1.5px var(--navy); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 50%; top: 100%; width: 24px; height: 48px; transform: translateX(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 48' fill='none' stroke='%23de1123' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8v30M5 30l7 8 7-8'/%3E%3C/svg%3E") center / 24px 48px no-repeat; }
.step-n { width: 36px; height: 36px; border-radius: var(--r-btn); background: var(--navy); color: #fff; font-family: var(--display); font-size: 15px; font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.steps h3 { font-family: var(--display); font-size: clamp(17px, 2.1vw, 20px); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; padding-top: 5px; text-wrap: balance; }
.steps p { max-width: calc(var(--measure) + 6em); margin-top: 8px; font-size: 16px; line-height: 1.65; color: #2b3144; text-wrap: pretty; }
.steps p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); text-decoration-thickness: 1.5px; transition: text-decoration-color .2s; }
.steps p a:hover { text-decoration-color: var(--red); }
/* последний блок — результат: залит синим */
.steps li:last-child { background: var(--navy); color: #fff; box-shadow: none; }
.steps li:last-child .step-n { background: var(--red); }
.steps li:last-child p { color: var(--on-navy); }

.srcrow { margin-top: clamp(32px, 4vw, 48px); padding-top: 20px; border-top: 2px solid var(--navy); }
.srcrow__k { font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.srcrow__list { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.srcrow__list a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-btn); font-size: 15px; line-height: 1.3; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.srcrow__list a::after { content: ""; flex: none; width: 12px; height: 12px; background: currentColor; opacity: .55; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5 8.5 3.5M4 3.5h4.5V8'/%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 12 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5 8.5 3.5M4 3.5h4.5V8'/%3E%3C/svg%3E") center / contain no-repeat; }
.srcrow__list a:hover { border-color: var(--navy); background: var(--soft); }
.srcrow__list a:active { transform: scale(.98); }
.srcrow__foot { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.srcrow__foot a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); text-decoration-thickness: 1.5px; }
.srcrow__foot a:hover { text-decoration-color: var(--red); }

/* два платных гайда */
.offers { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); align-items: stretch; }
.offer { position: relative; display: flex; flex-direction: column; min-width: 0; padding: clamp(22px, 3vw, 34px); border-radius: var(--r); background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--navy); color: var(--navy); }
.offer--pro { background: var(--navy); color: #fff; box-shadow: none; }
.offer__k { font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.offer--pro .offer__k { color: var(--on-navy); }
.offer__price { margin-top: 10px; font-family: var(--display); font-size: clamp(56px, 7vw, 84px); line-height: .95; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.offer__price i { font-style: normal; margin-left: .08em; font-size: .6em; }
.offer__h { margin-top: 16px; font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
.offer__t { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: #2b3144; text-wrap: pretty; }
.offer--pro .offer__t { color: var(--on-navy); }
.offer__list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.offer__list li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.5; }
.offer__list li::before { content: ""; position: absolute; left: 0; top: .28em; width: 16px; height: 16px; border-radius: 3px; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.4 2.7 2.7L12 5.6' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.offer__toc { margin-top: 16px; border-top: 1px solid var(--line-strong); }
.offer__toc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 0; cursor: pointer; font-size: 15px; font-weight: 600; }
.offer__toc summary::-webkit-details-marker { display: none; }
.offer__toc summary::after { content: "+"; flex: none; width: 24px; text-align: center; font-family: var(--display); font-size: 24px; line-height: 1; transition: transform .4s var(--ease); }
.offer__toc[open] summary::after { transform: rotate(135deg); }
.offer__toc ol { margin: 0 0 8px; padding: 0; list-style: none; columns: 2; column-gap: 24px; }
.offer__toc li { break-inside: avoid; display: flex; gap: 10px; padding: 5px 0; font-size: 14.5px; line-height: 1.4; }
.offer__toc li i { flex: none; width: 22px; font-style: normal; font-family: var(--display); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.offer__go { margin-top: auto; padding-top: 24px; }
.offer__btn { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 56px; padding: 14px 16px 14px 20px; border-radius: var(--r-btn); background: var(--navy); color: #fff; font-size: 16px; font-weight: 600; line-height: 1.3; transition: background-color .2s, transform .25s var(--ease); }
.offer__btn:hover { background: var(--red); }
.offer__btn:active { transform: scale(.98); }
.offer__btn b { flex: none; padding: 5px 11px; border-radius: 3px; background: #fff; color: var(--navy); font-family: var(--display); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.offer--pro .offer__btn { background: var(--red); }
.offer--pro .offer__btn:hover { background: var(--red-deep); }
.offer__note { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.offer--pro .offer__note { color: var(--on-navy); }

@media (max-width: 860px) { .offers { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .offer__toc ol { columns: 1; }
  .btn-main, .btn-ghost { width: 100%; justify-content: center; }
  .dn-hero h1 { font-size: clamp(28px, 8.4vw, 36px); }
  .steps li { gap: 14px; }
  .steps { gap: 44px; }
  .steps li:not(:last-child)::after { height: 44px; background-size: 24px 44px; }
}

/* заголовок блока контактов на странице программы длиннее, чем на главной */
.page .close h2 { font-size: clamp(30px, 4.2vw, 56px); max-width: 16em; }
