

/* Start:/bitrix/templates/120423/components/bitrix/menu/magilanka_services/style.css?17888515799705*/
/* Этап 1: исходный стиль рабочего меню + прокрутка правой части на desktop. */
.mg-services-menu { list-style: none; font-family: inherit; }
.mg-services-menu *, .mg-services-menu *::before, .mg-services-menu *::after { box-sizing: border-box; }
.mg-services-menu__primary { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); min-width: 0; }
.mg-services-menu__mobile-trigger { display: none; }
.mg-services-menu__primary-link, .mg-services-menu__trigger { color: var(--n2); font: inherit; line-height: 1.2; text-decoration: none; }
.mg-services-menu__trigger { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 14px; border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; }
.mg-services-menu__trigger:hover, .mg-services-menu__trigger:focus-visible, .mg-services-menu__trigger[aria-expanded="true"] { border-color: color-mix(in srgb, var(--n3) 75%, var(--n2)); background: color-mix(in srgb, var(--n3) 19%, white); }
.mg-services-menu__chevron { display: inline-block; flex: 0 0 auto; width: 10px; height: 10px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .18s ease, margin .18s ease; }
.mg-services-menu__trigger[aria-expanded="true"] .mg-services-menu__chevron { margin-top: 4px; transform: rotate(-135deg); }
.mg-services-menu__backdrop { position: fixed; z-index: 2147483000; inset: 0; background: rgba(0, 45, 33, .38); opacity: 0; transition: opacity .2s ease; }
.mg-services-menu__backdrop.is-open { opacity: 1; }
.mg-services-menu__dialog { position: fixed; z-index: 2147483001; top: 94px; right: max(24px, calc((100vw - 1280px) / 2)); left: max(24px, calc((100vw - 1280px) / 2)); max-height: min(720px, calc(100dvh - 118px)); overflow: hidden; color: var(--n2); background: #fff; border: 1px solid color-mix(in srgb, var(--n3) 70%, var(--n2)); border-radius: 16px; box-shadow: 0 28px 75px rgba(0, 45, 33, .26); opacity: 0; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease; }
.mg-services-menu__dialog.is-open { opacity: 1; transform: translateY(0); }
.mg-services-menu__bar { display: flex; min-height: 55px; align-items: center; justify-content: space-between; padding: 10px 18px 10px 24px; color: #fff; background: var(--n5); }
.mg-services-menu__bar > a { color: inherit; font-weight: 500; text-decoration: none; }
.mg-services-menu__bar > a:hover, .mg-services-menu__bar > a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.mg-services-menu__close { display: inline-grid; width: 48px; height: 48px; place-items: center; padding: 0; color: #fff; border: 0; border-radius: 50%; background: transparent; font-family: inherit; font-size: 40px; line-height: 1; cursor: pointer; }
.mg-services-menu__close:hover, .mg-services-menu__close:focus-visible { background: rgba(255,255,255,.16); }
.mg-services-menu__mobile-pages { display: none; }
.mg-services-menu__layout { display: grid; grid-template-columns: minmax(264px, .62fr) minmax(0, 1.38fr); min-height: 0; max-height: calc(min(720px, 100dvh - 118px) - 55px); }
.mg-services-menu__categories { padding: 12px; overflow-y: auto; background: color-mix(in srgb, var(--n4) 82%, white); border-right: 1px solid color-mix(in srgb, var(--n2) 16%, transparent); }
.mg-services-menu__category { display: grid; grid-template-columns: minmax(0, 1fr) 46px; align-items: stretch; border-radius: 10px; }
.mg-services-menu__category > a { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 3px 10px; padding: 16px 8px 16px 12px; color: var(--n5); text-decoration: none; border-radius: 10px 0 0 10px; }
.mg-services-menu__category-number { grid-row: span 2; color: var(--n5); font-size: .82rem; font-weight: 500; }
.mg-services-menu__category-title { font-size: 1.14rem; font-weight: 500; line-height: 1.28; }
.mg-services-menu__category-count { color: color-mix(in srgb, var(--n6) 66%, transparent); font-size: .92rem; }
.mg-services-menu__category > button { width: 46px; min-height: 48px; padding: 0; color: var(--n5); border: 0; border-radius: 0 10px 10px 0; background: transparent; font: 2rem/1 inherit; cursor: pointer; }
.mg-services-menu__category:hover, .mg-services-menu__category:focus-within, .mg-services-menu__category.is-active { background: color-mix(in srgb, var(--n3) 30%, white); }
.mg-services-menu__category.is-active { box-shadow: inset 3px 0 0 var(--n5); }
.mg-services-menu__category > button:hover, .mg-services-menu__category > button:focus-visible { background: color-mix(in srgb, var(--n3) 48%, white); }
.mg-services-menu__content { min-width: 0; overflow: hidden; }
.mg-services-menu__panel { height: 100%; padding: clamp(20px, 3vw, 38px); overflow-y: auto; }
.mg-services-menu__panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid color-mix(in srgb, var(--n2) 16%, transparent); }
.mg-services-menu__panel-heading p { margin: 0 0 10px; color: var(--n5); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.mg-services-menu__panel-heading h2 { margin: 0; color: var(--n3); font: 500 clamp(2rem, 3vw, 3.25rem)/1.03 inherit; letter-spacing: -.04em; }
.mg-services-menu__panel-heading > a { flex: 0 0 auto; color: var(--n5); font-size: .92rem; font-weight: 500; text-underline-offset: 4px; }
.mg-services-menu__panel-heading > a:hover, .mg-services-menu__panel-heading > a:focus-visible { color: var(--n2); }
.mg-services-menu__services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 22px; margin: 18px 0 0; padding: 0; list-style: none; }
.mg-services-menu__services > li { min-width: 0; }
.mg-services-menu__services a { display: grid; grid-template-columns: minmax(0, 1fr) max-content 20px; min-height: 51px; align-items: baseline; column-gap: 10px; padding: 11px 8px; color: var(--n5); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--n2) 12%, transparent); }
.mg-services-menu__services a:hover, .mg-services-menu__services a:focus-visible { color: var(--n2); background: color-mix(in srgb, var(--n4) 75%, white); }
.mg-services-menu__service-title { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-weight: 500; line-height: 1.25; }
.mg-services-menu__service-price { justify-self: end; color: var(--n5); font-size: .92rem; font-weight: 500; text-align: right; white-space: nowrap; }
.mg-services-menu__attention { display: inline-grid; flex: 0 0 auto; width: 20px; height: 20px; place-items: center; color: var(--n2); background: var(--n3); border-radius: 50%; font-size: .78rem; font-weight: 800; line-height: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--n3) 24%, transparent); }
.mg-services-menu__service-arrow { flex: 0 0 auto; color: var(--n5); font-weight: 500; }
.mg-services-menu :focus-visible { outline: 3px solid var(--n3); outline-offset: 3px; }

