/* Этапы и аккордеоны. Шрифт наследуется от темы; переключение — штатное details/summary. */
.buh-etapy {
	--be-ink: #071f63;
	--be-text: #30456e;
	--be-blue: #185ab6;
	--be-line: #badbf4;
	--be-number-size: 72px;
	--be-intro-gap: 30px;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	margin: 0;
	padding: 64px 0 58px;
	color: var(--be-ink);
	background: radial-gradient(ellipse at 50% 0, #fff 0, rgba(255, 255, 255, .6) 38%, transparent 78%), linear-gradient(120deg, #f2f9ff, #e8f5ff);
}
.buh-etapy, .buh-etapy *, .buh-etapy *::before, .buh-etapy *::after { box-sizing: border-box; }
.buh-etapy::before, .buh-etapy::after { content: ""; position: absolute; width: 620px; height: 620px; border: 1px solid rgba(44, 130, 221, .18); border-radius: 50%; box-shadow: 0 0 0 22px rgba(44, 130, 221, .05), 0 0 0 44px rgba(44, 130, 221, .04); pointer-events: none; }
.buh-etapy::before { top: -500px; left: -350px; }
.buh-etapy::after { bottom: -520px; right: -320px; }
.buh-etapy__inner { position: relative; z-index: 1; width: min(1540px, calc(100% - 64px)); margin-inline: auto; }
.buh-etapy__header { max-width: 1280px; margin: 0 auto 38px; text-align: center; }
.buh-etapy .buh-etapy__eyebrow { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 0 0 18px; color: var(--be-blue); font-size: 12px; font-weight: 700; line-height: 1.6; letter-spacing: .18em; text-transform: uppercase; }
.buh-etapy__eyebrow::before, .buh-etapy__eyebrow::after { content: ""; flex: 0 1 76px; min-width: 24px; height: 1px; background: #7ba7dd; }
.buh-etapy .buh-etapy__title { margin: 0 0 18px; color: var(--be-ink); font-size: clamp(34px, 3.35vw, 52px); font-weight: 700; line-height: 1.12; }
.buh-etapy .buh-etapy__lead { margin: 0 auto; color: var(--be-text); font-size: clamp(18px, 1.5vw, 23px); line-height: 1.45; }
.buh-etapy .buh-etapy__stages { position: relative; margin: 0; padding: 0; list-style: none; }
.buh-etapy__stages::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: calc(var(--be-number-size) / 2 - 1px); width: 2px; background: #599aeb; pointer-events: none; }
.buh-etapy__stage { position: relative; margin: 0; padding: 0; }
.buh-etapy__stage:nth-child(even)::before { content: ""; position: absolute; z-index: 0; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: rgba(219, 241, 255, .55); pointer-events: none; }
.buh-etapy__stage-inner { position: relative; display: grid; grid-template-columns: minmax(0, .44fr) minmax(0, .56fr); gap: 64px; padding: 40px 0; }
.buh-etapy__intro { min-width: 0; display: grid; grid-template-columns: var(--be-number-size) minmax(0, 1fr); gap: var(--be-intro-gap); align-content: start; }
.buh-etapy__number { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; width: var(--be-number-size); height: var(--be-number-size); border-radius: 50%; background: #c5e8fc; color: var(--be-ink); font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.buh-etapy__intro-copy { position: relative; z-index: 1; min-width: 0; padding-top: 5px; }
.buh-etapy .buh-etapy__stage-title { margin: 0 0 14px; color: var(--be-ink); font-size: clamp(26px, 2.2vw, 34px); font-weight: 700; line-height: 1.16; }
.buh-etapy .buh-etapy__description { margin: 0 0 16px; color: var(--be-text); font-size: 21px; line-height: 1.45; }
.buh-etapy .buh-etapy__outcome { margin: 0; color: var(--be-blue); font-size: 20px; font-weight: 700; line-height: 1.4; }
.buh-etapy__accordions { position: relative; z-index: 1; min-width: 0; align-self: start; overflow: hidden; border: 1px solid var(--be-line); border-radius: 12px; background: rgba(255, 255, 255, .96); }
.buh-etapy .buh-etapy__detail { margin: 0; padding: 0; border: 0; background: transparent; }
.buh-etapy__detail + .buh-etapy__detail { border-top: 1px solid var(--be-line); }
.buh-etapy .buh-etapy__summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 70px; margin: 0; padding: 20px 28px; color: var(--be-ink); font-size: 23px; font-weight: 700; line-height: 1.25; list-style: none; cursor: pointer; transition: background .2s ease, color .2s ease; }
.buh-etapy__summary::-webkit-details-marker { display: none; }
.buh-etapy__summary::marker { content: ""; }
.buh-etapy__summary > span:first-child { min-width: 0; overflow-wrap: break-word; }
.buh-etapy__summary:hover { background: #f0f8ff; }
.buh-etapy__detail[open] > .buh-etapy__summary { background: #eaf6ff; }
.buh-etapy__summary:focus-visible { outline: 3px solid var(--be-blue); outline-offset: -4px; }
.buh-etapy__chevron { display: block; flex: 0 0 12px; width: 12px; height: 12px; margin-top: -5px; border: solid #1672dc; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease; }
.buh-etapy__detail[open] > .buh-etapy__summary .buh-etapy__chevron { margin-top: 5px; transform: rotate(-135deg); }
.buh-etapy__body { padding: 20px 28px 24px; }
.buh-etapy .buh-etapy__body p { margin: 0; color: var(--be-text); font-size: 19px; line-height: 1.5; overflow-wrap: break-word; }
.buh-etapy .buh-etapy__body p + p { margin-top: 14px; }
.buh-etapy__body a { color: var(--be-blue); text-underline-offset: 3px; }
.buh-etapy__body a:focus-visible { outline: 2px solid var(--be-blue); outline-offset: 3px; }
.buh-etapy__cta { display: flex; justify-content: center; margin-top: 36px; }
.buh-etapy .buh-etapy__button { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 80px; padding: 18px 32px; border: 1px solid transparent; border-radius: 12px; background: linear-gradient(135deg, #ff6a24, #ff2519); color: #fff; font-size: 21px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; box-shadow: 0 14px 34px rgba(13, 45, 98, .12); transition: transform .2s ease, box-shadow .2s ease; }
.buh-etapy .buh-etapy__button:hover { transform: translateY(-3px); color: #fff; text-decoration: none; box-shadow: 0 18px 42px rgba(13, 45, 98, .16); }
.buh-etapy .buh-etapy__button:focus-visible { outline: 3px solid var(--be-ink); outline-offset: 4px; color: #fff; }

@media (max-width: 1200px) {
	.buh-etapy { --be-number-size: 64px; --be-intro-gap: 24px; padding: 48px 0; }
	.buh-etapy__stage-inner { gap: 40px; padding-block: 34px; }
	.buh-etapy__number { font-size: 28px; }
	.buh-etapy .buh-etapy__description { font-size: 19px; }
	.buh-etapy .buh-etapy__outcome { font-size: 18px; }
	.buh-etapy .buh-etapy__summary { min-height: 66px; padding: 18px 24px; font-size: 21px; }
	.buh-etapy__body { padding: 18px 24px 22px; }
	.buh-etapy .buh-etapy__body p { font-size: 18px; }
}

@media (max-width: 980px) {
	.buh-etapy__inner { width: calc(100% - 48px); }
	.buh-etapy__header { margin-bottom: 28px; }
	.buh-etapy__stage-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.buh-etapy__accordions { margin-left: calc(var(--be-number-size) + var(--be-intro-gap)); }
	.buh-etapy .buh-etapy__stage-title { font-size: 30px; }
	.buh-etapy .buh-etapy__lead { max-width: 780px; font-size: 20px; }
}

@media (max-width: 640px) {
	.buh-etapy { --be-number-size: 52px; --be-intro-gap: 16px; padding: 34px 0; }
	.buh-etapy__inner { width: calc(100% - 32px); }
	.buh-etapy__stages::before { display: none; }
	.buh-etapy .buh-etapy__eyebrow { gap: 12px; font-size: 10px; letter-spacing: .08em; }
	.buh-etapy__eyebrow::before, .buh-etapy__eyebrow::after { flex-basis: 34px; min-width: 14px; }
	.buh-etapy .buh-etapy__title { font-size: clamp(30px, 6.5vw, 40px); }
	.buh-etapy .buh-etapy__lead { font-size: 18px; }
	.buh-etapy__stage-inner { gap: 20px; padding-block: 28px; }
	.buh-etapy__intro-copy { padding-top: 2px; }
	.buh-etapy__number { font-size: 24px; }
	.buh-etapy .buh-etapy__stage-title { margin-bottom: 12px; font-size: 26px; }
	.buh-etapy .buh-etapy__description { font-size: 18px; }
	.buh-etapy .buh-etapy__outcome { font-size: 18px; }
	.buh-etapy__accordions { margin-left: 0; }
	.buh-etapy .buh-etapy__summary { min-height: 64px; gap: 18px; padding: 17px 20px; font-size: 20px; }
	.buh-etapy__body { padding: 18px 20px 22px; }
	.buh-etapy .buh-etapy__body p { font-size: 17px; }
	.buh-etapy__cta { margin-top: 28px; }
	.buh-etapy .buh-etapy__button { width: 100%; padding-inline: 20px; font-size: 20px; }
}

@media (max-width: 480px) {
	.buh-etapy { --be-number-size: 48px; --be-intro-gap: 14px; padding: 28px 0; }
	.buh-etapy__header { margin-bottom: 22px; }
	.buh-etapy .buh-etapy__lead { font-size: 17px; }
	.buh-etapy .buh-etapy__stage-title { font-size: 24px; }
	.buh-etapy .buh-etapy__description, .buh-etapy .buh-etapy__outcome { font-size: 17px; }
	.buh-etapy .buh-etapy__summary { padding-inline: 16px; font-size: 19px; }
	.buh-etapy__body { padding-inline: 16px; }
	.buh-etapy .buh-etapy__button { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
	.buh-etapy .buh-etapy__summary, .buh-etapy__chevron, .buh-etapy .buh-etapy__button { transition: none; }
}
