/* Page-local shell adjustments; no shared Bitrix files are changed. */
body.nyo-header-active .nyo-inner-main { background: #fbfaf5; }
body.nyo-header-active .nyo-inner-main .speedbar-blog { padding: 28px 0 18px; background: transparent; border: 0; }
body.nyo-header-active .nyo-inner-main .speedbar-blog .container_fixable,
body.nyo-header-active .nyo-inner-main > .basespace > .container_fixable_pages { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
body.nyo-header-active .nyo-inner-main .page-title { max-width: 1000px; margin: 12px 0 0; font: 400 clamp(32px, 3.7vw, 46px)/1.15 Georgia, serif; letter-spacing: -.025em; color: #294943; text-transform: none; hyphens: none; }
body.nyo-header-active .nyo-inner-main > .basespace { padding: 0; }
body.nyo-header-active .nyo-inner-main > .basespace > .container_fixable_pages > .container-fluid { padding: 0; }
body.nyo-header-active .nyo-inner-main > .basespace > .container_fixable_pages > .container-fluid > .row { margin: 0; }
body.nyo-header-active .nyo-inner-main .nyo-inner-content { float: none; width: 100%; padding: 0; }

.leg-options { --lo-ink: #294943; --lo-muted: #52675d; --lo-line: #d8dfd2; --lo-accent: #286eb1; color: var(--lo-ink); font: 18px/1.55 "PT_Sans-Web-Regular", "PT Sans", sans-serif; padding-bottom: 38px; }
.leg-options *, .leg-options *::before, .leg-options *::after { box-sizing: border-box; }
.leg-options h2, .leg-options h3, .leg-options p, .leg-options ol { margin: 0; padding: 0; text-align: left; }
.leg-options figure { margin: 0; text-align: left; }
.leg-options h2 { font: 400 clamp(28px, 3vw, 38px)/1.17 Georgia, serif; color: var(--lo-ink); letter-spacing: -.02em; text-transform: none; }
.leg-options h3 { font: 400 22px/1.25 "PT_Sans-Web-Bold", "PT Sans", sans-serif; color: var(--lo-ink); }
.leg-options p { font: inherit; color: var(--lo-muted); }
.leg-options a { color: #2166aa; text-decoration: none; text-underline-offset: 4px; }
.leg-options a:hover { text-decoration: underline; }
.leg-options a:focus-visible, .leg-options summary:focus-visible { outline: 3px solid #286eb1; outline-offset: 5px; border-radius: 3px; }
.leg-options img { display: block; max-width: 100%; height: auto; }
.leg-options [id], #inner-page-title { scroll-margin-top: 120px; }
.leg-options strong { font-family: "PT_Sans-Web-Bold", "PT Sans", sans-serif; font-weight: 400; }
.leg-options .lo-eyebrow { display: block; font: 400 12px/1.4 "PT_Sans-Web-Bold", "PT Sans", sans-serif; letter-spacing: .09em; text-transform: uppercase; color: #586e62; margin-bottom: 14px; }
.leg-options .lo-button { display: inline-flex; gap: 20px; align-items: center; justify-content: space-between; padding: 14px 20px; min-height: 48px; border-radius: 7px; background: #2d79c7; color: #fff; font-family: "PT_Sans-Web-Bold", "PT Sans", sans-serif; line-height: 1.35; text-decoration: none; }
.leg-options .lo-button:hover { background: #2263a3; }
.lo-button span { flex-shrink: 0; }
.lo-hero { display: grid; grid-template-columns: 1.06fr 1fr; align-items: stretch; gap: 32px; padding-top: 12px; }
.lo-hero-copy { align-self: center; padding: 22px 16px 22px 0; }
.lo-hero-copy h2 { font-size: clamp(32px, 3.8vw, 46px); margin-bottom: 20px; }
.leg-options .lo-lead { font-size: 21px; line-height: 1.5; color: #36584e; }
.lo-hero-copy p + p { margin-top: 14px; font-size: 17px; }
.lo-hero-copy .lo-button { margin-top: 24px; }
.lo-hero-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; background: linear-gradient(145deg,#e8eff1,#edf0e6); border-radius: 16px; padding: 22px 18px; }
.lo-hero-pair figure { display: flex; flex-direction: column; align-items: center; }
.lo-hero-pair img { height: 310px; width: auto; object-fit: contain; }
.lo-hero-pair figcaption { width: 100%; padding-top: 15px; }
.lo-hero-pair figcaption strong { display: block; font-size: 19px; }
.lo-hero-pair figcaption span { display: block; font-size: 14px; color: var(--lo-muted); line-height: 1.4; margin-top: 5px; }
.lo-hero-art { display: flex; flex-direction: column; justify-content: center; padding: 24px; border-radius: 16px; background: radial-gradient(ellipse at 80% 20%,#edf2e4,transparent 70%),#f0eade; }
.lo-hero-art a, .lo-hero-pair figure > a { cursor: zoom-in; }
.lo-hero-art--leg { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; background: linear-gradient(145deg,#e9eff0,#edf0e5); }
.lo-hero-art--leg img { height: 345px; width: auto; object-fit: contain; margin: auto; }
.lo-hero-art figcaption { font-size: 15px; color: #52675d; line-height: 1.5; padding-top: 20px; }
.lo-hero-art figcaption strong { display: block; color: #294943; font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.lo-hero-art--wide img { width: 100%; }
.lo-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; padding: 16px 0; border-bottom: 1px solid var(--lo-line); }
.lo-nav a { padding: 5px 0; font-size: 16px; }
.lo-section { padding-top: 64px; }
.lo-section-heading { margin-bottom: 26px; }
.lo-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.lo-cards--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.lo-card { padding: 26px; border-top: 3px solid #98ad8e; background: #edf0e6; border-radius: 0 0 10px 10px; }
.lo-card:nth-child(2) { background: #f2ede3; border-color: #c1a47e; }
.lo-card:nth-child(3) { background: #e9f0f5; border-color: #83a6bd; }
.lo-card-label { display: block; margin-bottom: 18px; font-size: 14px; color: #536a5e; }
.lo-card h3 { margin-bottom: 13px; }
.lo-card p { font-size: 17px; }
.leg-options .lo-inline-link { margin-top: 20px; font-size: 17px; }
.lo-diagnosis { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; }
.lo-diagnosis > div:first-child > p { margin-top: 20px; }
.lo-diagnosis > div:first-child > a { display: inline-block; margin-top: 19px; font-size: 16px; }
.leg-options .lo-steps { list-style: none; counter-reset: lo-step; padding: 0; margin: 0; }
.lo-steps li { counter-increment: lo-step; position: relative; padding: 0 0 23px 51px; }
.lo-steps li + li { padding-top: 22px; border-top: 1px solid var(--lo-line); }
.lo-steps li::before { content: counter(lo-step, decimal-leading-zero); position: absolute; left: 0; font: 28px/1.2 Georgia, serif; color: #719080; }
.lo-steps h3 { font-size: 21px; margin-bottom: 9px; }
.lo-steps p { font-size: 17px; }
.lo-methods { border-top: 1px solid var(--lo-line); }
.lo-methods > a { display: grid; grid-template-columns: 54px 1fr 32px; gap: 22px; padding: 24px 16px; border-bottom: 1px solid var(--lo-line); }
.lo-methods > a:hover { background: #f0f3eb; text-decoration: none; }
.lo-methods > a > span { font: 29px/1.2 Georgia, serif; color: #799385; }
.lo-methods p { margin-top: 7px; font-size: 17px; }
.lo-methods b { font-size: 25px; font-weight: 400; }
.lo-note { border-left: 3px solid #2d79c7; padding: 24px 28px; background: #eaf1f6; margin-top: 28px; }
.lo-note h3 { margin-bottom: 9px; }
.lo-note p { font-size: 17px; }
.lo-stacked > div { padding-bottom: 23px; }
.lo-stacked > div + div { padding-top: 23px; border-top: 1px solid var(--lo-line); }
.lo-stacked h3 { margin-bottom: 10px; }
.lo-stacked p { font-size: 17px; }
.lo-risks { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; padding: 36px; margin-top: 60px; background: #f3ebe3; border-radius: 12px; }
.lo-risks > div:first-child p { margin-top: 18px; }
.lo-risks h3 { margin-bottom: 9px; }
.lo-risks p + h3 { margin-top: 24px; }
.lo-risks p { font-size: 17px; }
.lo-risks .lo-small { font-size: 15px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #dbd1c3; }
.lo-faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; }
.lo-faq details { padding: 19px 0; border-top: 1px solid var(--lo-line); }
.lo-faq details:last-child { border-bottom: 1px solid var(--lo-line); }
.leg-options summary { cursor: pointer; color: var(--lo-ink); }
.lo-faq summary { list-style: none; display: flex; justify-content: space-between; gap: 25px; font-size: 19px; line-height: 1.4; }
.lo-faq summary::-webkit-details-marker { display: none; }
.lo-faq summary::after { content: '+'; flex-shrink: 0; color: #60796b; font: 24px/1 Georgia,serif; }
.lo-faq details[open] summary::after { content: '−'; }
.lo-faq details p { margin-top: 16px; font-size: 17px; }
.lo-sources { margin: 26px 0 0; max-width: 800px; font-size: 14px; }
.lo-sources summary { padding: 9px 0; }
.lo-sources p { margin-top: 9px; }
.lo-table-wrap { overflow-x: auto; }
.leg-options .lo-table { width: 100%; border-collapse: collapse; border-spacing: 0; font-size: 17px; color: var(--lo-muted); }
.lo-table caption { caption-side: top; text-align: left; padding-bottom: 16px; font-size: 16px; color: var(--lo-muted); }
.lo-table th, .lo-table td { padding: 20px; vertical-align: top; border-bottom: 1px solid var(--lo-line); text-align: left; }
.lo-table thead { background: #e8ede2; }
.lo-table th { font-family: "PT_Sans-Web-Bold", "PT Sans", sans-serif; font-weight: 400; color: var(--lo-ink); }
.lo-table tbody th { width: 25%; }
.lo-related { margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--lo-line); }
.lo-related h2 { font-size: 28px; margin-bottom: 24px; }
.lo-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; }
.lo-related-grid > a { display: grid; grid-template-columns: 1fr 22px; gap: 8px 16px; padding: 8px 22px; border-left: 1px solid var(--lo-line); color: var(--lo-ink); }
.lo-related-grid > a:first-child { padding-left: 0; border: 0; }
.lo-related-grid strong { font-size: 21px; }
.lo-related-grid span { font-size: 16px; grid-row: 2; color: var(--lo-muted); }
.lo-related-grid b { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 25px; font-weight: 400; }
.lo-consult { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 34px 36px; margin-top: 48px; border-radius: 12px; background: linear-gradient(120deg,#e9efdf,#f2f2e8); }
.lo-consult p { margin-top: 16px; font-size: 17px; max-width: 560px; }
.lo-consult-actions { justify-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.lo-consult-actions > a:not(.lo-button) { font-size: 16px; }
@media (prefers-reduced-motion: no-preference) {
    .lo-hero { animation: lo-reveal .5s ease-out; }
    @keyframes lo-reveal { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 900px) {
    .lo-hero { gap: 22px; grid-template-columns: 1fr 1fr; }
    .lo-hero-copy { padding-right: 0; }
    .lo-hero-pair { gap: 10px; padding: 18px 12px; }
    .lo-hero-pair img { height: 250px; }
    .lo-hero-art--leg { grid-template-columns: 1fr; }
    .lo-hero-art--leg img { height: 240px; }
    .lo-hero-art figcaption { font-size: 14px; padding-top: 8px; }
    .lo-hero-art figcaption strong { font-size: 17px; }
    .lo-diagnosis, .lo-faq, .lo-risks { gap: 30px; }
    .lo-card { padding: 20px; }
    .lo-cards--three { gap: 16px; }
    .lo-card h3 { font-size: 20px; }
    .lo-consult { padding: 28px; gap: 24px; }
}
@media (max-width: 700px) {
    body.nyo-header-active .nyo-inner-main .speedbar-blog .container_fixable,
    body.nyo-header-active .nyo-inner-main > .basespace > .container_fixable_pages { width: calc(100% - 36px); }
    body.nyo-header-active .nyo-inner-main .speedbar-blog { padding-top: 18px; }
    body.nyo-header-active .nyo-inner-main .page-title { font-size: 32px; }
    .leg-options { font-size: 17px; }
    .leg-options [id], #inner-page-title { scroll-margin-top: 92px; }
    .lo-hero, .lo-diagnosis, .lo-faq, .lo-risks, .lo-consult { grid-template-columns: 1fr; }
    .lo-hero-copy { padding: 0; }
    .lo-hero-copy h2 { font-size: 32px; }
    .leg-options .lo-lead { font-size: 19px; }
    .lo-hero { padding-top: 4px; }
    .lo-hero-pair { padding: 20px; gap: 22px; }
    .lo-hero-pair img { height: 250px; }
    .lo-hero-art { padding: 22px; }
    .lo-hero-art--leg { grid-template-columns: 1fr 1fr; }
    .lo-hero-art--wide { max-width: 520px; }
    .lo-nav { gap: 3px 22px; margin-top: 20px; }
    .lo-nav a { padding: 8px 0; font-size: 15px; }
    .lo-section { padding-top: 42px; }
    .lo-cards, .lo-cards--three { grid-template-columns: 1fr; gap: 14px; }
    .lo-card { padding: 24px; }
    .lo-card-label { margin-bottom: 10px; }
    .lo-steps li { padding-left: 46px; }
    .lo-diagnosis, .lo-faq { gap: 26px; }
    .lo-methods > a { grid-template-columns: 34px 1fr 20px; gap: 12px; padding: 22px 0; }
    .lo-methods h3 { font-size: 20px; }
    .lo-methods > a > span { font-size: 24px; }
    .lo-note { padding: 22px; }
    .lo-risks { margin-top: 42px; padding: 26px 22px; }
    .lo-related { margin-top: 40px; }
    .lo-related-grid { grid-template-columns: 1fr; }
    .lo-related-grid > a, .lo-related-grid > a:first-child { padding: 20px 0; border: 0; border-top: 1px solid var(--lo-line); }
    .lo-consult { padding: 26px 22px; margin-top: 28px; }
    .lo-consult-actions { justify-self: start; }
    .lo-consult h2 { font-size: 29px; }
    .lo-table, .lo-table tbody, .lo-table tr { display: block; }
    .lo-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .lo-table caption { display: block; }
    .lo-table tr { padding: 20px; margin-bottom: 14px; background: #eef1e9; border-radius: 8px; }
    .lo-table th, .lo-table td, .lo-table tbody th { display: block; width: auto; padding: 0; border: 0; }
    .lo-table th { font-size: 20px; }
    .lo-table td { margin-top: 16px; }
    .lo-table td::before { display: block; font-family: "PT_Sans-Web-Bold",sans-serif; font-size: 14px; color: #294943; margin-bottom: 4px; }
    .lo-table td:nth-child(2)::before { content: 'Возможная задача'; }
    .lo-table td:nth-child(3)::before { content: 'Что важно учитывать'; }
}
@media (max-width: 360px) {
    .lo-hero-pair { gap: 12px; padding: 14px; }
    .lo-hero-pair img { height: 205px; }
    .lo-hero-pair figcaption strong { font-size: 17px; }
    .lo-hero-art--leg { gap: 16px; padding: 16px; }
    .lo-hero-art--leg img { height: 210px; }
    .leg-options .lo-button { font-size: 16px; padding: 14px 16px; }
}