/* Единственное новое правило первого этапа: список справа прокручивается внутри открытого окна. */
@media (min-width: 768px) {
    .mg-services-menu__layout { height: calc(min(720px, 100dvh - 118px) - 55px); }
    .mg-services-menu__content { min-height: 0; }
    .mg-services-menu__panel { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
}

@media (max-width: 900px) { .mg-services-menu__primary { gap: 14px; }.mg-services-menu__trigger { padding-right: 10px; padding-left: 10px; } }
@media (max-width: 767px) { .mg-services-menu__primary, .mg-services-menu__mobile-trigger { display: none; }.mg-services-menu__dialog { top: 10px; right: 10px; bottom: 10px; left: 10px; max-height: none; border-radius: 12px; }.mg-services-menu__mobile-pages { display: flex; flex-wrap: wrap; gap: 7px 18px; padding: 13px 18px; background: var(--n4); border-bottom: 1px solid color-mix(in srgb, var(--n2) 16%, transparent); }.mg-services-menu__mobile-pages a { min-height: 30px; padding: 5px 0; color: var(--n2); font: inherit; line-height: 1.2; text-decoration: none; }.mg-services-menu__mobile-pages a:hover, .mg-services-menu__mobile-pages a:focus-visible { color: var(--n5); text-decoration: underline; text-underline-offset: 4px; }.mg-services-menu__layout { display: block; height: auto; max-height: calc(100dvh - 126px); }.mg-services-menu__categories { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--n2) 16%, transparent); scrollbar-width: thin; }.mg-services-menu__category { display: grid; flex: 0 0 min(240px, 76vw); grid-template-columns: minmax(0, 1fr) 46px; border: 1px solid transparent; }.mg-services-menu__category > a { grid-template-columns: 26px minmax(0, 1fr); padding: 11px 4px 11px 10px; }.mg-services-menu__category-count { display: none; }.mg-services-menu__category.is-active { box-shadow: none; border-color: color-mix(in srgb, var(--n3) 75%, var(--n5)); }.mg-services-menu__content { max-height: calc(100dvh - 207px); }.mg-services-menu__panel { max-height: calc(100dvh - 207px); padding: 22px 18px 30px; }.mg-services-menu__panel-heading { align-items: start; flex-direction: column; gap: 10px; }.mg-services-menu__services { grid-template-columns: 1fr; gap: 0; }.mg-services-menu__services a { min-height: 55px; padding: 13px 4px; }.mg-services-menu__bar { padding-left: 18px; } }
@media (prefers-reduced-motion: reduce) { .mg-services-menu__backdrop, .mg-services-menu__dialog, .mg-services-menu__chevron { transition: none; } }

/* End */
/* /bitrix/templates/120423/components/bitrix/menu/magilanka_services/style.css?17888515799705 */
